Open CC-BY-4.0 JSON/CSV Dataset: Official List Prices for 160+ LLM, Video & Image APIs (Cache TTLs & Long-Context Tiers) A developer has published an open CC BY 4.0 dataset in JSON and CSV format covering official list prices for 165 chat, coding, reasoning, image, video, and speech models across 15 vendor families, including cache TTLs and long-context step-up tiers that flat per-token scrapers miss. The v2026.12 snapshot is available via a versioned GitHub repo and an unauthenticated catalog API endpoint, with all figures normalized to USD from published vendor list prices. If you have ever built a multi-provider cost estimator, an agent budget guardrail, or a router that selects between Claude, GPT, Gemini, DeepSeek, Qwen, GLM, and multimodal video/image APIs, you have probably hit the same wall: public LLM price scrapers only track flat input and output per 1M tokens—and silently miss the billing rules that actually drive production invoices. In real-world agent and media pipelines, three pricing mechanics dominate total spend: 0.02x to 0.10x and write TTLs: claude-fable-5-2 costs $0.20 0.025x of $8.00 fresh input—identical to claude-opus-5-5 's gpt-6-astra charges $1.00 $10.00 . Ignoring cached input skews multi-turn coding agent estimates by 4x–5x. 272,000 input tokens on gpt-6.2-sol $2 / $10 or gpt-6.2-astra $8 / $40 re-rates the 2x input and 1.5x output $4 / $15 and $16 / $60 . Crossing 200,000 tokens on grok-4.7 doubles both input and output 2x / 2x , and crossing 262,144 tokens on qwen3.7-plus triples both 3x / 3x . kling-v4 , per 1M video tokens dreamina-seedance-2-5-260628 , per image resolution tier gemini-nano-banana-2.1 , kling-image-v4 , midjourney-v8-2 , or per billed character speech-2.8-hd , with separate buckets for native audio generation and reference media. To make cost modeling reproducible without HTML scraping, we published and maintain an open CC BY 4.0 dataset in clean JSON and flat CSV covering 165 chat, coding, reasoning, image, video, and speech models across 15 vendor families : v2026.12 Release: GET https://api.hop-base.com/api/v1/models/pricing All numbers in the dataset are published official vendor list prices normalized to USD always verify against each vendor's live pricing page before committing production budgets . You do not need an API key or SDK to pull the snapshot. Grab either the versioned GitHub JSON/CSV or query the live unauthenticated catalog endpoint directly: Inspect models with long-context step-up multipliers using jq curl -sL https://raw.githubusercontent.com/HopBase-AI/llm-api-pricing/main/data/official-prices.json \ | jq -r '.models | select .official.long context = null and .official.long context.input multiplier 1 | "\ .id : $\ .official.input /$\ .official.output - above \ .official.long context.threshold tok: in x\ .official.long context.input multiplier , out x\ .official.long context.output multiplier "' Output v2026.12 snapshot, 2026-12-04 : php gemini-3.1-pro-preview: $2/$12 - above 200000 tok: in x2, out x1.5 gemini-3.1-pro-preview-customtools: $2/$12 - above 200000 tok: in x2, out x1.5 gpt-5.4: $2.5/$15 - above 272000 tok: in x2, out x1.5 gpt-5.4-pro: $30/$180 - above 272000 tok: in x2, out x1.5 gpt-5.6-luna: $0.2/$1.2 - above 272000 tok: in x2, out x1.5 gpt-5.6-sol: $4/$20 - above 272000 tok: in x2, out x1.5 gpt-5.6-terra: $2/$12 - above 272000 tok: in x2, out x1.5 gpt-6-astra: $10/$50 - above 272000 tok: in x2, out x1.5 gpt-6-luna: $0.1/$0.5 - above 272000 tok: in x2, out x1.5 gpt-6-sol: $2/$10 - above 272000 tok: in x2, out x1.5 gpt-6.1-sol: $2/$10 - above 272000 tok: in x2, out x1.5 gpt-6.1-terra: $1/$5 - above 272000 tok: in x2, out x1.5 gpt-6.2-astra: $8/$40 - above 272000 tok: in x2, out x1.5 gpt-6.2-sol: $2/$10 - above 272000 tok: in x2, out x1.5 grok-4.20-0309-reasoning: $1.25/$2.5 - above 200000 tok: in x2, out x2 grok-4.20-multi-agent-0309: $1.25/$2.5 - above 200000 tok: in x2, out x2 grok-4.3: $1.25/$2.5 - above 200000 tok: in x2, out x2 grok-4.5: $2/$6 - above 200000 tok: in x2, out x2 grok-4.6: $2/$6 - above 200000 tok: in x2, out x2 grok-4.7: $2/$6 - above 200000 tok: in x2, out x2 qwen3.7-plus: $0.2941/$1.176 - above 262144 tok: in x3, out x3 Notice what jumps out immediately when you compare vendors side by side: claude-sonnet-5-5 , Google's Gemini 4 series gemini-4-argon , gemini-4-carbon , gemini-4-neon , gemini-4-hydrogen , Zhipu's glm-5.4 , DeepSeek's deepseek-v4.1-flash-1017 , Alibaba's qwen4-max , and Moonshot's kimi-k3.1-pro all price their 1M context window claude-haiku-5-5 $0.10 / $0.50 up to 100K prompt tokens steps up 5x above 100K prompt tokens. Here is how current flagship and workhorse chat/coding models compare on official vendor list prices as of December 2026: | Model ID | Vendor Family | Fresh Input | Cache Read cached input | Output incl. reasoning | Long-Context Cliff | |---|---|---|---|---|---| | claude-fable-5-2 | Anthropic Claude | $8.00 | $0.20 0.025x | $40.00 | Flat 1M | | claude-opus-5-5 | Anthropic Claude | $4.00 | $0.20 0.05x | $20.00 | Flat 1M | | claude-sonnet-5-5 | Anthropic Claude | $2.00 | $0.10 0.05x | $10.00 | Flat 1M | | gpt-6.2-astra | OpenAI GPT / Codex | $8.00 | $0.40 0.05x | $40.00 | 272K: in ×2, out ×1.5 | | gpt-6.2-sol | OpenAI GPT / Codex | $2.00 | $0.10 0.05x | $10.00 | 272K: in ×2, out ×1.5 | | gpt-6.1-terra | OpenAI GPT / Codex | $1.00 | $0.05 0.05x | $5.00 | 272K: in ×2, out ×1.5 | | gemini-4-argon | Google Gemini | $4.00 | $0.20 0.05x | $20.00 | Flat 1M GA rate Dec 1+ | | gemini-4-neon | Google Gemini | $3.00 | $0.15 0.05x | $15.00 | Flat 1M | | gemini-4-hydrogen | Google Gemini | $1.50 | $0.075 0.05x | $7.50 | Flat 1M | | grok-4.7 | xAI Grok | $2.00 | $0.50 0.25x | $6.00 | 200K: in ×2, out ×2 | | glm-5.4 | Zhipu GLM | $1.40 | $0.26 0.186x | $4.40 | Flat 1M multimodal | | qwen4-max | Alibaba Qwen | $1.471 | $0.0735 0.05x | $4.412 | Flat ~1M | | kimi-k3.1-pro | Moonshot Kimi | $2.00 | $0.20 0.10x | $10.00 | Flat 1M | | minimax-m4 | MiniMax | $0.80 | $0.05 0.0625x | $3.10 | Flat | | deepseek-v4.1-flash-1017 | DeepSeek | $0.2941 | $0.00588 0.02x | $1.176 | Flat 1M peak rate | Here is a self-contained Python helper that loads official-prices.json and computes exact official list cost for a multi-turn coding agent session: python import json import urllib.request DATA URL = "https://raw.githubusercontent.com/HopBase-AI/llm-api-pricing/main/data/official-prices.json" def load catalog url: str = DATA URL - dict str, dict : with urllib.request.urlopen url, timeout=15 as resp: payload = json.loads resp.read .decode "utf-8" return {m "id" : m for m in payload "models" } def estimate agent session usd model entry: dict, , cached prefix tokens: int, fresh input per turn: int, output per turn: int, turns: int, cache write multiplier: float = 1.25, e.g. 1.25x for Anthropic 5m TTL, 1.0x for implicit prefix cache - float: off = model entry "official" in rate = off "input" cache rate = off.get "cached input", in rate out rate = off "output" total prompt = cached prefix tokens + fresh input per turn lc = off.get "long context" if lc and total prompt lc "threshold" : in rate = lc.get "input multiplier", 1.0 cache rate = lc.get "input multiplier", 1.0 out rate = lc.get "output multiplier", 1.0 Turn 1 writes the prefix; turns 2..N read from cache turn1 prefix usd = cached prefix tokens / 1 000 000 in rate cache write multiplier cached reads usd = turns - 1 cached prefix tokens / 1 000 000 cache rate fresh input usd = turns fresh input per turn / 1 000 000 in rate output usd = turns output per turn / 1 000 000 out rate return round turn1 prefix usd + cached reads usd + fresh input usd + output usd, 4 if name == " main ": catalog = load catalog for mid, write mult in "claude-fable-5-2", 1.25 , $10/1M 5-min cache write $8 1.25 "claude-opus-5-5", 1.25 , $5/1M 5-min cache write $4 1.25 "gpt-6.2-astra", 1.0 , automatic prefix caching "gpt-6.2-sol", 1.0 , "glm-5.4", 1.0 , "deepseek-v4.1-flash-1017", 1.0 , : usd = estimate agent session usd catalog mid , cached prefix tokens=100 000, fresh input per turn=5 000, output per turn=2 000, turns=20, cache write multiplier=write mult, print f"{mid:28s} - 20-turn 100K-repo session: ${usd:.4f} official list " Look at what happens on a 20-turn session with a 100K-token repository context: $18.40 1.25x write on turn 1, $0.20/1M on 19 subsequent reads , the entire 20-turn flagship run drops to $3.78 2.0x write = $16.00/1M on $16.40 for 1 write + 2 hits vs $24.00 for 3 uncached calls . official-prices.csv For media pipelines, data/official-prices.csv flattens every resolution, audio, and reference-input bucket into an explicit row unit + bucket + price so SQL / DuckDB / Pandas queries work without nested JSON unpacking: -- Run directly in DuckDB over HTTPS SELECT id, family, unit, bucket, price FROM read csv auto 'https://raw.githubusercontent.com/HopBase-AI/llm-api-pricing/main/data/official-prices.csv' WHERE category IN 'video', 'image' AND id IN 'kling-v4', 'kling-v4-flash', 'dreamina-seedance-2-5-260628', 'midjourney-v8-2', 'gemini-nano-banana-2.1' ORDER BY family, id, bucket; If you use Claude Code , Cursor , Windsurf , or Cline , you can also wire up our read-only MCP server HopBase-AI/hopbase-mcp https://github.com/HopBase-AI/hopbase-mcp , registered in the Official MCP Registry as com.hop-base/mcp so your agent inspects live model catalogs, parameter bounds, and official documentation directly: claude mcp add --transport http hopbase https://api.hop-base.com/mcp \ --header "Authorization: Bearer $HOPBASE API KEY" build.py Refresh Script: If you spot a vendor list-price update or want another schema column added to official-prices.csv , open an issue or PR on HopBase-AI/llm-api-pricing https://github.com/HopBase-AI/llm-api-pricing