Get video generation status
curl --request GET \
--url https://api.infery.ai/v1/videos/generations/{jobId} \
--header 'Authorization: <api-key>'import requests
url = "https://api.infery.ai/v1/videos/generations/{jobId}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.infery.ai/v1/videos/generations/{jobId}', 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.infery.ai/v1/videos/generations/{jobId}",
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: <api-key>"
],
]);
$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.infery.ai/v1/videos/generations/{jobId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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.infery.ai/v1/videos/generations/{jobId}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.infery.ai/v1/videos/generations/{jobId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "0f9c3b1e-6d2a-4c17-9f83-2b5e7a41c8d0",
"status": "queued",
"progress": 100,
"created": 1713204900,
"model": "veo-3.1-fast",
"result": {
"url": "/samples/video.mp4",
"duration_seconds": 4,
"resolution": "1280x720"
},
"credits_used": 180,
"error": "<string>"
}{
"error": {
"message": "Model not found",
"type": "invalid_request_error",
"code": "model_not_found",
"param": "model",
"job_id": "job_1hR9xTPZqK4mVLc2nJ7fY5wB"
}
}{
"error": {
"message": "Model not found",
"type": "invalid_request_error",
"code": "model_not_found",
"param": "model",
"job_id": "job_1hR9xTPZqK4mVLc2nJ7fY5wB"
}
}Video
Get video generation status
GET /v1/videos/generations/ — poll for job status and result.
GET
/
v1
/
videos
/
generations
/
{jobId}
Get video generation status
curl --request GET \
--url https://api.infery.ai/v1/videos/generations/{jobId} \
--header 'Authorization: <api-key>'import requests
url = "https://api.infery.ai/v1/videos/generations/{jobId}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.infery.ai/v1/videos/generations/{jobId}', 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.infery.ai/v1/videos/generations/{jobId}",
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: <api-key>"
],
]);
$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.infery.ai/v1/videos/generations/{jobId}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
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.infery.ai/v1/videos/generations/{jobId}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.infery.ai/v1/videos/generations/{jobId}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"id": "0f9c3b1e-6d2a-4c17-9f83-2b5e7a41c8d0",
"status": "queued",
"progress": 100,
"created": 1713204900,
"model": "veo-3.1-fast",
"result": {
"url": "/samples/video.mp4",
"duration_seconds": 4,
"resolution": "1280x720"
},
"credits_used": 180,
"error": "<string>"
}{
"error": {
"message": "Model not found",
"type": "invalid_request_error",
"code": "model_not_found",
"param": "model",
"job_id": "job_1hR9xTPZqK4mVLc2nJ7fY5wB"
}
}{
"error": {
"message": "Model not found",
"type": "invalid_request_error",
"code": "model_not_found",
"param": "model",
"job_id": "job_1hR9xTPZqK4mVLc2nJ7fY5wB"
}
}Poll this endpoint to track an async video job submitted via POST /v1/videos/generations.
The path segment is the
curl https://api.infery.ai/v1/videos/generations/0f9c3b1e-6d2a-4c17-9f83-2b5e7a41c8d0 \
-H "Authorization: Bearer $INFERY_API_KEY"
id returned by the submit call — a UUID. Anything that is not a well-formed UUID answers 404.
Response while running:
{
"id": "0f9c3b1e-6d2a-4c17-9f83-2b5e7a41c8d0",
"status": "processing",
"progress": 42,
"created": 1713204900,
"model": "veo-3.1-fast"
}
status is one of queued, processing, completed, failed. The terminal success value is completed.
When done:
{
"status": "completed",
"result": {
"url": "https://...",
"duration_seconds": 4,
"resolution": "1280x720"
},
"credits_used": 180
}
Sample output
Generated withveo-3-fast (4s, 16:9).
Polling guidance
Poll every 5 seconds. Most videos finish in 30–90 s; hard timeout is 1 hour.Authorizations
API key in format: Bearer inf_***
Path Parameters
Video generation job ID
Response
Video generation job status. result and credits_used are present when status === "completed"; error when status === "failed".
Example:
"0f9c3b1e-6d2a-4c17-9f83-2b5e7a41c8d0"
Available options:
queued, processing, completed, failed Progress percentage (0-100)
Example:
100
Example:
1713204900
Example:
"veo-3.1-fast"
Present only when status is "completed"
Show child attributes
Show child attributes
Example:
{
"url": "/samples/video.mp4",
"duration_seconds": 4,
"resolution": "1280x720"
}
Credits deducted. Present only on success.
Example:
180
Error message. Present only when status is "failed".