Skip to main content

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.
CapabilityValue
Model IDkling-3-0-std
Modestext-to-video, image-to-video, motion-control
Text promptRequired for text-to-video and image-to-video; optional for motion-control
Reference imagesimage-to-video: 1-2 URLs; motion-control: exactly 1 URL
Reference videomotion-control: exactly 1 public MP4, MOV, or M4V URL
Durationtext-to-video and image-to-video: 3-15 seconds, default 5
Motion-control durationAuto-detected from video_urls[0]; videos over 30 seconds are rejected
Aspect ratios1:1, 9:16, 16:9 for text-to-video

Endpoint and authentication

Base URL:
https://api.apixo.ai/api/v1
MethodEndpointPurpose
POST/generateTask/kling-3-0-stdSubmit a generation task
GET/statusTask/kling-3-0-std?taskId={taskId}Poll task status and retrieve results
All requests require your APIXO API key:
Authorization: Bearer YOUR_API_KEY
Submit requests also require:
Content-Type: application/json

Copy-paste async quickstart

This minimal request submits a text-to-video task and returns a taskId.
curl -X POST "https://api.apixo.ai/api/v1/generateTask/kling-3-0-std" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "request_type": "async",
    "input": {
      "mode": "text-to-video",
      "prompt": "a cinematic city skyline at sunset, slow camera push-in",
      "duration": 5,
      "sound": false,
      "aspect_ratio": "16:9"
    }
  }'
Successful response:
{
  "code": 200,
  "message": "success",
  "data": {
    "taskId": "task_12345678"
  }
}
Save the taskId; you need it to poll for the final result.

Poll for result

curl -X GET "https://api.apixo.ai/api/v1/statusTask/kling-3-0-std?taskId=task_12345678" \
  -H "Authorization: Bearer YOUR_API_KEY"
Processing response:
{
  "code": 200,
  "message": "success",
  "data": {
    "taskId": "task_12345678",
    "state": "processing",
    "createTime": 1767965610929
  }
}
Success response:
{
  "code": 200,
  "message": "success",
  "data": {
    "taskId": "task_12345678",
    "state": "success",
    "resultJson": "{\"resultUrls\":[\"https://r2.apixo.ai/video.mp4\"]}",
    "createTime": 1767965610929,
    "completeTime": 1767965712317,
    "costTime": 101388
  }
}
Failed response:
{
  "code": 200,
  "message": "success",
  "data": {
    "taskId": "task_12345678",
    "state": "failed",
    "failCode": "CONTENT_VIOLATION",
    "failMsg": "Content does not meet safety guidelines",
    "createTime": 1767965610929,
    "completeTime": 1767965620132
  }
}
Parse resultJson after state becomes success:
const payload = JSON.parse(data.resultJson);
const videoUrls = payload.resultUrls;

Request body

Text-to-video

{
  "request_type": "async",
  "input": {
    "mode": "text-to-video",
    "prompt": "a cinematic city skyline at sunset, slow camera push-in",
    "negative_prompt": "blur, low quality",
    "duration": 5,
    "sound": false,
    "aspect_ratio": "16:9",
    "cfg_scale": 0.5,
    "multi_prompt": [
      {
        "duration": 2,
        "prompt": "wide establishing shot"
      },
      {
        "duration": 3,
        "prompt": "slow push-in toward glowing skyscrapers"
      }
    ]
  }
}

Image-to-video

{
  "request_type": "async",
  "input": {
    "mode": "image-to-video",
    "prompt": "animate the character waving to the camera",
    "duration": 6,
    "sound": true,
    "image_urls": [
      "https://example.com/start.png",
      "https://example.com/end.png"
    ],
    "cfg_scale": 0.5
  }
}

Motion-control

{
  "request_type": "async",
  "input": {
    "mode": "motion-control",
    "prompt": "keep the same character identity while following the motion reference",
    "negative_prompt": "distorted face, extra limbs",
    "sound": true,
    "character_orientation": "video",
    "image_urls": [
      "https://example.com/character.png"
    ],
    "video_urls": [
      "https://example.com/motion.mp4"
    ]
  }
}

Parameters

