kling-2.1-master API
Use the exact kling-2.1-master model ID through Modelflare asynchronous video routing.
kling-2.1-master API
Use the exact kling-2.1-master model ID through Modelflare asynchronous video routing.
Use the exact model ID kling-2.1-master. The model field must match this page exactly.
Authentication and endpoint
Use a Modelflare API key with https://modelflare.dev/v1. The gateway entry point is POST /v1/videos.
Authorization: Bearer YOUR_MODELFLARE_API_KEY
Create a task
curl https://modelflare.dev/v1/videos \
-H "Authorization: Bearer YOUR_MODELFLARE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model_name": "kling-2.1-master",
"prompt": "A white cat runs through a neon-lit street in the rain, cinematic tracking shot",
"duration": "5", "mode": "std"
}'
Poll and download
Save the task ID. Poll GET /v1/videos/{task_id} and download with GET /v1/videos/{task_id}/content. Result URLs may expire, so transfer the file promptly.
curl https://modelflare.dev/v1/videos/TASK_ID \
-H "Authorization: Bearer YOUR_MODELFLARE_API_KEY"
Request notes
Kling uses family-specific model_name, prompt, mode, duration, image_list, or contents/settings fields; native JSON is preserved and forwarded.
Request parameters
Kling Legacy uses model_name with the text2video/image2video request structures. Check the model’s official page and pricing page for mode, resolution, and audio lanes.
| Field | Required | Notes |
|---|---|---|
model_name |
Yes | kling-2.1-master |
prompt |
Conditional | Required for text-to-video; combine with images for image-to-video |
image |
Conditional | First-frame image URL or Base64 |
image_tail |
No | Optional end-frame image |
negative_prompt |
No | Negative prompt |
mode |
No | std / pro / 4k (model-dependent) |
duration |
No | 3–15 seconds (string) |
multi_shot |
No | Enable multi-shot storyboarding |
sound |
No | Generate synchronized sound where supported |
camera_control |
No | Camera control where supported |
Input and output limits
Legacy requests use model_name; availability of mode, duration, image/image_tail, sound, and camera_control depends on the model. Minimum billable seconds and resolution lanes follow the per-model rows on the pricing page.
Supported scope
This page covers Modelflare model generation and editing calls. Search or map enrichment, voice management, and element-library management are resource APIs outside this public model-call surface and are not required request fields.
Pricing and billing
This model uses per-second video billing. See the model pricing page for the current customer price, reference list price, and complete specification.
This page documents Modelflare’s public interface; the fields and limits shown here are the current contract.