Skip to content

HappyHorse-1-1 image-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 used for generation. This endpoint must use happyhorse-1-1/image-to-video. Default:"happyhorse-1-1/image-to-video"。 Allowed values:happyhorse-1-1/image-to-video。 Example:happyhorse-1-1/image-to-video。
promptstringYesPrompt required by the ModelFold gateway; at most 2000 characters. Describes the video content to generate. Supports any language. Maximum: 5,000 non-Chinese characters or 2,500 Chinese Default:""。 maxLength: 2000. Example:``。
image_urlsarray&lt;string&gt;YesThe URL of the first frame image.
Image constraints:
1. Formats: JPEG, JPG, PNG, WEBP.
2. Resolution: Width and height must both be at least 300 pixels.
3. Aspect ratio: Between 1:2.5 and 2.5:1.
4. File size: Up to 20 MB. maxItems: 1.
resolutionstringNoThe resolution of the generated video.
Options: 720p; 1080p
The output keeps the aspect ratio of the input image; 720p / 1080p set the resolution tier. Default:"1080p"。 Allowed values:720p / 1080p。 Example:1080p。
durationnumberNoThe duration of the generated video, in seconds. The value must be an integer in the range [3, 15]. Default: 5 Default:5。 minimum: 3. maximum: 15. Example:5。

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-1-1/image-to-video",
  "image_urls": [
    "https://example.com/reference.png"
  ],
  "prompt": "A paper boat drifting down a rainy street.",
  "resolution": "1080p",
  "duration": 5
}'
json
{
  "model": "happyhorse-1-1/image-to-video",
  "image_urls": [
    "https://example.com/reference.png"
  ],
  "prompt": "A paper boat drifting down a rainy street.",
  "resolution": "1080p",
  "duration": 5
}

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.