Skip to main content
POST
/
happyhorse-1.0-video-edit
/
async
curl --request POST \ --url https://api.modellix.ai/api/v1/alibaba/happyhorse-1.0-video-edit/async \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "prompt": "Add a vintage film filter effect to the video", "input_video_url": "https://example.com/video.mp4" } '
{
  "code": 0,
  "message": "success",
  "data": {
    "status": "pending",
    "task_id": "task-abc123",
    "model_id": "model-123",
    "get_result": {
      "method": "GET",
      "url": "https://api.modellix.ai/api/v1/tasks/task-abc123"
    }
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.modellix.ai/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json
prompt
string
required

Text instruction describing desired video editing operations, such as style transformation or local replacement. Supports any language input. Maximum length: 5000 non-Chinese characters or 2500 Chinese characters (automatically truncated if exceeded)

Required string length: 1 - 5000
Example:

"Make the character in the video wear the clothes from the reference image"

input_video_url
string<uri>
required

Input video URL (HTTP/HTTPS, must be publicly accessible). Video requirements: duration 3-60 seconds, format MP4/MOV (H.264 recommended), resolution: long side ≤2160px, short side ≥320px, aspect ratio: 1:2.5~2.5:1, file size ≤100MB, frame rate >8fps. Output video: 3-15 seconds (automatically truncates to first 15 seconds if input exceeds)

Pattern: ^https?://
Example:

"https://example.com/video.mp4"

reference_images
string<uri>[]

Reference image URLs for style transfer or local replacement (optional, 0-5 images). Image requirements: format JPEG/JPG/PNG/WEBP, resolution: width and height ≥300px, aspect ratio: 1:2.5~2.5:1, file size ≤10MB

Maximum array length: 5
Example:
[
  "https://example.com/style1.jpg",
  "https://example.com/style2.jpg"
]
resolution
enum<string>
default:1080P

Output video resolution tier

Available options:
720P,
1080P
Example:

"1080P"

audio_setting
enum<string>
default:auto

Audio control. auto: automatically controlled by the model; origin: preserve original audio from input video

Available options:
auto,
origin
Example:

"auto"

seed
integer

Random seed for reproducibility (0-2147483647). If not specified, system generates random seed. Fixed seed value can improve result reproducibility, but cannot guarantee completely identical results due to probabilistic nature of model generation

Required range: 0 <= x <= 2147483647
Example:

12345

Response

200 - application/json

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required