Skip to main content
Video models

Kling 2.6 — Pro text to video API

Pro text to video with Kling 2.6: request parameters, examples and response handling.

← Kling 2.6

Endpoint: POST https://api.higgsfield.ai/kling-video/v2.6/pro/text-to-video

Endpoint ID: kling-video/v2.6/pro/text-to-video

▶Open API PlaygroundKling 2.6 · Pro text to video↗

#Usage notes

  • duration accepts 5 or 10 seconds; 5 is the default.
  • Native audio uses sound: on or off and defaults to on.

#Quick start

cURL
curl --request POST \
  --url https://api.higgsfield.ai/kling-video/v2.6/pro/text-to-video \
  --header "Authorization: Key ${HF_API_KEY_ID}:${HF_API_KEY_SECRET}" \
  --header "Content-Type: application/json" \
  --header "Idempotency-Key: ${IDEMPOTENCY_KEY}" \
  --data '{
  "prompt": "A slow cinematic tracking shot along a sunlit coastal road."
}'

#Input schema

sound string (default: on)

Enable sound for the output video. Allowed values: "on", "off".

prompt string required

Write your prompt here

duration integer (default: 5)

Requested output duration in seconds. Allowed values: 5, 10.

cfg_scale number (default: 0.5)

Minimum: 0. Maximum: 1. Multiple of: 0.01.

aspect_ratio string (default: 16:9)

Output width-to-height ratio. Allowed values: "16:9", "9:16", "1:1".

Complete JSON schema
json
{
  "type": "object",
  "title": "Kling 2.6 Playground",
  "required": [
    "prompt"
  ],
  "properties": {
    "sound": {
      "enum": [
        "on",
        "off"
      ],
      "type": "string",
      "title": "Generate sound",
      "default": "on"
    },
    "prompt": {
      "type": "string",
      "title": "Prompt",
      "description": "Write your prompt here"
    },
    "duration": {
      "enum": [
        5,
        10
      ],
      "type": "integer",
      "title": "Duration",
      "default": 5
    },
    "cfg_scale": {
      "type": "number",
      "title": "CFG Scale",
      "default": 0.5,
      "maximum": 1,
      "minimum": 0,
      "multipleOf": 0.01
    },
    "aspect_ratio": {
      "enum": [
        "16:9",
        "9:16",
        "1:1"
      ],
      "type": "string",
      "title": "Aspect ratio",
      "default": "16:9"
    }
  }
}

#Response

Submission returns a request handle. Poll status_url until status is completed, or use webhooks.

Accepted
{
  "status": "queued",
  "request_id": "REQUEST_ID",
  "status_url": "https://api.higgsfield.ai/requests/REQUEST_ID/status",
  "cancel_url": "https://api.higgsfield.ai/requests/REQUEST_ID/cancel"
}

A completed response includes the following output fields:

json
{
  "status": "completed",
  "request_id": "REQUEST_ID",
  "video": {
    "url": "https://example.com/output.mp4"
  }
}

See idempotent requests, polling, request errors and authentication for shared request handling.

Was this page helpful?
Navigation