compare_models_cost
Compare token counts and estimated API costs for a given text across multiple AI models, using optional expected output length to estimate total charges.
Instructions
Compare token count and estimated cost for the same text across several models.
Args: text: The input text/prompt models: List of model names to compare. Defaults to a mix of current Anthropic and OpenAI models if not specified. expected_output_tokens: Rough guess at response length, applied to all models
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| models | No | ||
| expected_output_tokens | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |