Skip to content
Trang này chưa có bản dịch sang ngôn ngữ của bạn, nên hiện đang được hiển thị bằng tiếng Anh.

Kling 3.0 Turbo Video Generation

Asynchronous processing mode, returns a task ID for subsequent queries

Toàn bộ tài liệu
POST/v1/videos/generations
  • Supports text-to-video and image-to-video (first-frame control)
  • Supports two resolution tiers: 720P / 1080P
  • Supports video durations of 3-15 seconds
  • Supports multi-shot storyboards (expressed via a fixed-format prompt)

Ví dụ request

curl --request POST \
  --url https://api.apisea.ai/v1/videos/generations \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
    "model": "kling-3.0-turbo",
    "prompt": "A corgi running on the beach, cinematic, golden-hour light",
    "aspect_ratio": "16:9",
    "resolution": "1080p",
    "duration": 5
  }'

Authentication

Authorizationstringrequired

All endpoints require authentication using a Bearer Token

Get an API Key:

Visit the API Key management page to obtain your API Key

Add it to the request header when using it:

text
Authorization: Bearer YOUR_API_KEY

Request Parameters

modelstringrequired

Video generation model name

Supported models:

  • kling-3.0-turbo - Kling 3.0 Turbo
nsfw_checkbooleandefault: false

Whether to run content moderation before submitting the video task.

  • true: use omni-moderation-latest to review prompts and input images
  • false or omitted: do not send a moderation request, adding no moderation cost or latency (default)
promptstringrequired

Text prompt

The upstream limit is no more than 3072 characters; we recommend no more than 2500 characters.

Example: "A corgi running on the beach, cinematic, golden-hour light"

first_frame_imagestring

Supports an image URL or Base64.

Warning

Upstream limits for the first-frame image:

  • Format: .jpg / .jpeg / .png
  • Size: ≤ 50MB
  • Width/height: ≥ 300px
  • Aspect ratio: 1:2.5 ~ 2.5:1
aspect_ratiostringdefault: 16:9

Video aspect ratio

Available values:

  • 16:9 - Landscape
  • 9:16 - Portrait
  • 1:1 - Square

Default value: 16:9

Note

Only effective for text-to-video. This field has no effect for image-to-video; the video ratio is determined by the first-frame image.

resolutionstringdefault: 720p

Video resolution

Available values:

  • 720p
  • 1080p

Default value: 720p

durationintegerdefault: 5

Video duration (seconds)

Value range: 3-15 (minimum 3 seconds, maximum 15 seconds)

Default value: 5

⚠️ Note: You must enter a plain number (e.g. 6); do not add quotes, otherwise it will cause an error

watermarkboolean

Whether to add a watermark

Only passed to the upstream when explicitly provided; if omitted, no watermark is added.

Text-to-Video vs Image-to-Video

The system automatically determines the generation mode based on whether first_frame_image is provided: with a first-frame image it uses image-to-video, without one it uses text-to-video. Users do not need to declare it explicitly.

ParameterText-to-VideoImage-to-Video
prompt✅ Required✅ Optional (if empty, generated purely from the first-frame image)
first_frame_image❌ Not passed✅ Required
aspect_ratio✅ Optional❌ No effect (ratio determined by the first-frame image)
resolution✅ Optional✅ Optional
duration✅ Optional (3-15)✅ Optional (3-15)
watermark✅ Optional✅ Optional

Response

codeinteger

Response status code, 200 on success

dataarray

Returned data array

Array element

statusstring

Task status, submitted upon initial submission

task_idstring

Unique task identifier, used to query the task status and result

Use Cases

Scenario 1: Text-to-Video (1080P)

json
{
  "model": "kling-3.0-turbo",
  "prompt": "A corgi running on the beach, cinematic, golden-hour light",
  "aspect_ratio": "16:9",
  "resolution": "1080p",
  "duration": 5
}

Scenario 2: Text-to-Video (Portrait 720P)

json
{
  "model": "kling-3.0-turbo",
  "prompt": "Shibuya crossing in Tokyo, neon lights on a rainy night reflecting on the wet ground, pedestrians walking through with umbrellas",
  "aspect_ratio": "9:16",
  "resolution": "720p",
  "duration": 10
}

Scenario 3: Image-to-Video (First-Frame Image)

json
{
  "model": "kling-3.0-turbo",
  "prompt": "The camera slowly pushes in, the character smiles",
  "first_frame_image": "https://cdn.example.com/first.jpg",
  "resolution": "720p",
  "duration": 5
}

Scenario 4: Image-to-Video from First Frame Only (No Prompt)

json
{
  "model": "kling-3.0-turbo",
  "first_frame_image": "https://cdn.example.com/first.jpg",
  "resolution": "1080p",
  "duration": 5
}

Scenario 5: Multi-Shot Storyboard (Text-to-Video)

json
{
  "model": "kling-3.0-turbo",
  "prompt": "Shot 1,2,a corgi running on the beach;Shot 2,3,the camera pushes in on the character smiling;",
  "aspect_ratio": "16:9",
  "resolution": "1080p",
  "duration": 5
}

Note

Querying the Task Result

Video generation is an asynchronous task; after submission a task_id is returned. Use the Get Task Status endpoint to query the generation progress and result.

Phản hồi

{
  "code": 200,
  "data": [
    {
      "status": "submitted",
      "task_id": "task_xxxxxxxxxx"
    }
  ]
}

Phát hiện lỗi trong tài liệu này? Gửi email đến support@apisea.ai.