duration: output video duration = min(input video duration, 15), determined by the modelaspect_ratio: output aspect ratio matches the source video(input video duration + output video duration) × resolution unit price; the model truncates inputs longer than 15 seconds to 15 seconds##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
Video generation model name
happyhorse-1.0-video-edit "happyhorse-1.0-video-edit"
Edit instruction text, required
Length limits:
2500 characters5000 charactersPrompt tips:
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:
3 ~ 60 seconds15 seconds to the first 15 seconds2160 px, short edge ≥ 320 px1:2.5 ~ 2.5:1100MB8 fpsCompatible 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:
300 px1:2.5 ~ 2.5:110MB5["https://cdn.example.com/sweater.jpg"]
Whether to keep the original audio of the input video, defaults to false
Options:
true: Keep the original audio of the input videofalse: Discard the original audio; the model generates new audiofalse
Video resolution tier, defaults to 720p
Options:
720p: Standard clarity, this is the default1080p: HD clarityBilling note: Resolution tier directly affects billing
720p, 1080p "720p"
Random seed, default is random
Details:
1 ~ 21474836471 <= x <= 214748364742
HTTPS callback URL for task completion
Callback timing:
Security restrictions:
2048 charactersCallback mechanism:
10 seconds3 retries after failure (at 1/2/4 seconds after failure respectively)"https://your-domain.com/webhooks/video-task-completed"
Video generation task created successfully
Task creation timestamp
1761313744
Task ID
"task-unified-1761313744-h1edgh12"
Actual model name used
"happyhorse-1.0-video-edit"
Specific type of the task
video.generation.task Task progress percentage (0-100)
0 <= x <= 1000
Task status
pending, processing, completed, failed, cancelled "pending"
Video task details
Output type of the task
text, image, audio, video "video"
Usage and billing information