estimate_cost
Estimate API costs for text prompts and optional responses, supporting OpenAI and Anthropic models.
Instructions
Estimate the API cost of sending this text as input, plus optional expected output.
Args: text: The input text/prompt model: Model name, e.g. "claude-sonnet-5", "gpt-5" expected_output_tokens: Rough guess at response length (default 0 = input only)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| model | No | claude-sonnet-5 | |
| expected_output_tokens | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |