Save on AI Coding Costs
Use Claude Code the smart way — master token optimization and choose the most cost-effective plan
How Token Pricing Works
Understanding tokens is the first step to optimizing costs
| Model | Input Tokens | Output Tokens | Context Window |
|---|---|---|---|
| Claude Opus 4 | $15 / 1M | $75 / 1M | 200K |
| Claude Sonnet 4 | $3 / 1M | $15 / 1M | 200K |
| Claude Haiku 3.5 | $0.80 / 1M | $4 / 1M | 200K |
5 Money-Saving Tips
These tips apply to all Claude Code users, whether using official API or QCode.cc subscription
/compact to Compress Context
Use /compact during long conversations — Claude summarizes history, dramatically reducing context tokens sent with each message
Use /clear Promptly
Clear context with /clear after completing a task — start fresh without carrying irrelevant history
Keep CLAUDE.md Lean
CLAUDE.md content is sent every conversation. Keep it under 500 lines, remove outdated info, prioritize essentials
Choose the Right Model
Sonnet for simple tasks (fast & cheap), Opus for complex work (powerful but costly). Switch anytime with --model or /model
Batch with /batch
Process multiple files at once with /batch to avoid repeated context overhead from separate conversations
QCode.cc vs Direct API
Cost comparison: QCode.cc developer platform vs direct Anthropic API connection
| Feature | QCode.cc | Direct API |
|---|---|---|
| Billing model | Personal Plans are bought monthly with a daily cap; Pay-as-you-go Packs are a one-time lump sum | Pay per token |
| Cost predictability | Fixed monthly fee for Personal Plans; Pay-as-you-go Packs are bought as one fixed quota | Varies with usage |
| Payment | Alipay / WeChat | Foreign credit card only |
| Accessibility | China-optimized endpoints | VPN required |
| Support | Online chat support + email hi@qcode.cc | Official English support |
No monthly plan? Pay-as-you-go Packs from $4
Buy quota once and use it within 7 days, no subscription. Billed per token; per-model rates are listed on /models.
Small Pack
$4
$30 quota · Valid for 7 days
Medium Pack
$9
$80 quota · Valid for 7 days
Large Pack
$18
$180 quota · Valid for 7 days
XL Pack
$30
$330 quota · Valid for 7 days
- Buying more: the new quota is added to what is left, and the expiry date becomes the later of the current expiry date and today plus the pack's days.
- You can't buy packs while you have an active personal plan; if the plan's quota isn't enough, buy a booster pack.
- 5 concurrent requests and the same models as personal plans.
Model Selection Strategy
Choosing the right model for each scenario is the most effective cost-saving approach
Claude Opus 4.8
Maximum reasoning for the most complex tasks
Claude Sonnet 4.6
Best balance of speed and performance
Claude Haiku 4.5
Ultra-fast response for lightweight tasks
Monitor Your Usage
QCode.cc Dashboard provides real-time token consumption monitoring
Usage Dashboard
Real-time daily/weekly/monthly token and cost trends
Smart Alerts
Automatic notifications when balance falls below threshold
Trend Analysis
Historical usage charts by model to find optimization opportunities
Data Export
One-click CSV export for expense reporting and cost accounting
Frequently Asked Questions
What is a Token, and how does it relate to messages?
Tokens are the smallest unit AI processes. ~1 English word = 1-2 tokens. QCode.cc subscriptions are limited by daily spend (USD), not token count directly.
How does the cost of QCode.cc compare with using the official API directly?
It depends on your daily usage and the models you use. QCode.cc Personal Plans are paid monthly and come with a daily limit; Pay-as-you-go Packs give you one lump sum that you use up within 7 days. Usage is billed per token (each model’s unit price is on /models) and deducted from that day’s limit or the pack’s total quota, so you can estimate it against the daily limits on /pricing and the unit prices on /models.
Does unused quota expire when the subscription ends?
Yes. The daily quota resets at 00:00 Beijing time; unused quota does not roll over. Booster packs reset separately at 2am (per /pricing, 2026-09-21). Monthly plans expire without balance transfer.
Which Claude Code model is most cost-effective?
Haiku 4.5 is cheapest ($1/$5 per MTok), but Claude Code defaults to Sonnet 5. Use Sonnet for complex tasks, Haiku for simple ones, avoid Opus when Sonnet suffices.
How do I switch models in Claude Code?
Type /model during a session to switch in real-time. Set default in ~/.claude.json or use --model flag at startup.
Real Savings Examples
Cost comparison in real user scenarios
Official API ~$30/mo; QCode.cc Starter ¥63 (~$9)
Official API ~$100/mo; QCode.cc Basic ¥375 (~$54)
Official API ~$400/mo; QCode.cc Standard ¥520 (~$74)
Enterprise Cost Control
QCode.cc provides comprehensive cost management tools for teams
Team Quota Management
Assign independent API keys and quotas per member or project
Budget Alerts
Set monthly caps with automatic notifications to prevent overspend
Usage Analytics
See which team members use which models and how much quota
QCode also powers OpenAI Codex / GPT-5.6
Your QCode quota works across Claude Code and OpenAI Codex CLI — one shared balance, zero duplicate spend.
Start Saving Now
Choose a QCode.cc Personal Plan or Pay-as-you-go Packs; billed per token, with per-model rates listed on /models
Create a QCode account
One key across Claude, GPT and Chinese models, billed per token — live rates on /models.