estimate_cost
Calculate AI request costs before execution to manage expenses. Estimates USD based on prompt length and model selection.
Instructions
Estimate the cost of an AI request before making it. Returns estimated USD cost based on prompt length and model.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| prompt | Yes | The prompt to estimate cost for | |
| model | No | Model to use for estimation | claude-sonnet-4-20250514 |
| max_tokens | No | Expected max tokens in response |