Text-to-video
Send a text prompt, and the response contains the generated video clip. The request is synchronous. There is no task to poll. A clip is 1 to 8 seconds long, at 1080p or 720p, with an optional soundtrack.Models
Both models also serve Image-to-video. See Choosing a model.
MiniMax H3 Fast also serves text-to-video on this endpoint, with a soundtrack and its own fields. See MiniMax H3 Fast.
Endpoint
/v1/videos/generations is an alias. It gives the same result and the same billing.
Request
Every request must include your API key and a JSON content type. See Authentication.The model that generates the clip.Options:
nunchux-ltx-2.5-video, nunchux-ltx-2.3-videoA text description of the clip. Describe the shot: the subject, the camera movement, the light, and what changes during the clip.
Output width in pixels. Send it together with
height. The size selects the tier, 1080p or 720p. 1080p costs more per second.Options: 1920 (1080p), 1280 (720p)Output height in pixels. Send it together with
width.Options: 1080 (1080p), 720 (720p)The clip length in seconds. Range: 1 to 8. The model renders at 24 frames per second, so the length of the clip can differ from your value by a fraction of a second. The response gives the length of the clip.
The random seed. When you do not send a seed, the model selects one and returns it in the response. The same seed with the same parameters gives the same result.
Whether Nunchux’s content filter checks this request. Only accounts approved to turn moderation off may send
false. Others get a 403. See Content moderation.The format of the returned clip.Options:
b64_json, urlIn url format, Nunchux keeps the generated clip for 7 days, so that it appears in your request history. Then Nunchux deletes it. In b64_json format, Nunchux also tries to keep a copy for your request history, but it skips the copy when the service is busy. Save the clip from the response if you need to keep it.Unsupported fieldsLTX does not accept
steps, guidance_scale, negative_prompt or num_frames. A request that contains one of them returns a 400.Response
The response is JSON. Thedata array contains one MP4 clip, as base64 data or as a URL.
Always
radical_speed. This field does not show the LTX tier. The width and height of the clip show it.response_format: "url" when you do not need the data in the response.
Example
A clip takes some time to render. Set the timeout of your HTTP client to 120 seconds.Tips
- Write the shot, not only the subject. Include the camera movement, the light, and what changes during the clip.
- When
extra.audioistrue, describe the sound in the prompt. For example: rain on a window, a crowd, or one piano line. - Start at 1080p and 6 seconds. Use 720p for faster and lower-cost previews.
- Keep the
seedwhen you like a result. Then change one parameter at a time.
Errors and limits
A clip is billed per second of output video, at the rate of its tier: 1080p costs more per second than 720p. See the pricing page for current rates. Nunchux charges only for a successful clip. A request that fails is never billed.
Every request counts toward the requests-per-minute cap of your plan. A request also holds one simultaneous-jobs slot until the response returns. See Rate limits. For authentication and credit errors, see Error codes.