Estimate generation cost
deepy_estimate_generationCheck the token cost and balance impact of a generation without charging. Pass identical parameters later to create the generation, ensuring the quoted estimate matches the final charge.
Instructions
Get the integer token cost and resulting balance for a generation, without charging anything. Always estimate and confirm with the user before creating. The exact same params must be passed to deepy_create_generation (quote == charge).
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": {
"modelName": "<modelName>",
"prompt": "<prompt>"
},
"name": "deepy_estimate_generation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The generation prompt. If you used deepy_improve_prompt, pass the SAME text here and to deepy_create_generation (quote == charge). | |
| modelName | Yes | Model name from deepy_list_models / deepy_get_model. | |
| parameters | No | Model-specific parameters (see the model schema). Defaults to {}. | |
| referenceFiles | No | Reference file ids for image/video-from-image models. Defaults to []. |