Estimate credit cost
estimate_credit_costPrice a video or image before making it. Returns the exact credit cost and a quote_id that generate_video and generate_image require. No account needed. Pass the duration and resolution you intend to use; some video models bill per second.
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_id": "<model_id>"
},
"name": "estimate_credit_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration | No | Video length in seconds you intend to generate. Affects the price of per-second models. | |
| model_id | Yes | Model ID, e.g. "kling_3_0" or "veo_3_fast". | |
| quantity | No | How many generations to price. Defaults to 1. Only a quote for exactly 1 can be spent; larger quantities are for planning. | |
| resolution | No | Video resolution you intend to generate, e.g. "720p" or "1080p". Affects the price of per-second models. | |
| reference_video_seconds | No | Length in seconds of the reference video you will pass as reference_video_url (seedance_2_5 up to 30 s, or seedance_2_0_fast up to 15 s at 720p). Reference seconds are billed as input, so they change the price; the server measures the file and refuses a quote whose length does not match. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| type | Yes | ||
| basis | Yes | ||
| model_id | Yes | Normalized to underscores. | |
| quantity | Yes | ||
| quote_id | Yes | Signed quote. Pass it to generate_video or generate_image; it fixes the price and makes a retry safe. | |
| next_step | Yes | ||
| resolution | No | The resolution actually priced, for per-second models. | |
| credits_each | Yes | ||
| credits_total | Yes | ||
| duration_seconds | No | The duration actually priced, for per-second models. | |
| quote_expires_at | Yes | ISO time after which the quote is refused. | |
| reference_video_seconds | No | Reference-video seconds priced as input, when a reference was quoted. |