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.
What this model is for
Use this page after trying Kling 2.1 in the APIXO playground. It shows the model ID, request body, result format, and the shared async workflow links you need for API integration.Model ID, endpoint, and auth
- Model ID:
kling-2-1 - Base URL:
https://api.apixo.ai/api/v1
| Method | Endpoint | Description |
|---|---|---|
| POST | /api/v1/generateTask/kling-2-1 | Create generation task |
| GET | /api/v1/statusTask/kling-2-1 | Query task status |
Authentication
All requests require an API Key in the header:Request Body
Parameters
async (polling) or callback (webhook)
Callback URL, required when request_type=callback (conditional)
Routing strategy: auto, value, or official
Model input parameters
standard-image-to-video— Standard tier image-to-video, requires 1 imagepro-image-to-video— Pro tier image-to-video, supports 1-2 images (end frame)master-text-to-video— Master tier text-to-videomaster-image-to-video— Master tier image-to-video, requires 1 image
Copy-paste quickstart
Standard Image-to-VideoResponse and result format
POST /api/v1/generateTask/kling-2-1
ReturnstaskId on success for subsequent status queries.
Success:
GET /api/v1/statusTask/kling-2-1
Query task execution status and results viataskId.
Polling result fields
Unique task identifier.
Current task state:
pending, processing, success, or failed.JSON string containing
resultUrls array. Only present on success. Parse with JSON.parse().Error code. Only present when
state is failed. See Error Codes.Human-readable error message. Only present when
state is failed.Task creation timestamp (Unix milliseconds).
Task completion timestamp (Unix milliseconds).
Processing duration in milliseconds.
Polling and webhook result retrieval
Userequest_type: "async" with the status endpoint when your app wants to poll for completion. Use request_type: "callback" with callback_url when your production service should receive the final result automatically. See Webhooks for delivery details.
Common errors
| Code | Description |
|---|---|
| 400 | Invalid parameters or request error |
| 401 | Invalid or missing API Key |
| 429 | Rate limit exceeded |
| Fail Code | Description |
|---|---|
CONTENT_VIOLATION | Content violates safety guidelines |
INVALID_IMAGE_URL | Cannot access provided image URL |
Rate Limits
| Limit | Value |
|---|---|
| Requests | 10000 / minute |
| Concurrent tasks | 1000 |
429 error. Wait and retry.
Tips
- Generation time:
- 5-second video: ~60-90 seconds
- 10-second video: ~90-120 seconds
- Submit task, wait 60 seconds, then poll every 5 seconds
- Callback mode: Video generation takes time, strongly recommend using
callbackmode. - Video expiration: Result URLs are valid for 15 days. Download promptly.
- Content moderation: Prompts must comply with content safety guidelines.
- Tier selection:
standard: Best value, for batch generationpro: Supports start/end frame control, for precise creationmaster: Highest quality, for professional production
- End frame feature:
promode supports 2 images — first as start frame, second as end frame. - Negative prompt: Use
negative_promptto avoid unwanted elements. - CFG Scale:
- Higher values: Follows prompt more strictly, may lose creativity
- Lower values: More creative, may deviate from prompt
- Recommended: 0.3-0.7
- Image formats:
image_urlssupports JPG, PNG, WebP, max 10MB per image.