BeLive Token Hub
API ReferenceVideoKling

Kling 3.0 Turbo

Kling 3.0 Turbo text-to-video and image-to-video APIs.

Kling 3.0 Turbo provides separate asynchronous task APIs for text-to-video and image-to-video generation.

Text to video

ItemValue
MethodPOST
URLhttps://api.tokenhub.belivestudios.com/text-to-video/kling-3.0-turbo
AuthenticationHeader Authorization: Bearer sk-your-belive-studios-key
Content-Typeapplication/json
curl https://api.tokenhub.belivestudios.com/text-to-video/kling-3.0-turbo \
  -H "Authorization: Bearer sk-your-belive-studios-key" \
  -H "Content-Type: application/json" \
  -d '{
  "prompt": "A girl sits on a train and looks out the window, her head swaying gently with the train.",
  "settings": {
    "resolution": "720p",
    "aspect_ratio": "9:16",
    "duration": 3
  },
  "options": {
    "watermark_info": {
      "enabled": false
    }
  }
}'
FieldTypeRequiredDefaultValuesDescription
promptstringYes——Positive or negative text prompt; maximum 3,072 characters, with 2,500 recommended.
settingsobjectNo——Resolution, aspect ratio, and duration settings.
settings.resolutionstringNo720p720p, 1080pOutput resolution.
settings.aspect_ratiostringNo16:916:9, 9:16, 1:1Output aspect ratio.
settings.durationintegerNo53–15Duration in seconds.
optionsobjectNo——Callback, custom task ID, and watermark settings.
options.callback_urlstringNo——Callback URL for status updates.
options.external_task_idstringNo——Account-unique custom task ID.
options.watermark_infoobjectNo——Watermark configuration.
options.watermark_info.enabledbooleanNofalse—Whether to generate a watermarked result.

Multi-shot prompts use shot n, m, words; syntax, with up to six shots. Each shot must be at least one second, and shot durations must sum to settings.duration; each shot prompt is limited to 512 characters.

Create response

The create response returns a system task ID. status starts as submitted and may become processing, succeeded, or failed.

{
  "code": 0,
  "message": "string",
  "request_id": "string",
  "data": {
    "id": "893605946402811985",
    "status": "submitted",
    "create_time": 1781080778802,
    "update_time": 1781080794151,
    "external_id": "text-task-001"
  }
}
FieldTypeDescription
codeintegerError code; 0 indicates success.
messagestringError or status message.
request_idstringSystem-generated request ID.
data.idstringSystem-generated task ID.
data.statusstringsubmitted, processing, succeeded, or failed.
data.create_time / update_timeintegerCreation/update time as Unix milliseconds.
data.external_idstringCustom task ID, when provided.

Query by task ID

GET https://api.tokenhub.belivestudios.com/tasks requires exactly one of task_ids and external_task_ids; comma-separated batches are supported.

Query parameterTypeRequiredDescription
task_idsstringOne of twoSystem task IDs, comma-separated for batches.
external_task_idsstringOne of twoCustom task IDs, comma-separated for batches.
curl "https://api.tokenhub.belivestudios.com/tasks?external_task_ids=text-task-001" \
  -H "Authorization: Bearer sk-your-belive-studios-key" \
  -H "Content-Type: application/json"

Query response

{
  "code": 0,
  "message": "string",
  "request_id": "string",
  "data": [
    {
      "id": "893605946402811985",
      "status": "succeeded",
      "message": "string",
      "create_time": 1781080778802,
      "update_time": 1781080794151,
      "external_id": "text-task-001",
      "outputs": [
        {
          "type": "video",
          "id": "video-output-id",
          "url": "string",
          "watermark_url": "string",
          "duration": "10"
        }
      ],
      "billing": [
        {
          "charge_type": "unit",
          "amount": "1",
          "package_type": "video"
        }
      ]
    }
  ]
}

data[].message may contain the failure reason. Video outputs contain type, id, url, watermark_url, and duration. The common task API may also return image (url, watermark_url, group_id), audio (id, MP3/WAV URLs and durations), voice, or element outputs. Billing entries may contain charge_type, cash_type, amount, currency, package_type, and list_price. Result URLs are cleaned up after 30 days.

Cursor query

POST https://api.tokenhub.belivestudios.com/tasks

This endpoint only queries asynchronous, non-real-time tasks. For the first request, use a time range and filters. For subsequent pages, pass the previous response's data.next_cursor as cursor; when cursor is supplied, start_time and end_time are ignored.

FieldTypeDefaultDescription
start_timestring30 days before end_timeStart of creation-time range, Unix milliseconds; must be earlier than end_time.
end_timestringCurrent timeEnd of creation-time range, Unix milliseconds.
cursorstring—Previous data.next_cursor; when supplied, the time range is ignored.
limitinteger100Number of tasks, maximum 500.
filters[].keystring—status or product_type.
filters[].valuesarray—Status values: submitted, processing, succeeded, failed; product types: video, image, try_on.

The response contains data.result, data.count, data.next_cursor, and data.has_more; result fields match the task-ID query. To fetch the next page, pass data.next_cursor as cursor in the next request:

{
  "cursor": "data.next_cursor from the previous response",
  "limit": 100,
  "filters": [
    {
      "key": "product_type",
      "values": ["video"]
    }
  ]
}

On this page