Free · No Auth Required

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 /api/pricing

Get all 33 models with pricing data, or filter by provider/tier.

Query Parameters

ParameterTypeDescriptionExample
providerstringFilter by provider slug?provider=openai
tierstringFilter by pricing tier (Budget, Mid, Premium)?tier=budget
modelstringGet 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

FieldTypeDescription
idstringUnique model identifier (e.g. openai-gpt5)
namestringDisplay name (e.g. "GPT-5")
providerstringProvider name (e.g. "OpenAI")
providerSlugstringURL-friendly provider ID (e.g. "openai")
tierstringPricing tier: Budget, Mid, or Premium
inputnumberInput token cost per 1M tokens (USD)
outputnumberOutput token cost per 1M tokens (USD)
contextstringContext window size (e.g. "128K", "1M")
verifiedstringWhen pricing was last verified

Available Providers

SlugProviderModels
openaiOpenAI9 models (GPT-5.5, GPT-5, GPT-4o, GPT-oss, etc.)
anthropicAnthropic5 models (Claude Opus 4.7, Sonnet 4.6, Haiku 4.5, etc.)
googleGoogle3 models (Gemini 3.1 Pro, 2.5 Pro, 2.0 Flash)
deepseekDeepSeek3 models (V4 Pro, V4 Flash, V3)
mistralMistral2 models (Large, Small)
cohereCohere2 models (Command R+, Command R)
togetherMeta (Together.ai)4 models (Llama 4 Scout/Maverick, Llama 3.1 70B/8B)
moonshotMoonshot1 model (Kimi K2.6)
xaixAI2 models (Grok 3, Grok 3 Mini)
ai21AI211 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.