Skip to content

get_model_details

Look up pricing, context window, and capabilities for an LLM model. Uses fuzzy matching so you don’t need the exact model key — "sonnet 4.5" works just as well as "claude-sonnet-4-5-20250514".

ParameterTypeRequiredDescription
model_namestringYesModel name to look up (e.g. claude-sonnet-4-5, gpt-4o, gemini-2.0-flash)

Request:

{
"model_name": "claude-sonnet-4-5"
}

Response:

Model: claude-sonnet-4-5
Provider: anthropic
Mode: chat
Pricing (per 1M tokens):
Input: $3.00
Output: $15.00
Context Window:
Max Input: 200K
Max Output: 8K
Capabilities: vision, function_calling, parallel_function_calling
  • Fuzzy matching uses Fuse.js with a 0.4 threshold
  • Exact and case-insensitive matches are tried first before falling back to fuzzy search
  • If no match is found, the tool returns an error message suggesting you check the model name