{
"created": 1761313744,
"id": "task-unified-1761313744-h1edgh12",
"model": "happyhorse-1.0-video-edit",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 2400,
"video_duration": 6
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 1608660
}
}{
"error": {
"code": "missing_video_urls",
"message": "happyhorse-1.0-video-edit requires video_urls or video_url",
"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: happyhorse-1.0-video-edit",
"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"
}
}HappyHorse 1.0 Video-Edit
- HappyHorse 1.0 video edit, takes 1 source video and text instructions to perform style transfer, local replacement, etc.
- Optionally accepts 0–5 reference images for style / subject guidance
- Does not support
duration: output video duration =min(input video duration, 15), determined by the model - Does not support
aspect_ratio: output aspect ratio matches the source video - Special billing rule:
(input video duration + output video duration) × resolution unit price; the model truncates inputs longer than 15 seconds to 15 seconds - Asynchronous processing mode, use the returned task ID to query status
- Generated video links are valid for 7 days, please save them promptly
- In rare cases, generated results are delivered via official original links, which may expire in less than 7 days. Download and save them promptly.
{
"created": 1761313744,
"id": "task-unified-1761313744-h1edgh12",
"model": "happyhorse-1.0-video-edit",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 2400,
"video_duration": 6
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 1608660
}
}{
"error": {
"code": "missing_video_urls",
"message": "happyhorse-1.0-video-edit requires video_urls or video_url",
"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: happyhorse-1.0-video-edit",
"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 endpoints require Bearer Token authentication##
Get API Key:
Visit the API Key Management Page to obtain your API Key
Add to request header:
Authorization: Bearer YOUR_API_KEY
Body
Edit instruction text, required
Length limits:
- Chinese: up to
2500characters - Non-Chinese: up to
5000characters - Excess content is automatically truncated
Prompt tips:
- Use editing instructions instead of creative descriptions
- Examples:
Replace the protagonist's clothes with the striped sweater in the image,Replace the video background with snowy mountains
"Have the character in the video wear the striped sweater from the image"
Source video URL to edit, required, only 1 (the first item of the array is taken)
Video requirements:
- Supported formats: MP4, MOV (H.264 encoding recommended)
- Duration:
3~60seconds - The model automatically truncates inputs longer than
15seconds to the first15seconds - Resolution: long edge ≤
2160px, short edge ≥320px - Aspect ratio:
1:2.5~2.5:1 - File size: ≤
100MB - Frame rate: >
8fps - Video URL must be publicly accessible (HTTP or HTTPS); private OSS, intranet, or authenticated links are not supported
Compatible fields: video_url / video are also accepted (lower priority than video_urls)
1 element["https://cdn.example.com/source.mp4"]
Reference image URL array, optional, 0 ~ 5 images
Used for style / subject guidance.
Image requirements:
- Supported formats: JPEG, JPG, PNG, WEBP
- Resolution: width and height ≥
300px - Aspect ratio:
1:2.5~2.5:1 - File size: ≤
10MB - Image URLs must be publicly accessible (HTTP or HTTPS)
5["https://cdn.example.com/sweater.jpg"]
HTTPS callback URL for 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 (at1/2/4seconds after failure respectively) - Callback response body format is consistent with the task query endpoint response format
- A 2xx status code is considered successful; other status codes trigger retries
"https://your-domain.com/webhooks/video-task-completed"
Response
Video generation task created successfully