Get Model Pricing
tokencost_get_model_pricingRetrieve token pricing details for specific AI models including input/output costs per million tokens, context window, and maximum output limits.
Instructions
Get pricing details for a specific LLM model.
Args:
model (string): Model ID or name to look up (e.g., "gpt-5", "claude-sonnet-4.6", "gemini-3-pro")
Returns: Model pricing details including input/output costs per 1M tokens, context window, and max output. Returns an error message if the model is not found, with suggestions for similar models.
Examples:
"gpt-5" → GPT-5 pricing from OpenAI
"claude-opus-4.6" → Claude Opus 4.6 pricing from Anthropic
"gemini" → First matching Gemini model
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model ID or name (e.g., 'gpt-5', 'claude-sonnet-4.6') |