Skip to content

HappyHorse - video-edit ​

Endpoint ​

POST /videos/generations

Full URL: https://modelfold.ai/v1/videos/generations

Authentication: every request must include the Authorization: Bearer <API_KEY> header.

Send model parameters directly in the JSON body. Do not wrap them in input. This request waits for generation to finish and returns data[].url; supported media models also offer async jobs, polling and callbacks. Replace example media URLs with your own publicly accessible files. See API gateway for billing and errors.

Input parameters for the generation task

Request Parameters ​

Body (application/json) ​

ParameterTypeRequiredDescription
modelstringYesThe model name to use for generation. Required field.
- Must be happyhorse/video-edit for this endpoint Default:"happyhorse/video-edit"。 Allowed values:happyhorse/video-edit。 Example:happyhorse/video-edit。
promptstringYesPrompt required by the ModelFold gateway; at most 2000 characters. Required edit instruction describing the intended change (e.g., style transfer / local replacement). Up to 5,000 characters. maxLength: 2000. Example:Make the horse-headed humanoid character in the video wear the striped sweater from the image。
video_urlstringYesURL of the input video (one video).
Video requirements:
Format: MP4, MOV (H.264 encoding recommended).
Duration: 3–60 seconds.
Resolution: the longer side must not exceed 2,160 px; the shorter side must be at least 320 px.
Aspect ratio: 1:2.5–2.5:1.
File size: up to 100 MB.
Frame rate: greater than 8 fps.
reference_imagearray&lt;string&gt;NoOptional reference image URL list (0–5).
Image requirements:
Format: JPEG, JPG, PNG, WEBP.
Resolution: both width and height must be at least 300 px.
Aspect ratio: 1:2.5–2.5:1.
File size: up to 10 MB. minItems: 0. maxItems: 5.
resolutionstringNoOutput video resolution: 720p or 1080p (default). Default:"1080p"。 Allowed values:720p / 1080p。 Example:1080p。
audio_settingstringNoAudio handling: auto lets the model handle audio; origin keeps the input video's original audio where possible. Default:"auto"。 Allowed values:auto / origin。 Example:auto。
seedintegerNoRandom seed for reproducibility. Default:0。 minimum: 0. maximum: 2147483647. Example:0。

Request Example ​

bash
curl -X POST "https://modelfold.ai/v1/videos/generations" \
  -H "Authorization: Bearer $MODELFOLD_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "happyhorse/video-edit",
  "prompt": "Make the horse-headed humanoid character in the video wear the striped sweater from the image",
  "video_url": "https://example.com/reference.mp4",
  "resolution": "1080p",
  "audio_setting": "auto",
  "seed": 0
}'
json
{
  "model": "happyhorse/video-edit",
  "prompt": "Make the horse-headed humanoid character in the video wear the striped sweater from the image",
  "video_url": "https://example.com/reference.mp4",
  "resolution": "1080p",
  "audio_setting": "auto",
  "seed": 0
}

Response ​

200 — Generation completed. usage contains actual billing details; result URLs are illustrative. ​

json
{
  "ok": true,
  "created": 1792134000,
  "data": [
    {
      "url": "https://modelfold.ai/uploads/outputs/result.mp4"
    }
  ],
  "usage": {}
}

ModelFold — one API for all the best AI models.