Produce a video from reference media with MiniMax H3
Produce a video from a text prompt and reference media with MiniMax H3.
The prompt addresses the references by position: the first reference image is Image 1, the second Image 2, the first reference video is Video 1, and the first reference audio is Audio 1. Supply reference images either as reference_image_asset_identifiers (images already stored with Ideogram) or as raw reference_images bytes (multipart requests only); supplying both is rejected, and uploaded bytes are used for this request only and are not stored as an asset. Supply reference videos as reference_video_asset_identifiers, which must reference videos generated or uploaded with Ideogram. At most 9 reference images and 3 reference videos are accepted, and reference videos are capped again on clip length. Optional reference_audios accepts MP3/WAV uploads alongside an image or video. Audio and video references must total at most 15 seconds; at most 12 references are accepted across all media.
References are optional. With none, the video is produced from the prompt alone.
Video generation always runs asynchronously: the response returns as soon as the request is accepted and carries only a generation_id. Poll for completion and results with GET /v1/generations/{generation_id} using that id, or supply a webhook_url to have the finished result POSTed to your server instead.
Video links are available for a limited period of time; download the video if you want to keep it.
Query parameters
When true, the request is validated and priced but not run: nothing is generated, stored, or billed, and no safety review is performed. The response is a PriceQuote object instead of the usual response for this endpoint. Send exactly the request you would send to generate, so the quote reflects the same options.
Request body
Example request
{
"prompt": "Image 1 walks through the snowy forest at dawn.",
"reference_image_asset_identifiers": [
{
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
}
],
"reference_video_asset_identifiers": [
{
"asset_type": "RESPONSE",
"asset_id": "7uS_VESkRI6O3-sVgHQp_A"
}
],
"duration": 5,
"webhook_url": "https://api.example.com/webhooks/ideogram"
}Response
An acknowledgement to poll with GET /v1/generations/{generation_id}.
Example response
{
"generation_id": "generation_id",
"created": "2000-01-23T04:56:07+00:00"
}