Create a MiniMax H3 clip (up to 15 s)
create_minimax_h3_videoCreate a short AI video from one photo: animate it with generated sound or lip-sync, and use reference files to keep people or products consistent.
Instructions
Start a minimax-h3 generation from one photo. mode='basic': user_prompt (scene description) + requested_duration_s (5-15); the model animates the photo and generates the soundtrack itself. mode='reference': the reference model. With audio_clip_id the clip is lip-synced to it (first 15 s billed) and user_prompt is optional. Without audio_clip_id, pass requested_duration_s and a user_prompt with the spoken line in quotes: the model voices it and generates the soundtrack. Either way up to 8 extra image / 3 video / 2 audio reference_files with reference_captions keep a second person, a product or a background consistent. Output is 768 px on the short side, orientation follows the photo. Cost 3.3 credits per billed second, charged on create. Returns the job id; call wait_for_job(model='minimax-h3') until done (1-3 min).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| name | No | ||
| image_url | No | ||
| image_path | No | ||
| user_prompt | No | Scene / motion description (required in basic mode) | |
| audio_clip_id | No | Reference mode: the clip that drives the video; leave out to have the lines in user_prompt voiced | |
| reference_files | No | Reference mode: local paths of extra reference images/videos/audio | |
| reference_captions | No | One caption per reference file, same order | |
| requested_duration_s | No | Clip length when there is no audio (basic mode, or reference mode without audio_clip_id); default 8 |