Skip to main content
Glama

AI API prices

A free, daily-updated dataset of AI API list prices across AI providers. LLMs, image and video generation, speech-to-text, text-to-speech, web search and embeddings, in one JSON and one CSV file.

Updated daily License: MIT Explore on AISelect.online ai-api-prices MCP server on Glama

Explore the data · JSON · CSV · Price changes · Methodology

Why this exists

The same open-weight model often costs several times more at one provider than at another, and nobody publishes those prices side by side. This repository does, every day, as plain files you can load into a spreadsheet, a notebook or your own app.

3,077 prices for 2,019 models from 59 providers, last updated 2026-11-14.

Category

Prices

Models

Providers

LLM / text

1,920

1,026

39

Image generation

644

562

11

Video generation

354

299

10

Speech-to-text

10

9

7

Text-to-speech

44

42

9

Web search

20

7

14

Embeddings

85

74

16

Related MCP server: indextkn MCP server

Same model, very different price

The ten most widely sold models today, from the cheapest to the most expensive provider:

Model

Providers

Cheapest

Typical

Most expensive

Gap

gpt-oss-120b

20

W&B Inference (CoreWeave) $0.065

$0.26

Cloudflare Workers AI $0.45

6.9×

GLM-5.2

15

W&B Inference (CoreWeave) $1.07

$2.15

Scaleway $3.01

2.8×

GLM-5.3

15

GMI Cloud $1.07

$2.15

Amazon Bedrock $2.58

2.4×

Llama-3.3-70B-Instruct

15

Nebius Token Factory $0.20

$0.72

Scaleway $0.99

5.0×

DeepSeek V4.1 Flash 1017

13

DeepInfra $0.21

$0.52

Databricks $0.53

2.5×

GLM-5.3-Flash

13

GMI Cloud $0.12

$0.24

Databricks $0.24

2.0×

gpt-oss-20b

12

W&B Inference (CoreWeave) $0.055

$0.13

Cloudflare Workers AI $0.23

4.1×

Kimi K3

12

SiliconFlow $5.40

$6.00

Together AI $6.00

1.1×

DeepSeek-V4.1-Flash

11

DeepInfra $0.21

$0.52

Databricks $0.53

2.5×

DeepSeek V4 Flash 0731

11

DeepInfra $0.090

$0.43

Novita AI $0.66

7.3×

Blended list price per 1M tokens (3 input : 1 output), standard tier. The ten models sold by the most providers; typical is the median provider.

What it looks like on AISelect.online

The website turns this dataset into calculators, rankings and head-to-head comparisons.

Use it

curl + jq: every provider of one model, cheapest first

curl -s https://raw.githubusercontent.com/Liutasil501/ai-api-prices/main/ai-api-prices.json \
  | jq '[.prices[] | select(.model_slug=="gpt-oss-120b")] | sort_by(.input_usd_per_1m_tokens) | .[] | {provider, input_usd_per_1m_tokens, output_usd_per_1m_tokens}'

Python / pandas

import pandas as pd

prices = pd.read_csv("https://raw.githubusercontent.com/Liutasil501/ai-api-prices/main/ai-api-prices.csv")
llm = prices[prices.category == "text"]
print(llm.groupby("model")["provider"].nunique().sort_values(ascending=False).head(10))

JavaScript

const { prices } = await fetch("https://raw.githubusercontent.com/Liutasil501/ai-api-prices/main/ai-api-prices.json").then((r) => r.json());
const cheapest = prices.filter((p) => p.model_slug === "claude-sonnet-5-5").sort((a, b) => a.input_usd_per_1m_tokens - b.input_usd_per_1m_tokens)[0];

Price history: the commit history is the price history. git log -p ai-api-prices.csv shows every change since tracking started.

Ask your AI assistant (MCP server)

This repository is also an MCP server, so Claude, Cursor or any MCP client can answer "what does gpt-oss-120b cost at each provider?" from today's data. It reads the daily file from aiselect.online (this repository's copy as fallback); no API key, no sign-up. Needs Node.js 18 or newer.

Tool

Answers

find_models

Which models match "claude sonnet", with each one's cheapest provider

model_prices

Every provider of one model, cheapest first, with input, output and cached prices and the pricing page

estimate_monthly_cost

Your monthly bill at every provider, for tokens (LLMs) or images, video seconds, audio hours, characters or searches

compare_models

Two models side by side on their cheapest price

cheapest_models

The cheapest models in a category (LLM, image, video, speech, TTS, search, embeddings)

Claude Code

claude mcp add ai-api-prices -- npx -y github:Liutasil501/ai-api-prices

Claude Desktop, Cursor and other clients (claude_desktop_config.json, .cursor/mcp.json):

{
  "mcpServers": {
    "ai-api-prices": { "command": "npx", "args": ["-y", "github:Liutasil501/ai-api-prices"] }
  }
}

Then ask: "Which provider sells Llama 3.3 70B cheapest, and what would 50M input and 10M output tokens a month cost there?"

Columns

Column

Meaning

category

text, image, video, transcription, tts, search, embedding

model, model_slug

Model name and a stable slug

provider, provider_id, provider_type

