Kling 3.0 text to video
curl --request POST \
--url https://gengen.farm/api/gengen/v1/contents/generations/tasks \
--header 'Authorization: Bearer gengen_live_xxxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data '{
"model": "kling-3.0",
"mode": "text_to_video",
"prompt": "A cinematic dolly shot through a rain-soaked market at night.",
"controls": {
"resolution": "1080p",
"aspectRatio": "16:9",
"duration": 5,
"multiShot": false,
"audioMode": "native"
}
}'import requests
url = "https://gengen.farm/api/gengen/v1/contents/generations/tasks"
payload = {
"model": "kling-3.0-turbo",
"prompt": "The camera arcs around the product as soft light sweeps across it."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'kling-3.0-turbo',
prompt: 'The camera arcs around the product as soft light sweeps across it.'
})
};
fetch('https://gengen.farm/api/gengen/v1/contents/generations/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "kling30:task_123",
"model": "kling-3.0",
"status": "pending",
"outputs": {
"videos": [],
"images": []
},
"createdAt": "2026-08-31T08:00:00.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": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}Video API
Create a Kling video task
Create a Kling 3.0 Turbo or Kling 3.0 task through the normalized GENGEN API.
POST
/
contents
/
generations
/
tasks
Kling 3.0 text to video
curl --request POST \
--url https://gengen.farm/api/gengen/v1/contents/generations/tasks \
--header 'Authorization: Bearer gengen_live_xxxxxxxxxxxxxxxx' \
--header 'Content-Type: application/json' \
--data '{
"model": "kling-3.0",
"mode": "text_to_video",
"prompt": "A cinematic dolly shot through a rain-soaked market at night.",
"controls": {
"resolution": "1080p",
"aspectRatio": "16:9",
"duration": 5,
"multiShot": false,
"audioMode": "native"
}
}'import requests
url = "https://gengen.farm/api/gengen/v1/contents/generations/tasks"
payload = {
"model": "kling-3.0-turbo",
"prompt": "The camera arcs around the product as soft light sweeps across it."
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
model: 'kling-3.0-turbo',
prompt: 'The camera arcs around the product as soft light sweeps across it.'
})
};
fetch('https://gengen.farm/api/gengen/v1/contents/generations/tasks', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"id": "kling30:task_123",
"model": "kling-3.0",
"status": "pending",
"outputs": {
"videos": [],
"images": []
},
"createdAt": "2026-08-31T08:00:00.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": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}{
"error_code": "<string>",
"error": "<string>",
"error_params": {}
}For pending tasks, poll the returned ID. The successful task detail includes
usage with billable seconds and the applicable price row. See usage fields.Body
application/json
Response
The Kling task was accepted.