Estimate Generation Credits
estimate_creditsCalculate the exact credit cost for a basic Vhoo.ai image or video generation before running it. No API key required.
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>",
"model": "<model>",
"resolution": "<resolution>"
},
"name": "estimate_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | Whether to estimate an image or video generation. | |
| size | No | Aspect ratio (e.g. "auto", "1:1", "16:9", "9:16"). | |
| model | Yes | Model identifier from list_models (e.g. "seedream-5-5", "gpt-image-2.6-sunburst-ext", "seedance-2.5", "kling-v4"). | |
| quality | No | Image quality level for GPT Image 2.6 SVG output. | |
| duration | No | Video duration in seconds (required when kind is "video"). | |
| resolution | Yes | Output resolution supported by the model (e.g. "1k", "2k" for images; "480p", "720p", "1080p" for videos). | |
| outputFormat | No | Image output format. Defaults to "png". | |
| referenceImageCount | No | Number of reference images (defaults to 0). |