Estimate exact credit cost before running
estimate_costCalculate the exact upfront credit cost and approximate USD price for an Open Treasure video, image, or text model at a specific resolution and duration.
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>"
},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model id or alias: wan-3.0, seedance-2.0, seedance-2.5, nano-banana-2, nano-banana-pro, gpt-image-2.5-flare-medium, gpt-image-2.5-flare-high, deepseek-v4.1-flash, deepseek-v4-pro. | |
| duration | No | Optional clip length in seconds (4-15 for Wan 3.0 / Seedance 2.0; 4-30 for Seedance 2.5). | |
| resolution | No | Optional resolution (e.g. 480p, 720p, 1080p for video; 1k, 2k, 4k for image). |