image-to-video

Happy Horse 1.1 - Create video from image

Animate a single image into a high-quality AI video using Happy Horse 1.1, Alibaba's image-to-video model. The image is used as the first frame and an optional text prompt guides motion and style.

Key features:

  • 720P and 1080P resolution support
  • Duration: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, or 15 seconds
  • Optional prompt up to 2500 characters
post/v1/ai/image-to-video/happy-horse-1-1

Request

  • Base URL: https://api.magnific.com
  • URL: https://api.magnific.com/v1/ai/image-to-video/happy-horse-1-1
  • Auth: API key in header x-magnific-api-key

Request body

webhook_urlstring uri

Optional callback URL that will receive asynchronous notifications whenever the task changes status. The payload sent to this URL is the same as the corresponding GET endpoint response, but without the data field.

image_urlstring uri required

URL of the image to use as the first frame for image-to-video generation.

Supported formats: JPEG, JPG, PNG, BMP, WEBP Pixel dimensions: at least 300px (width and height) Aspect ratio: between 1:2.5 and 2.5:1 Maximum file size: 10 MB

promptstring

Text prompt to guide the animation. Optional but recommended for better control over the generated video content.

resolution'720P' | '1080P'

Output video resolution:

  • 720P: 720p HD (1280x720)
  • 1080P: 1080p Full HD (1920x1080)
duration3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15

Duration of the generated video in seconds. One of: 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15.

seedinteger

Random seed for reproducibility. Use the same seed with identical parameters to improve reproducibility (does not guarantee identical results). Leave unset for a random seed.

Example request

{
  "webhook_url": "https://www.example.com/webhook",
  "image_url": "https://example.com/start-frame.jpg",
  "prompt": "The character walks forward slowly with wind blowing through their hair",
  "seed": 12345
}

Response

OK - The task exists and the status is returned

Example response

{
  "data": {
    "generated": [
      "https://openapi-generator.tech",
      "https://openapi-generator.tech"
    ],
    "task_id": "046b6c7f-0b8a-43b9-b35d-6489e6daee91",
    "status": "CREATED"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.