Prepare a MaxVideoAI generation
prepare_generationUse this when the user has selected an image model or a supported video workflow (t2v, i2v, i2v_standard, ref2v, fl2v, v2v, r2v, extend, a2v, retake, or reframe) and needs validation plus an exact short-lived quote. Every optional field is nullable: send null when it was not explicitly required by the selected mode’s live details or the user. For video duration, send settings.durationSec in seconds, never settings.duration. It saves the quote but does not spend or generate. Do not use it as confirmation or skip the selected mode’s live model details.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | ||
| prompt | Yes | ||
| surface | Yes | ||
| engineId | Yes | ||
| settings | No | ||
| references | No | ||
| outputCount | No | Number of outputs. Video must use 1. Image limits are model-specific; read outputCount from get_model_details. | |
| schemaVersion | No |