Build with Kling 2.6
Make your first request
Use your Sorceress API key on your server. The playground uses your signed-in account; your application uses the same model with an API key.
curl -X POST 'https://sorceress.games/api/v1/jobs' \
-H 'Authorization: Bearer $SORCERESS_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "kling-2.6-text-to-video",
"input": {
"prompt": "<prompt>",
"sound": "<sound>",
"aspect_ratio": "<aspect_ratio>",
"duration": "<duration>"
}
}'Inputs & settings
soundbooleanRequiredRequired. This parameter specifies whether the generated video contains sound (boolean: true/false)
promptstringRequiredText prompt (max 2,500 characters).
durationstringRequiredRequired. Video duration (unit: seconds)
Options: 5, 10
aspect_ratiostringRequiredRequired. This parameter defines the video aspect ratio
Options: 1:1, 16:9, 9:16
Full input schema
{
"type": "object",
"required": [
"prompt",
"sound",
"aspect_ratio",
"duration"
],
"properties": {
"sound": {
"type": "boolean",
"title": "Sound",
"description": "Required. This parameter specifies whether the generated video contains sound (boolean: true/false)"
},
"prompt": {
"type": "string",
"title": "Prompt",
"maxLength": 2500,
"description": "Text prompt (max 2,500 characters)."
},
"duration": {
"enum": [
"5",
"10"
],
"type": "string",
"title": "Duration",
"description": "Required. Video duration (unit: seconds)"
},
"aspect_ratio": {
"enum": [
"1:1",
"16:9",
"9:16"
],
"type": "string",
"title": "Aspect ratio",
"description": "Required. This parameter defines the video aspect ratio"
}
}
}Results, saved runs & billing
Media requests return a job ID. Poll GET /api/v1/jobs/:id until it succeeds or fails; keep the same ID while it is processing. Long chat requests can also return a saved job to poll. Completed outputs are stored in your account, and successful work is billed using your model's current rates.
A multi-step workflow may include separately billed successful actions. If a connection drops, check your saved run before submitting it again.






