编程

API Cost Compare

试用

Compare AI API pricing across 18 models from 6 providers — find the cheapest model for your use case (coding, chat, writing, reasoning) and track your API sp...

它能做什么

Compare AI API pricing across 18 models from 6 providers — find the cheapest model for your use case (coding, chat, writing, reasoning) and track your API spending. One command saves you thousands per year.

技能文档

api-cost-compare

Problem → Solution

The problem: You're building an AI app and picking a model. Claude Opus 4.7 costs $15/M tokens input, GPT-4o costs $2.50, DeepSeek V4 Flash costs $0.14. The pricing landscape shifts monthly. You're probably overpaying by 90%+ because you picked the default model. $4,000/year wasted on API costs you didn't need to spend.

The solution: One command compares 18 models across 6 providers for your specific scenario (coding, chat, writing, reasoning). Realistic token estimates per scenario. Spending tracker to know exactly what you're burning.

Quick Start

pip install git+https://github.com/minirr890112-byte/api-cost-compare.git

api-cost list              # All 18 models with pricing
api-cost recommend coding  # Cheapest for your use case
api-cost compare 0 1 chat  # Head-to-head comparison
api-cost track 3.50 openai gpt-4o  # Log spending
api-cost report            # Spending summary

Real Output

$ api-cost recommend coding

⭐ #1   Mistral Mistral Small 3        $1.65/month
⭐ #2   DeepSeek DeepSeek V4 Flash     $1.89/month
⭐ #3   OpenAI GPT-4o-mini             $2.92/month

💸 Choosing #1 over Claude Opus 4.7 saves $335.85/month ($4,030/year)

Providers Covered

OpenAI · Anthropic · Google · DeepSeek · xAI · Mistral

Scenarios

ScenarioInput tokensOutput tokensRequests/day
coding5,0002,00050
chat500500100
writing1,0003,00010
reasoning2,0004,00020

Star this repo to stop burning money on AI APIs: github.com/minirr890112-byte/api-cost-compare

相关技能

Compare multiple LLM models (GPT-5, Claude Sonnet 4.5, Gemini 3, DeepSeek v4-pro, Grok 4, etc.) side-by-side in one parallel request via OATDA's unified AI g...

LLM gateway & AI completion API for agents — call frontier models (Claude, GPT, DeepSeek) across cheap/pro/ultra tiers from one endpoint, pay-per-call in USD...

1 次安装

Check coding-model API quality, capability fit, and drift with LT-lite and B3IT-lite. Use when Codex needs to verify whether an OpenAI/OpenAI-compatible/Anth...

15 次安装

Benchmark AI API models over time and detect quality degradation. 7 standardized tests (reasoning, coding, writing, instruction-following, hallucination). Al...

3 次安装

Use when the user asks what RunAPI models are available, compares models, needs pricing, asks for required fields, searches by modality, or wants a recommend...

12 次安装

Reference for the ai-assistant API / ai-provider SDK — model ids, pricing, params, streaming, tool use, 工具协议, agents, caching, token counting, model migration. TRIGGER — read BEFORE opening the target file; do Use when 需要Development领域自动化处理、数据分析和流程编排时使用。不适用于无明确需求的模糊场景。

1 次安装