Create a video
create_videoStart generating a video from a text description with GenMagic (or animate an image: pass 'image' as the opening frame), with any text-to-video model, clip length, resolution and sound the model supports (list_models with category "video" shows them and the per-second price). Video is asynchronous, so this returns a job id immediately (nothing is charged yet). Poll it with the get_video tool every few seconds until the status is "completed" to get the hosted video URL. A failed render is never charged. On-brand automatically when the account has brand personalization on.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No | Optional image (an https URL or a data:image URL) the clip opens on: image-to-video. The prompt then describes the motion. list_models shows each model's frame_images, and in its video prices image_input_usd or image_to_video_usd_per_second where a model bills image-to-video apart. | |
| model | No | Optional GenMagic model id for the video (call list_models with category "video" for the ids and prices). Omit it to let GenMagic choose its default. | |
| prompt | Yes | A description of the video to create. | |
| duration | No | Clip length in seconds, one of the lengths the model supports (list_models shows durations_seconds). Omit for the model's default. | |
| last_frame | No | Optional image (an https URL or a data:image URL) the clip ends on, for models whose frame_images include last_frame. | |
| references | No | Optional reference images (https URLs or data:image URLs) of characters, objects or a look the clip keeps consistent, none of them a frame of it: reference-to-video. Name what each shows in the prompt. Not combined with image or last_frame. list_models marks the models made for it with references: true. | |
| resolution | No | Output resolution the model supports, e.g. 720p or 1080p (list_models shows resolutions). Omit for the model's default. | |
| aspect_ratio | No | Aspect ratio: 16:9 (landscape), 9:16 (portrait), or 1:1 (square). Defaults to the opening image's shape when 'image' is portrait or landscape, otherwise 16:9. | |
| generate_audio | No | Generate sound with the clip on models that support it (list_models shows audio_supported; a model with audio_always makes sound on every clip). Omit for the model's default. |