Create generation
create_generationStart a generation. Charges the user's balance and returns a taskId at once; the result arrives later — poll get_task. A failed generation is refunded.
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": {
"model": "<model>",
"input": "<input>"
},
"name": "create_generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Model parameters, exactly as get_model lists them (camelCase). Media inputs are public URLs. | |
| model | Yes | Model id from list_models, for example `veo3.1-fast`. | |
| webhook | No | HTTPS URL to call when the generation completes. | |
| maxCostUsd | No | Refuse the request if it would cost more than this. | |
| idempotencyKey | No | Repeat a call with the same key and the same request to get the same task instead of a second charge. |