MaasUnionMaasUnion
API Reference
AI Model APIVideoKling Video

Kling Turbo (3.0 Turbo New API)

Channel type: Kling Turbo (62) Gateway path: https://maasunion.com/kling/v1/turbo/... Official upstream: https://api-beijing.klingai.com (/text-to-video/{model}, /image-to-video/{model}, /tasks)


Overview

Kling 3.0 Turbo uses the Kling new API format: the endpoint path carries the model name, and the request body uses a three-part contents / settings / options structure; the response fields are data.id + data.status (not task_id).

ItemDescription
ModelPath carries kling-3.0-turbo
Supported capabilitiesText-to-Video, Image-to-Video
Create responsedata.id (gateway public task ID) + data.status
Query responsedata[].outputs[]
Success statussucceeded

For differences from the v1 API, see Kling Gateway Overview - Two API Format Differences Comparison.


Authentication

HeaderRequiredDescription
AuthorizationYesBearer {your_api_token}
Content-TypeRequired for POSTapplication/json

Text-to-Video

POST https://maasunion.com/kling/v1/turbo/videos/text-to-video/kling-3.0-turbo

Official upstream: POST /text-to-video/kling-3.0-turbo

Request Body

{
  "prompt": "A girl sat on the train, looking out the window.",
  "settings": {
    "duration": 3,
    "resolution": "720p",
    "aspect_ratio": "9:16"
  },
  "options": {
    "callback_url": "https://xxx/callback",
    "external_task_id": "",
    "watermark_info": { "enabled": false }
  }
}
FieldTypeDescription
promptstringPrompt. Supports multi-shot: 镜头 n,m,words; 镜头 n,m,words;
settings.durationnumberDuration (seconds)
settings.resolutionstringResolution: 720p / 1080p
settings.aspect_ratiostringAspect ratio: 16:9, 9:16, 1:1, etc.
options.callback_urlstringCallback URL
options.external_task_idstringCustom task ID
options.watermark_info.enabledbooleanWhether to add a watermark

Create Response

{
  "code": 0,
  "message": "string",
  "request_id": "string",
  "data": {
    "id": "gateway_public_task_id",
    "status": "submitted",
    "create_time": 1781080778802,
    "update_time": 1781080794151,
    "external_id": "string"
  }
}
FieldDescription
data.idGateway task ID, used for subsequent queries
data.statussubmitted / processing / succeeded / failed

Image-to-Video

POST https://maasunion.com/kling/v1/turbo/videos/image-to-video/kling-3.0-turbo

Official upstream: POST /image-to-video/kling-3.0-turbo

Request Body

{
  "contents": [
    { "type": "prompt", "text": "A girl sat on the train, looking out the window." },
    { "type": "first_frame", "url": "https://your-cdn.com/start-frame.jpg" }
  ],
  "settings": {
    "resolution": "1080p",
    "duration": 10
  },
  "options": {
    "callback_url": "https://xxx/callback",
    "external_task_id": "",
    "watermark_info": { "enabled": true }
  }
}
contents[].typeDescription
promptPrompt
first_frameFirst frame image (supports url / base64; last frame not supported yet)

Images in contents support URL or Base64. 3.0 Turbo supports multi-shot; in the prompt use the 镜头 n,m,words; 镜头 n,m,words; format.


Query Task

Query by Task ID

GET https://maasunion.com/kling/v1/turbo/tasks/{task_id}

Official upstream: GET /tasks?external_task_ids={id}

curl --request GET \
  --url "https://maasunion.com/kling/v1/turbo/tasks/{task_id}" \
  --header "Authorization: Bearer {your_api_token}"

Query Response

{
  "code": 0,
  "message": "string",
  "request_id": "string",
  "data": [
    {
      "id": "893605946402811985",
      "status": "succeeded",
      "message": "string",
      "create_time": 1781080778802,
      "update_time": 1781080794151,
      "external_id": "string",
      "outputs": [
        {
          "type": "video",
          "id": "string",
          "url": "string",
          "watermark_url": "string",
          "duration": "string"
        }
      ],
      "billing": [
        {
          "charge_type": "cash",
          "amount": "string",
          "package_type": "video"
        }
      ]
    }
  ]
}
FieldDescription
data[].statussubmitted / processing / succeeded / failed
data[].outputs[].urlVideo download URL (valid for about 30 days)
data[].outputs[].watermark_urlWatermarked video URL
data[].billingBilling information

Query by Cursor Pagination

POST https://maasunion.com/kling/v1/turbo/tasks

Official upstream: POST /tasks

{
  "start_time": "1781193600000",
  "end_time": "1781516352968",
  "cursor": "",
  "limit": 500,
  "filters": [
    { "key": "status", "values": ["succeeded"] },
    { "key": "product_type", "values": ["video"] }
  ]
}
ParameterDescription
start_time / end_timeTime range (millisecond timestamps)
cursorPagination cursor; empty for the first page
limitNumber per page, max 500
filtersFilter conditions; key can be status, product_type, etc.

Task Status

statusMeaning
submittedSubmitted
processingProcessing
succeededSucceeded
failedFailed

Note: the success status for the new API is succeeded (the v1 API is succeed).


Error Handling

When code != 0, the request failed; message contains the specific reason. Common cases:

  • The model name in the path is misspelled (should be kling-3.0-turbo)
  • contents does not provide a prompt or first frame image
  • Invalid token or insufficient balance
  • Content moderation interception

For more general information, see Kling Gateway Overview.

How is this guide?