curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-v2.6-motion-control",
"prompt": "A girl dancing gracefully",
"image_urls": [
"https://example.com/character.jpg"
],
"video_urls": [
"https://example.com/dance-reference.mp4"
],
"quality": "720p",
"model_params": {
"character_orientation": "image"
}
}
'{
"created": 1757169743,
"id": "task-unified-1757169743-7cvnl5zw",
"model": "kling-v2.6-motion-control",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 300,
"video_duration": 8
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 22.68,
"user_group": "default"
}
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "Token does not have access to model: kling-v2.6-motion-control",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests, please try again later",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"type": "api_error"
}
}Kling-V2.6
Kling 2.6 Motion Control
- Kling 2.6 Motion Control (kling-v2.6-motion-control) model supports generating motion-driven videos using reference image + reference video
- The system extracts motion trajectories from the reference video and applies them to the character/object in the reference image, generating a new video with motions consistent with the reference video
- Video duration depends on
character_orientation:imagemax 10 seconds,videomax 30 seconds, minimum 3 seconds - Asynchronous processing mode, use the returned task ID to query task status
- Generated video links are valid for 24 hours, please save them promptly
- Billing: per second of output video, rounded to the nearest whole second;
1080pis billed at 1.6× the720prate - Subject elements (
element_list) are not supported; requests with a non-emptyelement_listare rejected (an empty list is ignored). Usekling-v3-motion-controlwhen you need subject elements
POST
/
v1
/
videos
/
generations
curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "kling-v2.6-motion-control",
"prompt": "A girl dancing gracefully",
"image_urls": [
"https://example.com/character.jpg"
],
"video_urls": [
"https://example.com/dance-reference.mp4"
],
"quality": "720p",
"model_params": {
"character_orientation": "image"
}
}
'{
"created": 1757169743,
"id": "task-unified-1757169743-7cvnl5zw",
"model": "kling-v2.6-motion-control",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 300,
"video_duration": 8
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 22.68,
"user_group": "default"
}
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "Token does not have access to model: kling-v2.6-motion-control",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests, please try again later",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"type": "api_error"
}
}Authorizations
All API endpoints require Bearer Token authentication
Get your API Key:
Visit the API Key Management Page to obtain your API Key
Add the following to your request headers:
Authorization: Bearer YOUR_API_KEY
Body
application/json
Array of reference image URLs, used to provide the appearance source of the character/object
Note:
- Provide one reference image
- Image size: no larger than
10MB - Supported file formats:
.jpg,.jpeg,.png - Image dimensions: width and height ≥
300px, aspect ratio between1:2.5and2.5:1 - Image URL must be directly accessible by the server
Example:
["https://example.com/character.jpg"]
Array of reference video URLs to provide motion trajectory
Note:
- Provide one reference video
- Video duration:
3to30seconds - Supported formats:
.mp4,.mov - Video size: up to
100MB - Video dimensions: width and height between
340pxand3850px - Avoid cuts, fast motion, and scene changes
- The video URL must be directly accessible by the server
Example:
["https://example.com/dance-reference.mp4"]
HTTPS callback URL triggered upon task completion
Callback Timing:
- Triggered when the task is completed, failed, or cancelled
- Sent after billing confirmation is complete
Security Restrictions:
- Only HTTPS protocol is supported
- Callbacks to private IP addresses are prohibited (127.0.0.1, 10.x.x.x, 172.16-31.x.x, 192.168.x.x, etc.)
- URL length must not exceed
2048characters
Callback Mechanism:
- Timeout:
10seconds - Up to
3retries after failure (retries at1/2/4seconds after failure) - Callback response body format is consistent with the task query API response
- A 2xx status code from the callback URL is considered successful; other status codes will trigger a retry
Example:
"https://your-domain.com/webhooks/video-task-completed"
Response
Video generation task created successfully