estimate_cost
Cost in USD for a workload, computed here so no unit conversion is left to the model.
models: keys or loose names (up to 6). characters: text to synthesize (TTS). audio_minutes: audio to
transcribe (STT/STS), or for TTS the minutes of speech to produce (converted with tts_chars_per_minute,
default 900 chars ≈ 150 words/min). Passing an STT and a TTS model with audio_minutes gives a voice-agent
pipeline estimate: STT transcribes all audio_minutes, TTS speaks tts_share of them (e.g. 0.5 if the agent
talks half the time); "total_usd" sums the models (LLM and telephony not included). Uses each model's headline
pay-as-you-go price unless a separate streaming rate applies: mode="streaming" (the default "auto" picks it
whenever an STT/STS model is costed together with a TTS model, i.e. a live voice agent) uses the
provider's published pay-as-you-go streaming rate where there is one; mode="batch" uses the headline
(often pre-recorded) rate. Each line's rate_used says which. Volume discounts, free tiers and plan
prices are not applied.
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": {
"models": "<models>"
},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | auto | |
| models | Yes | ||
| tts_share | No | ||
| characters | No | ||
| audio_minutes | No | ||
| tts_chars_per_minute | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||