LLM API Pricing Dataset (每日 LLM API 价格数据集)
以下摘录自该仓库的 README(片段) · 在 GitHub 读完整 README →
English | 中文
---
English
1. Introduction
This repository provides a daily-verified pricing dataset of popular Large Language Model (LLM) APIs, tracking both Chinese and global model providers.
- **Official Website**: LLM Abacus (An interactive LLM API price comparison and cost estimation tool)
- **Coverage**: 44 models from major vendors (including OpenAI, Anthropic, Google, DeepSeek, Alibaba, ByteDance, Baidu, Tencent, MiniMax, etc.)
- **Frequency**: Checked daily to ensure up-to-date accuracy.
2. License & Attribution (CC-BY-4.0)
This dataset is licensed under the **Creative Commons Attribution 4.0 International License (CC-BY-4.0)**.
Under this license, you are free to:
- **Share**: Copy and redistribute the material in any medium or format.
- **Adapt**: Remix, transform, and build upon the material for any purpose, even commercially.
**Attribution Requirements**:
You must give appropriate credit and provide a link back to the original source. When using this dataset in your projects, articles, or websites, you must include a clickable hyperlink to LLM Abacus or https://llmabacus.com.
For example:
> *Pricing data provided by LLM Abacus.*
3. File Structure
- prices.json: The core dataset containing structured model details, metadata, and token prices (both USD and CNY per million tokens).
- sync_prices.py: A utility script to synchronize and rebuild prices.json from the source application configurations.
- CONTRIBUTING.md: Guidelines on how to report price discrepancies or request new model tracking.
4. Schema Details (prices.json)
The generated prices.json file uses the following schema:
- last_updated: YYYY-MM-DD date when the pricing was last updated.
- usd_to_cny_rate: The exchange rate used for conversions.
- pricing_unit: Pricing metrics unit (default is per_million_tokens).
- models: Array of model objects:
- id: Unique model identifier (e.g., gpt-5-5).
- name: Human-readable display name.
- vendor_id / vendor_name: Vendor classification.
- country: Region of origin (e.g., US, CN).
- billing_currency: Original currency of vendor billing (USD or CNY).
- input_price_usd_per_m / output_price_usd_per_m: Price per million tokens in USD.
- input_price_cny_per_m / output_price_cny_per_m: Price per million tokens in CNY.
- cached_input_price_usd_per_m / cached_input_price_cny_per_m: Optional. Cache hit pricing.
- context_window: Maximum input context length.
- max_output: Maximum generation output length.
- modality: Supported modalities (text, vision, etc.).
- tags: Classification tags (e.g., 旗舰, 推理, 性价比).
- knowledge_cutoff: Model knowledge cutoff date.
- quality_score: Benchmarked quality index.
5. Re-synchronizing Data
To update prices.json with the latest upstream data, run:
---
中文
1. 简介
本仓库提供每日核价的国内外主流大语言模型 (LLM) API 价格数据集。
- **主站链接**:LLM Abacus (中文优先、44 模型每日核价的 LLM API 价格对比与成本估算工具)
- **覆盖范围**:包含 OpenAI, Anthropic, Google, DeepSeek, 阿里通义, 字节豆包, 百度文心, 腾讯混元, MiniMax 等 44 个主流模型。
- **更新频率**:每日核对,确保价格真实可靠。
2. 授权协议与署名条款 (CC-BY-4.0)