{"slug": "open-cc-by-4-0-json-csv-dataset-official-list-prices-for-160-llm-video-image", "title": "Open CC-BY-4.0 JSON/CSV Dataset: Official List Prices for 160+ LLM, Video & Image APIs (Cache TTLs & Long-Context Tiers)", "summary": "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.", "body_md": "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.**\n\nIn real-world agent and media pipelines, three pricing mechanics dominate total spend:\n\n`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.\nTo 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**:\n\n`v2026.12` Release:`GET https://api.hop-base.com/api/v1/models/pricing`\nAll 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).\n\nYou 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:\n\n```\n# Inspect models with long-context step-up multipliers using jq\ncurl -sL https://raw.githubusercontent.com/HopBase-AI/llm-api-pricing/main/data/official-prices.json \\\n  | jq -r '.models[]\n    | select(.official.long_context != null and .official.long_context.input_multiplier > 1)\n    | \"\\(.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)\"'\n```\n\nOutput (`v2026.12` snapshot, `2026-12-04`):\n\n``` php\ngemini-3.1-pro-preview: $2/$12 -> above 200000 tok: in x2, out x1.5\ngemini-3.1-pro-preview-customtools: $2/$12 -> above 200000 tok: in x2, out x1.5\ngpt-5.4: $2.5/$15 -> above 272000 tok: in x2, out x1.5\ngpt-5.4-pro: $30/$180 -> above 272000 tok: in x2, out x1.5\ngpt-5.6-luna: $0.2/$1.2 -> above 272000 tok: in x2, out x1.5\ngpt-5.6-sol: $4/$20 -> above 272000 tok: in x2, out x1.5\ngpt-5.6-terra: $2/$12 -> above 272000 tok: in x2, out x1.5\ngpt-6-astra: $10/$50 -> above 272000 tok: in x2, out x1.5\ngpt-6-luna: $0.1/$0.5 -> above 272000 tok: in x2, out x1.5\ngpt-6-sol: $2/$10 -> above 272000 tok: in x2, out x1.5\ngpt-6.1-sol: $2/$10 -> above 272000 tok: in x2, out x1.5\ngpt-6.1-terra: $1/$5 -> above 272000 tok: in x2, out x1.5\ngpt-6.2-astra: $8/$40 -> above 272000 tok: in x2, out x1.5\ngpt-6.2-sol: $2/$10 -> above 272000 tok: in x2, out x1.5\ngrok-4.20-0309-reasoning: $1.25/$2.5 -> above 200000 tok: in x2, out x2\ngrok-4.20-multi-agent-0309: $1.25/$2.5 -> above 200000 tok: in x2, out x2\ngrok-4.3: $1.25/$2.5 -> above 200000 tok: in x2, out x2\ngrok-4.5: $2/$6 -> above 200000 tok: in x2, out x2\ngrok-4.6: $2/$6 -> above 200000 tok: in x2, out x2\ngrok-4.7: $2/$6 -> above 200000 tok: in x2, out x2\nqwen3.7-plus: $0.2941/$1.176 -> above 262144 tok: in x3, out x3\n```\n\nNotice what jumps out immediately when you compare vendors side by side:\n\n`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.\nHere is how current flagship and workhorse chat/coding models compare on official vendor list prices as of December 2026:\n\n| Model ID | Vendor Family | Fresh Input | Cache Read ( `cached_input` ) | Output (incl. reasoning) | Long-Context Cliff | \n|---|---|---|---|---|---|\n| `claude-fable-5-2` | Anthropic Claude | $8.00 | $0.20 ( `0.025x` ) | $40.00 | Flat 1M | \n| `claude-opus-5-5` | Anthropic Claude | $4.00 | $0.20 ( `0.05x` ) | $20.00 | Flat 1M | \n| `claude-sonnet-5-5` | Anthropic Claude | $2.00 | $0.10 ( `0.05x` ) | $10.00 | Flat 1M | \n| `gpt-6.2-astra` | OpenAI GPT / Codex | $8.00 | $0.40 ( `0.05x` ) | $40.00 | >272K: `in ×2, out ×1.5` | \n| `gpt-6.2-sol` | OpenAI GPT / Codex | $2.00 | $0.10 ( `0.05x` ) | $10.00 | >272K: `in ×2, out ×1.5` | \n| `gpt-6.1-terra` | OpenAI GPT / Codex | $1.00 | $0.05 ( `0.05x` ) | $5.00 | >272K: `in ×2, out ×1.5` | \n| `gemini-4-argon` | Google Gemini | $4.00 | $0.20 ( `0.05x` ) | $20.00 | Flat 1M (GA rate Dec 1+) | \n| `gemini-4-neon` | Google Gemini | $3.00 | $0.15 ( `0.05x` ) | $15.00 | Flat 1M | \n| `gemini-4-hydrogen` | Google Gemini | $1.50 | $0.075 ( `0.05x` ) | $7.50 | Flat 1M | \n| `grok-4.7` | xAI Grok | $2.00 | $0.50 ( `0.25x` ) | $6.00 | >200K: `in ×2, out ×2` | \n| `glm-5.4` | Zhipu GLM | $1.40 | $0.26 ( `0.186x` ) | $4.40 | Flat 1M (multimodal) | \n| `qwen4-max` | Alibaba Qwen | $1.471 | $0.0735 ( `0.05x` ) | $4.412 | Flat ~1M | \n| `kimi-k3.1-pro` | Moonshot Kimi | $2.00 | $0.20 ( `0.10x` ) | $10.00 | Flat 1M | \n| `minimax-m4` | MiniMax | $0.80 | $0.05 ( `0.0625x` ) | $3.10 | Flat | \n| `deepseek-v4.1-flash-1017` | DeepSeek | $0.2941 | $0.00588 ( `0.02x` ) | $1.176 | Flat 1M (peak rate) | \n\nHere is a self-contained Python helper that loads `official-prices.json` and computes exact official list cost for a multi-turn coding agent session:\n\n``` python\nimport json\nimport urllib.request\n\nDATA_URL = \"https://raw.githubusercontent.com/HopBase-AI/llm-api-pricing/main/data/official-prices.json\"\n\ndef load_catalog(url: str = DATA_URL) -> dict[str, dict]:\n    with urllib.request.urlopen(url, timeout=15) as resp:\n        payload = json.loads(resp.read().decode(\"utf-8\"))\n    return {m[\"id\"]: m for m in payload[\"models\"]}\n\ndef estimate_agent_session_usd(\n    model_entry: dict,\n    *,\n    cached_prefix_tokens: int,\n    fresh_input_per_turn: int,\n    output_per_turn: int,\n    turns: int,\n    cache_write_multiplier: float = 1.25,  # e.g. 1.25x for Anthropic 5m TTL, 1.0x for implicit prefix cache\n) -> float:\n    off = model_entry[\"official\"]\n    in_rate = off[\"input\"]\n    cache_rate = off.get(\"cached_input\", in_rate)\n    out_rate = off[\"output\"]\n\n    total_prompt = cached_prefix_tokens + fresh_input_per_turn\n    lc = off.get(\"long_context\")\n    if lc and total_prompt > lc[\"threshold\"]:\n        in_rate *= lc.get(\"input_multiplier\", 1.0)\n        cache_rate *= lc.get(\"input_multiplier\", 1.0)\n        out_rate *= lc.get(\"output_multiplier\", 1.0)\n\n    # Turn 1 writes the prefix; turns 2..N read from cache\n    turn1_prefix_usd = (cached_prefix_tokens / 1_000_000) * (in_rate * cache_write_multiplier)\n    cached_reads_usd = ((turns - 1) * cached_prefix_tokens / 1_000_000) * cache_rate\n    fresh_input_usd = (turns * fresh_input_per_turn / 1_000_000) * in_rate\n    output_usd = (turns * output_per_turn / 1_000_000) * out_rate\n    return round(turn1_prefix_usd + cached_reads_usd + fresh_input_usd + output_usd, 4)\n\nif __name__ == \"__main__\":\n    catalog = load_catalog()\n    for mid, write_mult in [\n        (\"claude-fable-5-2\", 1.25),   # $10/1M 5-min cache write ($8 * 1.25)\n        (\"claude-opus-5-5\", 1.25),    # $5/1M 5-min cache write ($4 * 1.25)\n        (\"gpt-6.2-astra\", 1.0),       # automatic prefix caching\n        (\"gpt-6.2-sol\", 1.0),\n        (\"glm-5.4\", 1.0),\n        (\"deepseek-v4.1-flash-1017\", 1.0),\n    ]:\n        usd = estimate_agent_session_usd(\n            catalog[mid],\n            cached_prefix_tokens=100_000,\n            fresh_input_per_turn=5_000,\n            output_per_turn=2_000,\n            turns=20,\n            cache_write_multiplier=write_mult,\n        )\n        print(f\"{mid:28s} -> 20-turn 100K-repo session: ${usd:.4f} (official list)\")\n```\n\nLook at what happens on a 20-turn session with a 100K-token repository context:\n\n`$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`\nFor 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:\n\n```\n-- Run directly in DuckDB over HTTPS!\nSELECT id, family, unit, bucket, price\nFROM read_csv_auto('https://raw.githubusercontent.com/HopBase-AI/llm-api-pricing/main/data/official-prices.csv')\nWHERE category IN ('video', 'image')\n  AND id IN ('kling-v4', 'kling-v4-flash', 'dreamina-seedance-2-5-260628', 'midjourney-v8-2', 'gemini-nano-banana-2.1')\nORDER BY family, id, bucket;\n```\n\nIf 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:\n\n```\nclaude mcp add --transport http hopbase https://api.hop-base.com/mcp \\\n  --header \"Authorization: Bearer $HOPBASE_API_KEY\"\n```\n\n`build.py` Refresh Script:\nIf 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)!", "url": "https://wpnews.pro/news/open-cc-by-4-0-json-csv-dataset-official-list-prices-for-160-llm-video-image", "canonical_source": "https://dev.to/hopbase/open-cc-by-40-jsoncsv-dataset-official-list-prices-for-160-llm-video-image-apis-cache-ttls-nj9", "published_at": "2026-12-04 03:42:09+00:00", "updated_at": "2026-12-04 03:45:52.697126+00:00", "lang": "en", "topics": ["large-language-models", "ai-tools", "ai-products", "developer-tools", "mlops"], "entities": ["HopBase-AI", "OpenAI", "Anthropic", "Google", "DeepSeek", "Qwen", "Zhipu", "xAI"], "also_reported_by": [], "takeaway": "The dataset exposes cache read/write TTL pricing (0.02x–0.10x of fresh input) and long-context step-ups like gpt-6.2-sol's 2x input/1.5x output above 272,000 tokens, which flat input/output scrapers miss.", "recommendation": null, "alternates": {"html": "https://wpnews.pro/news/open-cc-by-4-0-json-csv-dataset-official-list-prices-for-160-llm-video-image", "markdown": "https://wpnews.pro/news/open-cc-by-4-0-json-csv-dataset-official-list-prices-for-160-llm-video-image.md", "text": "https://wpnews.pro/news/open-cc-by-4-0-json-csv-dataset-official-list-prices-for-160-llm-video-image.txt", "jsonld": "https://wpnews.pro/news/open-cc-by-4-0-json-csv-dataset-official-list-prices-for-160-llm-video-image.jsonld"}}