estimate_credits
Calculate how many credits a text-to-image job will cost before running it, based on prompt, dimensions, steps, sampler, model, and LoRA settings.
Instructions
Ask TAMS how many credits a text-to-image job would cost, without running it.
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": {
"prompt": "<prompt>"
},
"name": "estimate_credits"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| count | No | ||
| loras | No | ||
| steps | No | ||
| width | No | ||
| height | No | ||
| prompt | Yes | ||
| sampler | No | euler | |
| model_id | No | ||
| cfg_scale | No |