Kling 3.0 Turbo Video Generation
Asynchronous processing mode, returns a task ID for subsequent queries
Toda a documentação/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)
Exemplos de pedidos
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
AuthorizationstringrequiredAll 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:
Authorization: Bearer YOUR_API_KEYRequest Parameters
modelstringrequiredVideo generation model name
Supported models:
kling-3.0-turbo- Kling 3.0 Turbo
nsfw_checkbooleandefault: falseWhether to run content moderation before submitting the video task.
true: useomni-moderation-latestto review prompts and input imagesfalseor omitted: do not send a moderation request, adding no moderation cost or latency (default)
promptstringrequiredText 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_imagestringSupports 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:9Video aspect ratio
Available values:
16:9- Landscape9:16- Portrait1: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: 720pVideo resolution
Available values:
720p1080p
Default value: 720p
durationintegerdefault: 5Video 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
watermarkbooleanWhether 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.
| Parameter | Text-to-Video | Image-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
codeintegerResponse status code, 200 on success
dataarrayReturned data array
Array element
statusstringTask status, submitted upon initial submission
task_idstringUnique task identifier, used to query the task status and result
Use Cases
Scenario 1: Text-to-Video (1080P)
{
"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)
{
"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)
{
"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)
{
"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)
{
"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_idis returned. Use the Get Task Status endpoint to query the generation progress and result.
Respostas
{
"code": 200,
"data": [
{
"status": "submitted",
"task_id": "task_xxxxxxxxxx"
}
]
}Modelos que usam este endpoint
Encontrou um problema nesta documentação? Envie um e-mail para support@apisea.ai.