Retrieve a Kling video task
curl --request GET \
--url https://gengen.farm/api/gengen/v1/contents/generations/tasks/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://gengen.farm/api/gengen/v1/contents/generations/tasks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gengen.farm/api/gengen/v1/contents/generations/tasks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "kling30:task_123",
"model": "kling-3.0",
"status": "succeeded",
"outputs": {
"videos": [
"https://example.com/generated.mp4"
],
"images": []
},
"usage": {
"priceRowId": "kling-30-720-silent-video",
"resolution": "720p",
"generateAudio": false,
"outputDurationSeconds": 3.042,
"billableSeconds": 3
},
"updatedAt": "2026-08-31T08:01:10.000Z"
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}Video API
Retrieve a Kling video task
Poll a Kling video task and read generated video URLs from the standard outputs object.
GET
/
contents
/
generations
/
tasks
/
{id}
Retrieve a Kling video task
curl --request GET \
--url https://gengen.farm/api/gengen/v1/contents/generations/tasks/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://gengen.farm/api/gengen/v1/contents/generations/tasks/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://gengen.farm/api/gengen/v1/contents/generations/tasks/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "kling30:task_123",
"model": "kling-3.0",
"status": "succeeded",
"outputs": {
"videos": [
"https://example.com/generated.mp4"
],
"images": []
},
"usage": {
"priceRowId": "kling-30-720-silent-video",
"resolution": "720p",
"generateAudio": false,
"outputDurationSeconds": 3.042,
"billableSeconds": 3
},
"updatedAt": "2026-08-31T08:01:10.000Z"
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}Usage
For Kling 3.0 and Turbo, a successful task reports wholeusage.billableSeconds and the pricing tier string in usage.resolution. outputDurationSeconds gives the measured output length when available. If settlement uses the requested length, it appears as requestedDurationSeconds.
Kling 3.0 also returns generateAudio, which selects the silent or native-audio rate. Multiply billableSeconds by the per-second rate for priceRowId in the price catalog.Path Parameters
Response
Current normalized task state.