text-to-video

Happy Horse 1.1 - Create video from text

Generate a high-quality AI video from a text prompt using Happy Horse 1.1, Alibaba's text-to-video model. Supports 9 configurable aspect ratios (16:9, 9:16, 1:1, 4:3, 3:4, 21:9, 9:21, 5:4, 4:5), resolutions (720P, 1080P), and duration from 3 to 15 seconds.

Key features:

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

Request

  • Base URL: https://api.magnific.com
  • URL: https://api.magnific.com/v1/ai/text-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.

promptstring required

Text prompt describing the desired video content. Describe the scene, characters, motion, camera movements, lighting, and style in detail for best results.

Tips:

  • Be specific about scenes and visual details
  • Describe camera movements (zoom, pan, tilt)
  • Mention lighting and atmosphere
aspect_ratio'16:9' | '9:16' | '1:1' | '4:3' | '3:4' | '21:9' | '9:21' | '5:4' | '4:5'

Output video aspect ratio:

  • 16:9: Landscape (widescreen)
  • 9:16: Portrait (vertical, mobile-optimized)
  • 1:1: Square
  • 4:3: Standard landscape
  • 3:4: Standard portrait
  • 21:9: Ultra-wide cinematic
  • 9:21: Ultra-tall vertical
  • 5:4: Classic landscape
  • 4:5: Classic portrait
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",
  "prompt": "A serene mountain landscape at golden hour with mist rising through the valley, cinematic slow camera pan",
  "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.