LLM Pricing API
Get current pricing for 33 AI models from 10 providers. Use it in your tools, dashboards, CI/CD pipelines, and cost calculators.
33 Models
GPT-5, Claude 4, Gemini 3, DeepSeek V4, Llama 4, and more
10 Providers
OpenAI, Anthropic, Google, Mistral, Cohere, Meta, DeepSeek, xAI, Moonshot, AI21
Always Free
No API key, no rate limits, no signup required
REST JSON
Simple GET requests, standard JSON responses, CORS enabled
Endpoints
Get all 33 models with pricing data, or filter by provider/tier.
Query Parameters
| Parameter | Type | Description | Example |
|---|---|---|---|
provider | string | Filter by provider slug | ?provider=openai |
tier | string | Filter by pricing tier (Budget, Mid, Premium) | ?tier=budget |
model | string | Get a single model by ID | ?model=openai-gpt5 |
Quick Start
Get all models
// JavaScript
const res = await fetch('https://getapipulse.com/api/pricing');
const { models, meta } = await res.json();
console.log(meta.count); // 32
console.log(models[0].name); // "GPT-5.5"
Filter by provider
# cURL
curl "https://getapipulse.com/api/pricing?provider=anthropic"
Get a single model
# Python
import requests
r = requests.get("https://getapipulse.com/api/pricing?model=openai-gpt4o-mini")
model = r.json()["model"]
print(f"${model['input']}/1M input, ${model['output']}/1M output")
Filter by tier
// Get all budget models
const res = await fetch('https://getapipulse.com/api/pricing?tier=budget');
const { models } = await res.json();
// Returns: GPT-4o mini, GPT-oss, Gemini Flash, DeepSeek V4 Flash, etc.
Response Format
Single model
{
"model": {
"id": "openai-gpt4o-mini",
"name": "GPT-4o mini",
"provider": "OpenAI",
"providerSlug": "openai",
"tier": "Budget",
"input": 0.15,
"output": 0.60,
"context": "128K",
"verified": "Apr 2026"
},
"source": "https://getapipulse.com",
"docs": "https://getapipulse.com/pricing-index.html"
}
Collection response
{
"models": [ ... ],
"meta": {
"count": 32,
"providers": ["OpenAI", "Anthropic", ...],
"tiers": ["Budget", "Mid", "Premium"],
"lastUpdated": "2026-04-27",
"source": "https://getapipulse.com",
"docs": "https://getapipulse.com/pricing-index.html"
}
}
Model fields
| Field | Type | Description |
|---|---|---|
id | string | Unique model identifier (e.g. openai-gpt5) |
name | string | Display name (e.g. "GPT-5") |
provider | string | Provider name (e.g. "OpenAI") |
providerSlug | string | URL-friendly provider ID (e.g. "openai") |
tier | string | Pricing tier: Budget, Mid, or Premium |
input | number | Input token cost per 1M tokens (USD) |
output | number | Output token cost per 1M tokens (USD) |
context | string | Context window size (e.g. "128K", "1M") |
verified | string | When pricing was last verified |
Available Providers
| Slug | Provider | Models |
|---|---|---|
openai | OpenAI | 9 models (GPT-5.5, GPT-5, GPT-4o, GPT-oss, etc.) |
anthropic | Anthropic | 5 models (Claude Opus 4.7, Sonnet 4.6, Haiku 4.5, etc.) |
google | 3 models (Gemini 3.1 Pro, 2.5 Pro, 2.0 Flash) | |
deepseek | DeepSeek | 3 models (V4 Pro, V4 Flash, V3) |
mistral | Mistral | 2 models (Large, Small) |
cohere | Cohere | 2 models (Command R+, Command R) |
together | Meta (Together.ai) | 4 models (Llama 4 Scout/Maverick, Llama 3.1 70B/8B) |
moonshot | Moonshot | 1 model (Kimi K2.6) |
xai | xAI | 2 models (Grok 3, Grok 3 Mini) |
ai21 | AI21 | 1 model (Jamba 1.5 Large) |
Try It Live
Test the API directly from your browser.
Use Cases
Cost Dashboards
Build internal dashboards that track AI spending across your organization.
CI/CD Cost Checks
Alert your team when a model's price changes before deploying to production.
Budget Calculators
Power your own cost estimation tools with real-time pricing data.
Model Selection
Programmatically pick the cheapest model that meets your quality requirements.
Attribution
This API is free to use. We appreciate a link back to getapipulse.com when possible.
Pricing data provided by APIpulse
Related Tools
Cost Calculator
Calculate monthly costs for any model with our interactive calculator.
Model Compare
Compare pricing across models side by side.
Token Estimator
Estimate costs across all 33 models instantly.
Embed Widget
Add our calculator to your own site.