pricing

Claude Code Pricing & AI Model Price Comparison

Compare transparent token, per-call and API pricing for Claude Code, GPT, GLM and DeepSeek.

Usage-based: USD / 1M tokens · Per-call: USD / call

No off-peak discount right now · some models have time-based multipliers

27 models

Anthropic 16 models

Claude Opus 4.6

Claude Opus 4.6

claude_code
claude-opus-4-6

Input $/1M

$5.00

Output $/1M

$25.00

Cache write $/1M

$6.25

Cache read $/1M

$0.50

Est. cost · 10M tok · 96% cache hit$8.03
Claude Sonnet 5.5

Claude Sonnet 5.5

claude_code
claude-sonnet-5-5

Input $/1M

$2.00

Output $/1M

$10.00

Cache write $/1M

$2.50

Cache read $/1M

$0.20

Est. cost · 10M tok · 96% cache hit$3.21
Claude Opus 5.5

Claude Opus 5.5

claude_code
claude-opus-5-5

Input $/1M

$4.00

Output $/1M

$20.00

Cache write $/1M

$5.00

Cache read $/1M

$0.20

Est. cost · 10M tok · 96% cache hit$4.51
Claude-Fable-5.1

Claude-Fable-5.1

claude_code
claude-fable-5-1

Input $/1M

$10.00

Output $/1M

$50.00

Cache write $/1M

$12.50

Cache read $/1M

$1.00

Est. cost · 10M tok · 96% cache hit$16.06
Claude Opus 5

Claude Opus 5

claude_code
claude-opus-5

Input $/1M

$5.00

Output $/1M

$25.00

Cache write $/1M

$6.25

Cache read $/1M

$0.50

Est. cost · 10M tok · 96% cache hit$8.03
Claude Sonnet 5

Claude Sonnet 5

claude_code
claude-sonnet-5

Input $/1M

$2.00

Output $/1M

$10.00

Cache write $/1M

$2.50

Cache read $/1M

$0.20

Est. cost · 10M tok · 96% cache hit$3.21
Claude-Fable-5

Claude-Fable-5

claude_code
claude-fable-5

Input $/1M

$10.00

Output $/1M

$50.00

Cache write $/1M

$12.50

Cache read $/1M

$1.00

Est. cost · 10M tok · 96% cache hit$16.06
Claude Opus 4.7

Claude Opus 4.7

claude_code
claude-opus-4-7

Input $/1M

$5.00

Output $/1M

$25.00

Cache write $/1M

$6.25

Cache read $/1M

$0.50

Est. cost · 10M tok · 96% cache hit$8.03
Claude Opus 4.8

Claude Opus 4.8

claude_code
claude-opus-4-8

Input $/1M

$5.00

Output $/1M

$25.00

Cache write $/1M

$6.25

Cache read $/1M

$0.50

Est. cost · 10M tok · 96% cache hit$8.03
Claude Sonnet 4.6

Claude Sonnet 4.6

claude_code
claude-sonnet-4-6

Input $/1M

$3.00

Output $/1M

$15.00

Cache write $/1M

$3.75

Cache read $/1M

$0.30

Est. cost · 10M tok · 96% cache hit$4.82
Claude Opus 4.5 (2025-11-01)

Claude Opus 4.5 (2025-11-01)

claude_code
claude-opus-4-5-20251101

Input $/1M

$5.00

Output $/1M

$25.00

Cache write $/1M

$6.25

Cache read $/1M

$0.50

Est. cost · 10M tok · 96% cache hit$8.03
Claude Sonnet 4.5 (2025-09-29)

Claude Sonnet 4.5 (2025-09-29)

claude_code
claude-sonnet-4-5-20250929

Input $/1M

$3.00

Output $/1M

$15.00

Cache write $/1M

$3.75

Cache read $/1M

$0.30

Est. cost · 10M tok · 96% cache hit$4.82
Claude Sonnet 4.5 (2025-09-02)

Claude Sonnet 4.5 (2025-09-02)

claude_code
claude-sonnet-4-5-20250902

Input $/1M

$3.00

Output $/1M

$15.00

Cache write $/1M

$3.75

Cache read $/1M

$0.30

Est. cost · 10M tok · 96% cache hit$4.82
Claude Haiku 5.5

Claude Haiku 5.5

claude_code
claude-haiku-5-5

Input $/1M

$0.10

Output $/1M

$0.50

Cache write $/1M

$0.13

Cache read $/1M

$0.01

Est. cost · 10M tok · 96% cache hit$0.16
Claude Haiku 4.5 (2025-10-01)

