Estimate Model API Cost
rai_cost_estimateEstimate the USD cost of a model API call from token counts by specifying model, provider, input tokens, and output tokens.
Instructions
Estimate the USD cost of a model API call from token counts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model name, e.g. gpt-4o | |
| provider | Yes | Provider: openai | anthropic | google | mistral | |
| input_tokens | Yes | ||
| output_tokens | Yes |