Documentation Index
Fetch the complete documentation index at: https://apixo.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Overview
Kling 3.0 Std is a standard-quality video generation model for text prompts, reference-image animation, and motion transfer from a reference video. Use this page when you are ready to call the API after trying the model in the APIXO playground.| Capability | Value |
|---|---|
| Model ID | kling-3-0-std |
| Modes | text-to-video, image-to-video, motion-control |
| Text prompt | Required for text-to-video and image-to-video; optional for motion-control |
| Reference images | image-to-video: 1-2 URLs; motion-control: exactly 1 URL |
| Reference video | motion-control: exactly 1 public MP4, MOV, or M4V URL |
| Duration | text-to-video and image-to-video: 3-15 seconds, default 5 |
| Motion-control duration | Auto-detected from video_urls[0]; videos over 30 seconds are rejected |
| Aspect ratios | 1:1, 9:16, 16:9 for text-to-video |
Endpoint and authentication
Base URL:| Method | Endpoint | Purpose |
|---|---|---|
POST | /generateTask/kling-3-0-std | Submit a generation task |
GET | /statusTask/kling-3-0-std?taskId={taskId} | Poll task status and retrieve results |
Copy-paste async quickstart
This minimal request submits a text-to-video task and returns ataskId.
taskId; you need it to poll for the final result.
Poll for result
resultJson after state becomes success:
Request body
Text-to-video
Image-to-video
Motion-control
Parameters
Result delivery mode. Use
async for polling with statusTask, or callback for webhook delivery.Required when
request_type is callback. Must be a public HTTPS URL that can receive the final task payload. See Webhooks.Kling 3.0 Std input parameters.
Response format
Submit task response
POST /generateTask/kling-3-0-std returns a task ID when the task is accepted:
API status code.
200 means the task was accepted.Human-readable status message.
Unique task identifier used with the status endpoint.
Status response fields
Unique task identifier.
Current task state:
pending, processing, success, or failed.JSON string containing the generated video URLs. Present when
state is success.Machine-readable failure code. Present when
state is failed.Human-readable failure message. Present when
state is failed.Task creation timestamp in Unix milliseconds.
Task completion timestamp in Unix milliseconds. Present after completion.
Processing duration in milliseconds. Present after successful completion.
Webhook callback mode
Use callback mode when your backend should receive the final result automatically instead of polling.Billing
Kling 3.0 Std is billed per generated video second. Fortext-to-video and image-to-video, the selected sound value determines the unit price. For motion-control, APIXO probes the reference video duration and uses a minimum of 3 billable seconds.
| Workflow | Billing input | APIXO price |
|---|---|---|
text-to-video or image-to-video, sound: false | duration seconds | $0.084 / second |
text-to-video or image-to-video, sound: true | duration seconds | $0.13 / second |
motion-control | Detected video_urls[0] duration, minimum 3 seconds | $0.13 / second |
Latency and polling
Actual latency may vary by prompt complexity, reference media, sound generation, route, and current queue load.| Request shape | Typical generation time | Recommended first poll | Poll interval |
|---|---|---|---|
| 3-5 second text/image video | 60s-90s | 60s after task creation | 5s-10s |
| 6-10 second text/image video | 90s-120s | 60s after task creation | 5s-10s |
| 11-15 second text/image video | 120s-180s | 60s after task creation | 5s-10s |
| Motion-control | Varies with reference video duration and probing | 60s after task creation | 5s-10s |
429, slow down requests and retry with backoff. For account-level details, see System APIs.
Errors and troubleshooting
HTTP errors
| Code | Meaning | What to do |
|---|---|---|
400 | Invalid request body, mode, parameter, image URL, or video URL | Fix the request before retrying |
401 | Missing or invalid API key | Check the Authorization header |
402 | Insufficient balance or quota | Add balance or switch account/key |
403 | Key or route cannot access the model | Check permissions and route strategy |
429 | Rate limit or concurrency limit reached | Retry with exponential backoff |
500 | Server error | Retry with backoff |
502 | Upstream error | Retry with backoff |
504 | Upstream timeout | Retry or use callback mode for long-running jobs |
Task failure codes
| Fail code | Meaning | What to do |
|---|---|---|
CONTENT_VIOLATION | Prompt or reference media failed safety checks | Change the prompt or input media |
INVALID_IMAGE_URL | A reference image URL could not be fetched or decoded | Use a public, direct JPG, JPEG, or PNG URL |
INVALID_VIDEO_URL | A reference video URL could not be fetched, decoded, or probed | Use a public MP4, MOV, or M4V URL |
INVALID_PARAMETER | A model parameter is unsupported or malformed | Check mode, duration, sound, aspect_ratio, image_urls, and video_urls |
INSUFFICIENT_BALANCE | The account does not have enough balance for the task | Add balance before retrying |
UPSTREAM_ERROR | Upstream failure | Retry with backoff |
TIMEOUT | Generation did not finish in time | Retry, simplify inputs, or use callback mode |
Common fixes
| Symptom | Fix |
|---|---|
| Request fails with invalid mode | Set input.mode to text-to-video, image-to-video, or motion-control |
| Unexpected audio cost | sound defaults to true; set sound: false for text/image video without generated audio |
duration has no effect in motion-control | This mode detects duration from video_urls[0] and does not forward duration |
| Aspect ratio has no effect | aspect_ratio is only forwarded for text-to-video |
| Video URL probe fails | Use a direct public HTTP/HTTPS MP4, MOV, or M4V URL that supports range reads or full download |
| Motion-control video is rejected | Keep the reference video at 30 seconds or shorter |