Generate a video
generate_videoRender a video from a text prompt using ViewMax Studio. Returns immediately with a job id; the clip is not ready yet.
Rendering takes roughly two to four minutes. Call get_video with the returned id to collect the result, waiting about 15 seconds between checks. Do not poll faster than that, and tell the user it is rendering rather than going silent while you wait.
Credits are charged to the account the API key belongs to, and refunded automatically if the render fails. Available models:
seedance-2-mini: Native audio and multi-shot cuts in one clip. Longest takes we offer. (4–15s, 480p/720p/1080p, with audio)
h3-max: Native 768p with no upscale pass. Fastest turnaround, up to 15s takes. (5–15s, 480p/768p, with audio)
h3-max-turbo: Half the price of H3 Max at the same sizes, and the quickest render we carry. (5–15s, 480p/768p, with audio)
viewmax-agent-2.0: Writes, cuts and scores a whole video from one brief, at any length you ask for. (15s and up, 720p, with audio)
Leave model unset to use the default. Call list_video_models if you need exact per-model limits or prices.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Which model renders it. Omit for the default model. | |
| prompt | Yes | What the clip should show. Describe subject, action, camera move and lighting; vague prompts render poorly. | |
| duration | No | Clip length in seconds, as a string, e.g. "5". Which lengths are accepted depends on the model. | |
| resolution | No | Output resolution. Larger costs proportionally more. | |
| aspectRatio | No | Frame shape. Use "9:16" for phone-first platforms, "16:9" for landscape, "21:9" for cinematic. | |
| generateAudio | No | Whether a model that renders its own soundtrack should. Ignored by silent models. | |
| negativePrompt | No | What to keep out of the clip. Optional. |