estimate_cost
Estimates the cost of an OpenRouter image or video generation request from current model metadata, returning unknown when a reliable calculation is not possible.
Instructions
Estima o custo com metadados atuais do OpenRouter. Devolve unknown quando os catálogos não permitem um cálculo fiável; não usa uma tabela fixa.
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": {
"type": "<type>",
"model": "<model>"
},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | ||
| count | No | ||
| model | Yes | ||
| duration | No | ||
| operation | No | generate | |
| resolution | No | ||
| aspect_ratio | No | ||
| generate_audio | No | ||
| frame_image_count | No | ||
| reference_image_count | No |