Submit an AI Chili Video or Avatar Generation
create_video_generationSubmit a video or talking-avatar generation job: validates the request, charges credits, enqueues it via the API, and supports idempotency keys for safe retries.
Instructions
Validate, charge credits, and enqueue a video or talking-avatar generation job via POST /v1/generations. Supports idempotency_key for safe retries.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"mode": "<mode>",
"model_id": "<model_id>"
},
"name": "create_video_generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | Yes | Generation mode (e.g. 't2v' or 'i2v'). | |
| ratio | No | Aspect ratio (e.g. '16:9', '9:16', '1:1', '3:4', '4:3', '21:9'). | |
| params | No | Optional raw GenerationParamsIn object (merged with top-level prompt/duration_s/resolution/ratio). | |
| prompt | No | Scene, motion, camera, and audio prompt. | |
| api_key | No | Optional AI Chili API key (chili_sk_...). Defaults to AICHILI_API_KEY env var. | |
| model_id | Yes | Model ID (e.g. 'h3-vdn', 'wan3.0-video', 'seedance-2.5', 'minimax-h3-gmi', 'avatar-talk'). | |
| workflow | No | Optional model workflow ID (e.g. 'general', 'reference', 'photo', 'talk'). | |
| ref_roles | No | Optional roles matching ref_asset_ids (reference_image, reference_video, first_frame, last_frame). | |
| duration_s | No | Requested duration in seconds. | |
| resolution | No | Output resolution matching the selected model's registry entry. | |
| upscale_4k | No | Request 4K upscale on output. | |
| ref_asset_ids | No | Optional uploaded reference image/video asset UUIDs for i2v. | |
| idempotency_key | No | Optional idempotency key so retries return the original job without double charging. | |
| optimize_prompt | No | Enable prompt optimization. |