Skip to main content
POST
MiniMax H3 Max 768p - Create video

Authorizations

x-magnific-api-key
string
header
required

Your Magnific API key. Required for authentication. Learn how to obtain an API key

Body

application/json
prompt
string
required

Text prompt describing the video to generate.

Required string length: 1 - 50000
Example:

"A cinematic shot of a cat walking through a neon-lit alley at night"

webhook_url
string<uri>

URL to receive a webhook notification when the video generation task completes. The webhook payload includes the task ID and status.

image
string<byte>

Optional image to use as the first frame for image-to-video generation. Its aspect ratio determines the aspect ratio of the output. Accepts a publicly accessible URL or a base64-encoded image.

image_end
string<byte>

Optional image to use as the last frame for image-to-video generation. Requires image: the provider rejects a last frame with no first frame. Accepts a publicly accessible URL or a base64-encoded image.

duration
integer
default:5

Video duration in seconds. Any integer from 5 to 15.

Required range: 5 <= x <= 15
Example:

5

aspect_ratio
enum<string>
default:widescreen_16_9

Output video aspect ratio. Available options:

  • film_horizontal_21_9: Ultra-wide cinematic (21:9)
  • widescreen_16_9: Standard widescreen (16:9)
  • classic_4_3: Classic TV format (4:3)
  • square_1_1: Square format (1:1)
  • traditional_3_4: Portrait classic (3:4)
  • social_story_9_16: Vertical/social media story (9:16)

Note: only applies to text-to-video requests. When image is supplied the output follows the aspect ratio of that image.

Available options:
film_horizontal_21_9,
widescreen_16_9,
classic_4_3,
square_1_1,
traditional_3_4,
social_story_9_16
prompt_expansion_mode
enum<string>
default:balanced

Which prompt expander runs before the generation. disabled sends the prompt verbatim; fast, balanced and quality trade latency for richer prompt rewriting.

Available options:
disabled,
fast,
balanced,
quality
enable_safety_checker
boolean
default:true

Enable content safety filtering to ensure generated videos comply with safety guidelines.

seed
integer
default:-1

Random seed for reproducible video generation. Use the same seed with the same prompt to get consistent results. Use -1 for a random seed.

Required range: -1 <= x <= 4294967295

Response

OK - The task exists and the status is returned

data
object
required
Example: