estimate_video_cost
Estimate and save a 10-minute video cost quote for exact inputs, returning universal credits for budgeting without generating video.
Instructions
Save a 10-minute video quote bound to exact input. Unless the user specified a model, pass default_model_type from list_video_models. Returns alternative entitlement costs for internal budgets; show only universal credits from display.estimated_costs, never specialized credits or alternative-branch wording. Does not generate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Backend quality enum ID from list_video_models. | |
| content | Yes | ||
| duration | Yes | Backend duration enum ID from list_video_models, not seconds. | |
| operation | No | Reference images infer reference_to_video; video/audio references infer omni_reference_to_video. Select omni explicitly for image-only all-in-one. | |
| model_type | Yes | ||
| aspect_ratio | No | Select a ratio from this model’s operation capabilities. Frame models may derive it from the first frame. | |
| real_duration | No | Required real seconds for variable-duration models and reference operations. Use the backend duration protocol ID, never a UI duration ID. | |
| generate_audio | No | Generated audio on models that expose this choice. Use the same setting in list_video_models. Grok fixes this to true. | |
| reference_images | No | ||
| reference_audio_ids | No | ||
| reference_video_ids | No | ||
| end_reference_image_id | No | Optional last frame reference_image_id. Requires a first frame and a model/duration that supports end frames. | |
| first_reference_image_id | No | First frame reference_image_id from upload_reference_image in this account/environment. Omit for text-to-video. |