Model Rate Cards

Versioned multi-model rate cards from @qodewk/pricing. Transparent token benchmarks across frontier providers used by Qodewk to verify agent expenditures.

The official rate card registry for Qodewk. Token rates are mathematically applied to Git commit diffs and session transcripts to generate verifiable digital receipts.

Telemetry Docs

Commit Diff Token Cost Simulator

Showing heuristic ~USD cost based on current slider values
50,000
2,500
20,000

Claude Opus 4

anthropic•200k window
~$0.1740
simulated diff
Input$4.00/M
Output$20.00/M
Cache Read$0.20/M
Cache Write$5.00/M

Claude Opus 4.6 Thinking

anthropic•200k window
~$0.2175
simulated diff
Input$5.00/M
Output$25.00/M
Cache Read$0.25/M
Cache Write$6.25/M

Claude Sonnet 4.6 Thinking

anthropic•200k window
~$0.1335
simulated diff
Input$3.00/M
Output$15.00/M
Cache Read$0.30/M
Cache Write$3.75/M

Claude Sonnet 4

anthropic•200k window
~$0.1335
simulated diff
Input$3.00/M
Output$15.00/M
Cache Read$0.30/M
Cache Write$3.75/M

Claude 3.7 Sonnet

anthropic•200k window
~$0.1335
simulated diff
Input$3.00/M
Output$15.00/M
Cache Read$0.30/M
Cache Write$3.75/M

Claude 3.5 Sonnet

anthropic•200k window
~$0.1335
simulated diff
Input$3.00/M
Output$15.00/M
Cache Read$0.30/M
Cache Write$3.75/M

Claude 3.5 Haiku

anthropic•200k window
~$0.0356
simulated diff
Input$0.80/M
Output$4.00/M
Cache Read$0.08/M
Cache Write$1.00/M

GPT-4o

openai•128k window
~$0.1250
simulated diff
Input$2.50/M
Output$10.00/M
Cache Read$1.25/M
Cache Write$2.50/M

GPT-4o Mini

openai•128k window
~$0.0075
simulated diff
Input$0.15/M
Output$0.60/M
Cache Read$0.07/M
Cache Write$0.15/M

o1

openai•200k window
~$0.7500
simulated diff
Input$15.00/M
Output$60.00/M
Cache Read$7.50/M
Cache Write$15.00/M

o3-mini

openai•200k window
~$0.0550
simulated diff
Input$1.10/M
Output$4.40/M
Cache Read$0.55/M
Cache Write$1.10/M

Gemini 3.8 Flash

google•1M window
~$0.0045
simulated diff
Input$0.10/M
Output$0.40/M
Cache Read$0.03/M
Cache Write$0.10/M

Gemini 3.6 Flash

google•1M window
~$0.0045
simulated diff
Input$0.10/M
Output$0.40/M
Cache Read$0.03/M
Cache Write$0.10/M

Gemini 2.5 Pro

google•2M window
~$0.0560
simulated diff
Input$1.25/M
Output$5.00/M
Cache Read$0.30/M
Cache Write$1.25/M

Gemini 2.0 Flash

google•1M window
~$0.0045
simulated diff
Input$0.10/M
Output$0.40/M
Cache Read$0.03/M
Cache Write$0.10/M

Gemini 1.5 Pro

google•2M window
~$0.0560
simulated diff
Input$1.25/M
Output$5.00/M
Cache Read$0.30/M
Cache Write$1.25/M

DeepSeek V3

deepseek•64k window
~$0.0052
simulated diff
Input$0.14/M
Output$0.28/M
Cache Read$0.01/M
Cache Write$0.14/M

DeepSeek R1

deepseek•64k window
~$0.0248
simulated diff
Input$0.55/M
Output$2.19/M
Cache Read$0.14/M
Cache Write$0.55/M

Programmatic SDK Integration

Consume rate cards and calculate exact token costs in your own Node.js or Edge applications.

import { RATE_CARDS, computeCost, getRateCard } from "@qodewk/pricing";

// 1. Fetch official rate card with fuzzy alias resolution
const card = getRateCard("claude-3-7-sonnet");

// 2. Compute cost: (freshInput * inputRate + cacheRead * cacheRate + output * outputRate)
const cost = computeCost(50000, 2500, 20000, card);

console.log(`Calculated expenditure: ~$${cost.toFixed(4)}`);
All model rate cards are versioned under MIT license in @qodewk/pricing.
View Qodewk Plans