Claude Haiku 4.5 (2025-10-01)

claude_code
claude-haiku-4-5-20251001

Input $/1M

$1.00

Output $/1M

$5.00

Cache write $/1M

$1.25

Cache read $/1M

$0.10

Est. cost · 10M tok · 96% cache hit$1.61
Claude Sonnet 4 (2025-05-14)

Claude Sonnet 4 (2025-05-14)

claude_code
claude-sonnet-4-20250514

Input $/1M

$3.00

Output $/1M

$15.00

Cache write $/1M

$3.75

Cache read $/1M

$0.30

Est. cost · 10M tok · 96% cache hit$4.82

OpenAI 7 models

ChatGPT-6-Astra

ChatGPT-6-Astra

codex
gpt-6-astra

Input $/1M

$10.00

Output $/1M

$50.00

Cache write $/1M

$0.00

Cache read $/1M

$1.00

Est. cost · 10M tok · 96% cache hit$15.06
ChatGPT-6.1-Sol

ChatGPT-6.1-Sol

codex
gpt-6.1-sol

Input $/1M

$2.00

Output $/1M

$10.00

Cache write $/1M

$2.50

Cache read $/1M

$0.10

Est. cost · 10M tok · 96% cache hit$2.25
ChatGPT-6-Sol

ChatGPT-6-Sol

codex
gpt-6-sol

Input $/1M

$2.00

Output $/1M

$10.00

Cache write $/1M

$2.50

Cache read $/1M

$0.20

Est. cost · 10M tok · 96% cache hit$3.21
ChatGPT-5.6-Sol

ChatGPT-5.6-Sol

codex
gpt-5.6-sol

Input $/1M

$5.00

Output $/1M

$30.00

Cache write $/1M

$6.25

Cache read $/1M

$0.50

Est. cost · 10M tok · 96% cache hit$8.18
ChatGPT-5.6-Terra

ChatGPT-5.6-Terra

codex
gpt-5.6-terra

Input $/1M

$2.00

Output $/1M

$12.00

Cache write $/1M

$2.50

Cache read $/1M

$0.20

Est. cost · 10M tok · 96% cache hit$3.27
ChatGPT-5.5

ChatGPT-5.5

codex
gpt-5.5

Input $/1M

$5.00

Output $/1M

$30.00

Cache write $/1M

$0.00

Cache read $/1M

$0.50

Est. cost · 10M tok · 96% cache hit$7.68
ChatGPT-5.5-OpenAI-Compact

ChatGPT-5.5-OpenAI-Compact

codex
gpt-5.5-openai-compact

Input $/1M

$5.00

Output $/1M

$40.00

Cache write $/1M

$0.00

Cache read $/1M

$0.50

Est. cost · 10M tok · 96% cache hit$7.98

DeepSeek 2 models

DeepSeek-V4.1-Flash-All-Time

DeepSeek-V4.1-Flash-All-Time

deepseek
deepseek-v4.1-flash-all-time

Input $/1M

$1.00

Output $/1M

$4.00

Cache write $/1M

$0.00

Cache read $/1M

$0.02

Est. cost · 10M tok · 96% cache hit$0.71
DeepSeek-V4.1-Flash

DeepSeek-V4.1-Flash

deepseek
deepseek-v4.1-flash

Input $/1M

$1.00

Output $/1M

$4.00

Cache write $/1M

$0.00

Cache read $/1M

$0.02

Est. cost · 10M tok · 96% cache hit$0.71

智谱 2 models

GLM-5.3

GLM-5.3

glm
glm-5.3

Input $/1M

$8.00

Output $/1M

$28.00

Cache write $/1M

$0.00

Cache read $/1M

$2.00

Est. cost · 10M tok · 96% cache hit$23.17
GLM-5.2

GLM-5.2

glm
glm-5.2

Input $/1M

$8.00

Output $/1M

$28.00

Cache write $/1M

$0.00

Cache read $/1M

$2.00

Est. cost · 10M tok · 96% cache hit$23.17

FAQ

Tokens are the basic unit AI models use to process text — roughly a fragment of an English word or a Chinese character. Input and output are billed separately.

This page shows base model prices so you can quickly compare costs. The actual amount charged is determined by the backend at settlement time.

Consider the vendor, endpoint type, and input/output prices together. Complex tasks favor more capable models; simple tasks can use cheaper ones.

Model prices may change with upstream channels and platform strategy. This page stays as current as possible; settlement-time backend data is authoritative.

Ready to integrate?

Create an API key and integrate in minutes, or browse packages first.