mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-12-05 08:05:12 +00:00
grok-4.7-fast 没有专属价格,落入「未知 Grok 文本模型」兜底按 grok-4.6 价卡计费,与普通 grok-4.7 同价($2 / $0.50 / $6),少收一半。 - 内置兜底价新增 grok-4.7-fast:<200k 为 $4 输入 / $1 缓存读取 / $12 输出 (每百万 token,标准价 2 倍);>=200k 整次请求为 $6 / $1.50 / $18, 即 Fast 基础价 1.5 倍,阈值口径与其它 xAI 价卡一致(达到即进高档) - grok-4.7-build-fast(Grok Build 侧的 Fast ID,见 #7502)同样命中该价卡 - 本地价格快照新增 grok-4.7-fast 条目,带 xai/ 前缀的写法也能识别 价格来源:https://docs.x.ai/developers/pricing(Grok 4.7 Fast,仅 Cursor 与 Grok Build 提供)。 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Model Pricing Data
This directory contains a local copy of the mirrored model pricing data as a fallback mechanism.
Source
The original file is maintained by the LiteLLM project and mirrored into the price-mirror branch of this repository via GitHub Actions:
- Mirror branch (configurable via
PRICE_MIRROR_REPO): https://raw.githubusercontent.com//price-mirror/model_prices_and_context_window.json - Upstream source: https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json
Purpose
This local copy serves as a fallback when the remote file cannot be downloaded due to:
- Network restrictions
- Firewall rules
- DNS resolution issues
- GitHub being blocked in certain regions
- Docker container network limitations
Update Process
The pricingService will:
- First attempt to download the latest version from GitHub
- If download fails, use this local copy as fallback
- Log a warning when using the fallback file
Manual Update
To manually update this file with the latest pricing data (if automation is unavailable):
curl -s https://raw.githubusercontent.com/BerriAI/litellm/main/model_prices_and_context_window.json -o model_prices_and_context_window.json
File Format
The file contains JSON data with model pricing information including:
- Model names and identifiers
- Input/output token costs
- Context window sizes
- Model capabilities
Last updated: 2025-08-10