curl --request GET \
--url https://api.aiid.edu.kg/v1beta/{operation_name} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aiid.edu.kg/v1beta/{operation_name}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aiid.edu.kg/v1beta/{operation_name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aiid.edu.kg/v1beta/{operation_name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aiid.edu.kg/v1beta/{operation_name}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aiid.edu.kg/v1beta/{operation_name}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aiid.edu.kg/v1beta/{operation_name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"name": "models/veo3.1-fast/operations/abc123",
"done": true,
"response": {
"generatedVideos": [
{
"video": {
"uri": "https://example.com/generated-video.mp4"
}
}
]
}
}Query tasks (Omni and Veo formats)
This series supports OpenAI video generation formats (see the link Video generation Sora compatible formats).
This API topic page explains the query formats related to Omni and Veo, as well as the reserved status of the native query protocol for Veo.
For the current Veo series, please use the /v1/videos unified API for creation and queries.
The following operation_name query structure is retained for reserved protocol documentation only and does not currently support actual calls.
Note: The endpoints supported by the gemini-omni model are the Sora compatible format POST /v1/videos or the Seedance format POST /api/v3/contents/generations/tasks; this page does not support Google native Veo predictLongRunning endpoints.
curl --request GET \
--url https://api.aiid.edu.kg/v1beta/{operation_name} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aiid.edu.kg/v1beta/{operation_name}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aiid.edu.kg/v1beta/{operation_name}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aiid.edu.kg/v1beta/{operation_name}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aiid.edu.kg/v1beta/{operation_name}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aiid.edu.kg/v1beta/{operation_name}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aiid.edu.kg/v1beta/{operation_name}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"name": "models/veo3.1-fast/operations/abc123",
"done": true,
"response": {
"generatedVideos": [
{
"video": {
"uri": "https://example.com/generated-video.mp4"
}
}
]
}
}Authorizations
Use Bearer Token authentication.
Format: Authorization: Bearer sk-xxxxxx
Path Parameters
The complete operation name returned by the creation interface. When calling, / must be URL-encoded.
"models/veo3.1-fast/operations/abc123"
Response
Reserved query response structure. This is currently for protocol specification only and does not support actual calls.
The operation name, which is consistent with the name returned by the creation API.
Indicates whether the task is completed.
