cd /news/large-language-models/open-cc-by-4-0-json-csv-dataset-offi… · home › topics › large-language-models › article
[ARTICLE · art-181566] src=dev.to ↗ pub= topic=large-language-models verified=true sentiment=↑ positive

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.

key 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.

by read7 min views10 publishedDec 4, 2026

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:

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):

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:

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)

    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, 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!

── more in #large-language-models 4 stories · sorted by recency
── more on @hopbase-ai 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/open-cc-by-4-0-json-…] indexed:0 read:7min 2026-12-04 · —