Portkey Models
Portkey Models
Open-source pricing and configuration database for 2,300+ LLMs across 35+ providers
GET
Portkey Models
Portkey Models is a free, open-source pricing database for LLMs. No API key required — just query any model’s pricing directly.
Explore Models
Browse 2,300+ models
Model Rankings
Top models by usage
GitHub
View source & contribute
Quick Start
Get pricing for any model with a single API call:Understanding Pricing Units
Calculate cost in dollars:
API Reference
Get Model Pricing
Returns pricing configuration for a specific model.Path Parameters
string
required
Provider identifier. Use lowercase with hyphens.Examples:
openai, anthropic, google, azure-openai, bedrock, together-ai, groq, deepseek, x-ai, mistral-ai, cohere, fireworks-ai, perplexity-ai, anyscale, deepinfra, cerebrasstring
required
Model identifier. Use the exact model name as specified by the provider.Examples:
gpt-4o, gpt-4-turbo, claude-3-5-sonnet-20241022, claude-3-opus-20240229, gemini-2.0-flash-001, gemini-1.5-proResponse Schema
object
Token-based pricing. All prices in USD cents per token.
object
Cost calculation formulas for complex pricing scenarios.
string
Currency code. Always
USD.object
Fine-tuning pricing (when available).
Example Responses
Get Model Configuration
Returns general configuration and capabilities for a specific model.Path Parameters
string
required
Provider identifier (e.g.,
openai, anthropic, google)string
required
Model identifier (e.g.,
gpt-4o, claude-3-opus)Response Schema
array
Model parameters with their constraints.
object
Model type classification.
object
Message configuration.
boolean
If
true, model is not available in Portkey playground.boolean
If
true, this is the default model for the provider.Example Responses
Get All Models for a Provider
Returns pricing configuration for all models from a specific provider in a single response.Use this endpoint to discover all available models and their pricing for a provider, instead of querying each model individually.
Path Parameters
string
required
Provider identifier. Use lowercase with hyphens.Examples:
openai, anthropic, google, bedrock, azure-openai, together-ai, groq, deepseek, x-ai, mistral-aiResponse Schema
Returns a JSON object where:- Keys are model identifiers
- Values contain
pricing_configobjects with the same structure as the individual model pricing endpoint - A
defaultkey provides the base pricing template
object
Pricing configuration for a specific model.
Example Response
Sample Response (Bedrock)
Sample Response (Bedrock)
Additional Units Reference
Provider-specific pricing for features beyond standard token costs:Perplexity Context-Based Pricing
Perplexity Context-Based Pricing
Perplexity has context-dependent web search pricing:
Supported Providers
40+ providers supported
40+ providers supported
AI21, Anthropic, Anyscale, Azure AI, Azure OpenAI, AWS Bedrock, Cerebras, Cohere, Dashscope, Deepbricks, DeepInfra, DeepSeek, Fireworks AI, GitHub, Google, Groq, Inference.net, Jina, Lambda, Lemonfox AI, Mistral AI, MonsterAPI, Nebius, Nomic, Novita AI, OpenAI, OpenRouter, Oracle, PaLM, Perplexity AI, Predibase, Reka AI, Sagemaker, Segmind, Stability AI, Together AI, Vertex AI, Workers AI, X.AI, Zhipu
Use with Portkey
Portkey Models powers automatic cost tracking for all requests through the Portkey Gateway. When you make requests via Portkey, costs are calculated automatically using this pricing data.Cost Analytics
View real-time spend across all your LLM usage
Budget Limits
Set spending caps that automatically enforce limits
Custom Pricing
Set custom input/output costs to match your contracts
Last modified on February 14, 2026

