Async video pipeline
Submit createTask once and poll recordInfo — ideal for batch and queue-based apps.

KLING
Validate prompts and parameters before integration — same model and payload as production.
createTask input fields for the default tab.
| Field | Type | Required |
|---|---|---|
| prompt | textarea | Yes |
| aspect_ratio | select (16:9 | 9:16 | 4:3 | 1:1 | 3:4 | 21:9) | No |
| resolution | select (480p | 720p) | No |
| duration | number | No |
| generate_audio | switch | No |
Typical generation previews (actual output varies by prompt).

Why teams choose this model for production workloads.
Submit createTask once and poll recordInfo — ideal for batch and queue-based apps.
Combine prompts with reference images, frames, or audio when the model supports them.
Credits apply only on successful jobs so you can safely retry failed generations.
Core capabilities for this model on the ModKie gateway.
Video jobs take longer; poll recordInfo with backoff until success.
The embedded Playground uses the same input builders as production createTask.
Common developer and product use cases for this API.
Turn scripts and prompts into vertical clips for Reels, Shorts, and TikTok.
Animate product stills into lightweight promo videos for ecommerce.
Embed generation behind your own UI with one Kie-compatible jobs contract.
Credits apply per successful job only.
Kling 2.1
55 credits / job
≈ $54.45 USD ($0.99 USD/credit Starter pack estimate)
Three steps from API key to your first successful job.
Create an API key
Sign in and create a key under Settings → API Keys.
Submit createTask
POST to /api/v1/jobs/createTask with your model id and input payload.
Poll recordInfo
Poll recordInfo until the job completes; download outputs from the response.
Example createTask request
curl -X POST https://modkie.com/api/v1/jobs/createTask \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "kling/v2-1",
"input": {
"prompt": "Cinematic aerial shot over coastal cliffs at golden hour, slow camera drift, atmospheric haze, film grain.",
"aspect_ratio": "16:9",
"duration": 5,
"resolution": "720p",
"generate_audio": true
}
}'Poll GET /api/v1/jobs/recordInfo?taskId=… until state is success or fail. Credits apply only on success.
ModKie is more than API relay — deploy, fine-tune, and register custom endpoints on the same gateway.
One API key and jobs contract across marketplace and self-hosted models.
Validate payloads in-browser before shipping to production.
Deploy HuggingFace or custom workers and route traffic through ModKie.
Fine-tune vision models and register weights back into the gateway.
Work with our team on model landing, integration, and production rollout.