request_type
string
default:"async"
required
Result delivery mode. Use async for polling with statusTask, or callback for webhook delivery.
callback_url
string
Required when request_type is callback. Must be a public HTTPS URL that can receive the final task payload. See Webhooks.
input
object
required
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:
code
integer
API status code. 200 means the task was accepted.
message
string
Human-readable status message.
data.taskId
string
Unique task identifier used with the status endpoint.

Status response fields

taskId
string
Unique task identifier.
state
string
Current task state: pending, processing, success, or failed.
resultJson
string
JSON string containing the generated video URLs. Present when state is success.
failCode
string
Machine-readable failure code. Present when state is failed.
failMsg
string
Human-readable failure message. Present when state is failed.
createTime
integer
Task creation timestamp in Unix milliseconds.
completeTime
integer
Task completion timestamp in Unix milliseconds. Present after completion.
costTime
integer
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.
curl -X POST "https://api.apixo.ai/api/v1/generateTask/kling-3-0-std" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "request_type": "callback",
    "callback_url": "https://your-server.com/webhooks/apixo",
    "input": {
      "mode": "image-to-video",
      "prompt": "animate the product photo with a slow studio camera move",
      "duration": 5,
      "sound": true,
      "image_urls": [
        "https://example.com/product.png"
      ]
    }
  }'
See Webhooks for delivery requirements and retry behavior.

Billing

Kling 3.0 Std is billed per generated video second. For text-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.
WorkflowBilling inputAPIXO price
text-to-video or image-to-video, sound: falseduration seconds$0.084 / second
text-to-video or image-to-video, sound: trueduration seconds$0.13 / second
motion-controlDetected video_urls[0] duration, minimum 3 seconds$0.13 / second
For current route and market comparison pricing, see Pricing.

Latency and polling

Actual latency may vary by prompt complexity, reference media, sound generation, route, and current queue load.
Request shapeTypical generation timeRecommended first pollPoll interval
3-5 second text/image video60s-90s60s after task creation5s-10s
6-10 second text/image video90s-120s60s after task creation5s-10s
11-15 second text/image video120s-180s60s after task creation5s-10s
Motion-controlVaries with reference video duration and probing60s after task creation5s-10s
Video generation takes longer than image generation. For production workloads, use callback mode to avoid frequent polling.
Rate limits and concurrency can vary by account, API key, and route. If you receive 429, slow down requests and retry with backoff. For account-level details, see System APIs.

Errors and troubleshooting

HTTP errors

CodeMeaningWhat to do
400Invalid request body, mode, parameter, image URL, or video URLFix the request before retrying
401Missing or invalid API keyCheck the Authorization header
402Insufficient balance or quotaAdd balance or switch account/key
403Key or route cannot access the modelCheck permissions and route strategy
429Rate limit or concurrency limit reachedRetry with exponential backoff
500Server errorRetry with backoff
502Upstream errorRetry with backoff
504Upstream timeoutRetry or use callback mode for long-running jobs

Task failure codes

Fail codeMeaningWhat to do
CONTENT_VIOLATIONPrompt or reference media failed safety checksChange the prompt or input media
INVALID_IMAGE_URLA reference image URL could not be fetched or decodedUse a public, direct JPG, JPEG, or PNG URL
INVALID_VIDEO_URLA reference video URL could not be fetched, decoded, or probedUse a public MP4, MOV, or M4V URL
INVALID_PARAMETERA model parameter is unsupported or malformedCheck mode, duration, sound, aspect_ratio, image_urls, and video_urls
INSUFFICIENT_BALANCEThe account does not have enough balance for the taskAdd balance before retrying
UPSTREAM_ERRORUpstream failureRetry with backoff
TIMEOUTGeneration did not finish in timeRetry, simplify inputs, or use callback mode

Common fixes

SymptomFix
Request fails with invalid modeSet input.mode to text-to-video, image-to-video, or motion-control
Unexpected audio costsound defaults to true; set sound: false for text/image video without generated audio
duration has no effect in motion-controlThis mode detects duration from video_urls[0] and does not forward duration
Aspect ratio has no effectaspect_ratio is only forwarded for text-to-video
Video URL probe failsUse a direct public HTTP/HTTPS MP4, MOV, or M4V URL that supports range reads or full download
Motion-control video is rejectedKeep the reference video at 30 seconds or shorter
See Error Codes for the full error reference.