Skip to content

HappyHorse - reference-to-video ​

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/reference-to-video for this endpoint Default:"happyhorse/reference-to-video"。 Allowed values:happyhorse/reference-to-video。 Example:happyhorse/reference-to-video。
promptstringYesPrompt required by the ModelFold gateway; at most 2000 characters. Text prompt describing the video to generate (any language). Up to 5,000 characters. maxLength: 2000. Example:A woman in a red qipao character1. The shot opens with a side medium view outlining the tailored fit of the qipao and S-curve silhouette, then cuts to a low-angle shot capturing her gracefully unfolding a folding fan character2, with tassel earrings character3 swaying lightly as she turns her head. Finally, the camera pushes into a facial close-up, freezing on her fingertips lightly touching the fan ribs and the subtle, reserved charm in her expressive gaze. Through multiple angles, it comprehensively showcases an aura of Eastern elegance.。
reference_imagearray&lt;string&gt;YesReference image URL list. Provide 1–9 images. The order defines which image is character1, character2, etc.
Image limits:
Format: JPEG, JPG, PNG, and WEBP.
Resolution: shortest side at least 400 px. 720P or higher recommended. Avoid small, blurry, or heavily compressed images, as they degrade output quality.
File size: 10 MB maximum. minItems: 1. maxItems: 9.
resolutionstringNoOutput video resolution: 720p or 1080p (default). Default:"1080p"。 Allowed values:720p / 1080p。 Example:1080p。
aspect_ratiostringNoOutput aspect ratio. Valid values: 16:9 (default), 9:16, 1:1, 4:3, 3:4. Default:"16:9"。 Allowed values:16:9 / 9:16 / 1:1 / 4:3 / 3:4。 Example:16:9。
durationintegerNoOutput duration in seconds (integer). Must be between 3 and 15. Defaults to 5. Default:5。 minimum: 3. maximum: 15. Example:5。
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/reference-to-video",
  "prompt": "A woman in a red qipao character1. The shot opens with a side medium view outlining the tailored fit of the qipao and S-curve silhouette, then cuts to a low-angle shot capturing her gracefully unfolding a folding fan character2, with tassel earrings character3 swaying lightly as she turns her head. Finally, the camera pushes into a facial close-up, freezing on her fingertips lightly touching the fan ribs and the subtle, reserved charm in her expressive gaze. Through multiple angles, it comprehensively showcases an aura of Eastern elegance.",
  "reference_image": [
    "https://example.com/reference.png"
  ],
  "resolution": "1080p",
  "aspect_ratio": "16:9",
  "duration": 5,
  "seed": 0
}'
json
{
  "model": "happyhorse/reference-to-video",
  "prompt": "A woman in a red qipao character1. The shot opens with a side medium view outlining the tailored fit of the qipao and S-curve silhouette, then cuts to a low-angle shot capturing her gracefully unfolding a folding fan character2, with tassel earrings character3 swaying lightly as she turns her head. Finally, the camera pushes into a facial close-up, freezing on her fingertips lightly touching the fan ribs and the subtle, reserved charm in her expressive gaze. Through multiple angles, it comprehensively showcases an aura of Eastern elegance.",
  "reference_image": [
    "https://example.com/reference.png"
  ],
  "resolution": "1080p",
  "aspect_ratio": "16:9",
  "duration": 5,
  "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.