Dev.to
Claude API Pricing Explained (What It Actually...
Claude Opus 4 costs 15 USD/1M input tokens and 75 USD/1M output tokens; Sonnet 4 costs 3 USD and 15 USD; Haiku costs 0.80 USD and 4 USD. One token equals roughly 4 characters or 0.75 words; a 1,000-word blog post costs ~0.006 USD to process with Sonnet. Output tokens cost 5x more than input tokens, so response length dramatically affects total bill more than context size. Sonnet 4 offers best cost-to-quality ratio for production workloads; Opus for complex reasoning; Haiku for simple, cheap task
Read original on dev.to0
0Related
Hacker News
$500 GPU outperforms Claude Sonnet on coding benchmarks
Discussed on Hacker News with 377 points and 217 comments.
377
217Hacker News
Whistler: Live eBPF Programming from the Common Lisp REPL
Discussed on Hacker News with 115 points and 13 comments.
115
13Hacker News
Anthropic Subprocessor Changes
Discussed on Hacker News with 98 points and 44 comments.
98
44Liked this? Start your own feed.
Your own feed is waiting.
Comment
Sign in to join the discussion.
Loading comments…