Who sells it: first_party, cloud or inference_host

input_usd_per_1m_tokens, output_usd_per_1m_tokens, cached_input_usd_per_1m_tokens

Token prices

usd_per_image, usd_per_video_second, usd_per_audio_hour

Media prices

usd_per_1k_searches, usd_per_1m_characters

Web search (one query, up to 10 results) and text-to-speech

context_tokens, variant

Context window and billing variant, where known

source_url, source_dataset

The provider's pricing page and the open dataset the value came from

first_seen, last_changed, last_confirmed

Dates (UTC)

How prices get in

Prices come from open, MIT-licensed datasets (LiteLLM, models.dev, Portkey Models) and from pricing pages checked by hand. Before a value is published it has to pass guards:

  • it must appear on two consecutive daily runs,

  • a jump above 50% is published only after it holds for seven days, and zero prices and 10x jumps are skipped as dataset errors,

  • every provider is classified by hand (resellers and gateways are not listed as providers),

  • prices billed in euros are converted to US dollars at the European Central Bank's daily rate.

These are standard list prices, not quotes. Batch, committed-use and negotiated discounts are not included. Check the provider's page before you buy. The full method is on the methodology page.

License and credit

MIT. If you publish something built on this data, please credit AISelect.online and link https://aiselect.online/open-data. The source datasets and their licenses are listed in THIRD_PARTY_NOTICES.md.

Found a wrong price? Open an issue with a link to the provider's pricing page.

Available Tools

5 tools
cheapest_modelsCheapest models in a categoryA
Read-only

List the cheapest AI models in a category in USD ranked by lowest provider price, returning up to limit models (default 10). Only priced models appear; text LLMs require at least two priced providers so one-off listings do not crowd the ranking. Use find_models to search by name or model_prices to inspect every provider for one model.

Inputs: category (required), limit.

compare_modelsCompare two models on priceA
Read-only

Compare two AI models in USD by each model's cheapest priced provider (3 input : 1 output blended per 1M tokens for text LLMs, unit rate otherwise) and provider counts. Optional category scopes both model lookups; cross-category pairs display both prices without a price ratio. Use model_prices for every provider of one model or cheapest_models for category lows.

Inputs: model_a (required), model_b (required), category.

estimate_monthly_costEstimate a monthly billA
Read-only

Estimate a monthly workload bill in USD across every priced provider for one model, ordered cheapest first (standard list prices only; excludes caching, batch, and volume discounts; unpriced providers are omitted). For text LLMs pass input_million_tokens and/or output_million_tokens; for all other categories pass units. Use model_prices for raw per-unit rates or compare_models for a two-model headline comparison.

Inputs: model (required), units, category, input_million_tokens, +1 more.

find_modelsFind AI modelsA
Read-only

Search AI API models by name across text (LLMs), image, video, transcription, tts, search, and embedding categories, returning up to 10 matches with each model's cheapest USD price and provider. Exact slug or prefix matches rank first, then widely sold models. Use model_prices to list every provider for a matched model, or cheapest_models to browse lowest prices in a category.

Inputs: query (required), category.

model_pricesPrices of one model at every providerA
Read-only

List standard USD list prices for one AI model at every priced provider, ordered cheapest first (including size or quality variants for media). Returns input, output, and cached token prices for text LLMs (unit rate otherwise) plus each provider's pricing page URL; unpriced providers are omitted. Use find_models if unsure of the name, compare_models for two models, or estimate_monthly_cost for a monthly bill.

Inputs: model (required), category.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.4/5.0

    Scored across 5 tools

    Disambiguation4/5

    Each tool has a distinct output shape: name search, per-model provider price list, monthly bill estimate, two-model comparison, and category-wide cheapest ranking. The main potential confusion is between model_prices and cheapest_models since both list prices, but the descriptions clearly delineate per-model vs. per-category and explicitly cross-reference alternatives.

    Naming Consistency4/5

    find_models, estimate_monthly_cost, and compare_models follow a verb_noun pattern, while model_prices and cheapest_models are noun phrases. The deviation is minor and all names are readable and domain-appropriate, so an agent can still infer behavior from the name alone.

    Tool Count4/5

    Five tools is a tight, well-scoped set for a price-discovery server, with search, detail, comparison, ranking, and estimation each earning its place. It is slightly thin (no provider or category listing tool), but not problematically so.

    Completeness4/5

    The surface covers the core price-research lifecycle: discover a model, inspect all provider prices, compare two models, find category lows, and project a monthly bill. Minor gaps exist, such as no tool to enumerate provider names or categories directly, but agents can work around this via search results.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      B
      maintenance
      Live LLM API pricing: current token prices, model comparisons, cheapest-model lookups, and The LLM Price Index for 150+ models across 20+ providers, re-verified daily. No API key required.
      4
      1
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables agents to query live AI model pricing, compare providers, and calculate token workload costs from current published prices.
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Which AI model to use and what it costs: LiteLLM's price catalogue with every price change since 2023 and Arena ratings by task. Tools to find and compare models, estimate a job's cost and time, show price history and pick local or cloud; no API keys needed.
      11
      MIT