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": true,
"audioMode": "native",
"watermark": false
}
}'
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, Kling 3.0, or Kling 3.0 Omni 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": true,
"audioMode": "native",
"watermark": false
}
}'
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": {}
}Authorizations
A workspace API key beginning with gengen_live_.
Body
application/json
Available options:
kling-3.0-turbo, kling-3.0, kling-3.0-omni Maximum string length:
3072Turbo and Kling 3.0 accept only text_to_video or image_to_video.
Available options:
text_to_video, image_to_video, omni_video, video_to_video Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Response
The Kling task was accepted.
Available options:
kling-3.0-turbo, kling-3.0, kling-3.0-omni Available options:
pending, queued, processing, running, succeeded, failed, cancelled Show child attributes
Show child attributes