Estimate a generation
estimate_costCredits one image, video or character would cost, before you start it. For an image, say whether it uses your character or references (the edit version) or nothing (the create version). For a video give the same inputs you will send; this is the most it can cost, and the final charge can be lower. Nothing is charged by estimating.
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": {
"kind": "<kind>"
},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | ||
| model | No | Image or video model; for a character, the character maker model (optional) | |
| quality | No | Images: low, medium or high | |
| endImage | No | ||
| withAudio | No | ||
| resolution | No | ||
| startImage | No | Videos: a start image is given (assumed for models that need one) | |
| aspectRatio | No | ||
| extendVideo | No | ||
| talkingScript | No | Videos: the line for a talking clip | |
| referenceSound | No | ||
| durationSeconds | No | Videos: one of the model durations | |
| referenceImages | No | ||
| referenceVideos | No | ||
| withCharacterOrReferences | No | Images: true when the character or reference images are used |