Claude Code Integration Overview
Why Use Chuizi.AI with Claude Code
No More Rate Limits
Direct provider APIs can interrupt coding sessions with provider-specific limits or capacity events. Chuizi.AI uses managed capacity, health checks, and routing controls to reduce those interruptions while preserving fair-use and key-level limits.
Transparent Pricing
Chuizi.AI charges upstream cost x 1.05 with no hidden fees. Every request's cost is visible in real time on your dashboard. Compared to using Anthropic directly, the overhead is minimal, and you gain better infrastructure in return.
Automatic Prompt Caching
The Chuizi.AI gateway automatically injects cache_control markers for eligible requests. When your system prompt meets the minimum length threshold, subsequent requests can see up to 90% savings on input tokens. Claude Code's long-context conversations benefit significantly from this.
Multi-Model Access
Beyond the full Claude model lineup, you can access OpenAI, Google, DeepSeek, and other providers through Chuizi.AI's /v1 endpoint. Manage all your AI spending under one account.
How It Works
The architecture is straightforward:
Your Terminal (Claude Code)
↓ Set ANTHROPIC_BASE_URL
api.chuizi.ai/anthropic
↓ Native Anthropic protocol passthrough
Upstream Provider (with automatic failover)
↓ Returns response
api.chuizi.ai → Extract usage → Bill
↓
Your Terminal (receives response)Chuizi.AI uses native Anthropic protocol passthrough with no format conversion. The request body is forwarded to the upstream provider as-is, and the response comes back unchanged. The only difference is the authentication key swap and usage extraction for billing.
Supported Models
Through the /anthropic endpoint, you can use all Claude models:
| Model | Input Price | Output Price | Best For |
|---|---|---|---|
claude-opus-4-6 | $15 / 1M tokens | $75 / 1M tokens | Most capable, complex architecture |
claude-sonnet-4-6 | $3 / 1M tokens | $15 / 1M tokens | Daily coding, best value |
claude-haiku-4-5 | $1 / 1M tokens | $5 / 1M tokens | Fast tasks, code completion |
These are Anthropic's upstream prices. Chuizi.AI charges upstream price x 1.05.
To use OpenAI, Google Gemini, or other provider models, connect through the /v1 endpoint using the OpenAI-compatible protocol.
Quick Start
Three steps to get started:
- Sign up at app.chuizi.ai and create an API key
- Set your environment variables
- Run
claude
For detailed instructions, see the Installation Guide and Configuration Guide.
Next Steps
- Install Claude Code - Installation and verification
- Configuration - Set up environment variables
- Model Selection - Choose the right model
- Troubleshooting - When things go wrong