Key Advantages
Immediate Availability
AWS Bedrock + Direct API dual channels ensure new models are available on day one
Dual Format Support
Supports both OpenAI-compatible and Anthropic native formats for flexible integration
Claude Code Compatible
Fully supports Claude Code desktop application with simple configuration
Reliable Dual Routing
AWS + Direct API redundancy ensures service stability and availability
Available Models
API易 supports the complete Claude model family, including the latest Opus 4.5:| Model Series | Model Name | Recommended Use Case | Price (Input/Output per M tokens) |
|---|---|---|---|
| Opus 4.5 | claude-opus-4-5-20251101 | Complex coding, deep reasoning | $5 / $25 |
| Sonnet 4.5 | claude-sonnet-4-5-20250929 | General intelligence, code generation | $3 / $15 |
| Haiku 4.5 | claude-haiku-4-5-20251001 | Fast responses, high concurrency | $1 / $5 |
| Opus 4.1 | claude-opus-4-1-250806 | Advanced tasks (legacy) | $15 / $75 |
We recommend using the latest 4.5 series models for better performance at lower prices. Opus 4.5 leads SWE-bench (80.9%) at just 1/3 the price of 4.1.
OpenAI-Compatible Format
API易 supports standard OpenAI SDK calls to Claude models. Simply modify thebase_url and model parameters.
Python Example
Node.js Example
cURL Example
Anthropic Native Format
API易 fully supports the official Anthropic SDK with the native/messages endpoint, requiring no conversion.
Python Native SDK
Streaming Response
Vision Understanding (Multimodal)
Claude supports image input, ideal for UI analysis and chart interpretation:Claude Code Desktop Configuration
Claude Code is Anthropic’s official AI coding assistant desktop application. API易 fully supports using Claude Code.Configuration Steps
-
Open Claude Code Settings
- Click the gear icon ⚙️ in the top right
- Select “Settings”
-
Configure API Key
- Enter your API易 key in the “API Key” field
- Key format:
sk-xxxxxxxxxxxxxxxx
-
Configure Base URL
- Enter in the “Custom API Endpoint” field:
- Enter in the “Custom API Endpoint” field:
-
Select Model
- Choose from the “Model” dropdown:
claude-opus-4-5-20251101(strongest coding capability)claude-sonnet-4-5-20250929(balanced performance and cost)claude-haiku-4-5-20251001(fast response)
- Choose from the “Model” dropdown:
-
Start Using
- Click “Save” to save the configuration
- Select code in your editor, right-click to invoke Claude Code
- Enjoy the top-tier AI coding assistant!
Configuration Example (JSON)
For manual configuration file editing, use this format:Claude Code uses OpenAI-compatible format, so the base URL is
https://api.apiyi.com/v1.Reasoning Depth Control (Opus 4.5 Exclusive)
Claude Opus 4.5 introduces the neweffort parameter to adjust reasoning depth:
| Mode | Description | Use Case | Token Consumption |
|---|---|---|---|
| low | Fast response, shallow reasoning | Simple Q&A, quick prototyping | Low |
| medium | Balanced quality and speed (default) | Most coding tasks | Medium (76% less than high) |
| high | Deep reasoning, highest quality | Complex architecture design, difficult analysis | High |
Setting effort in OpenAI Format
Setting effort in Anthropic Native Format
Best Practices
1. Model Selection Guide
- Complex coding tasks: Use
claude-opus-4-5-20251101withhighormediummode - Daily code generation: Use
claude-sonnet-4-5-20250929for best value - Quick Q&A/High concurrency: Use
claude-haiku-4-5-20251001for speed and low cost - Multimodal tasks: Prefer Opus or Sonnet for stronger vision understanding
2. Cost Optimization Tips
- Prefer medium mode: Opus 4.5’s medium mode produces quality close to Sonnet but uses only 24% of the tokens
- Deposit bonuses: Get up to 20% bonus credits when depositing on API易, effectively reducing costs to 80%
- Use caching wisely: Enable prompt caching for repeated prompts or contexts to save costs
- Downgrade when appropriate: Use Haiku or Sonnet for simple tasks, save Opus for complex ones
3. Prompt Optimization
Claude models respond better to clear, structured prompts:4. Long Context Usage
Claude Opus 4.5 supports 200K token context, suitable for codebase-level analysis:Technical Specifications Comparison
| Parameter | Opus 4.5 | Sonnet 4.5 | Haiku 4.5 |
|---|---|---|---|
| Context Length | 200,000 tokens | 200,000 tokens | 200,000 tokens |
| Max Output | 64,000 tokens | 8,192 tokens | 8,192 tokens |
| Knowledge Cutoff | March 2025 | October 2024 | October 2024 |
| Multimodal | ✅ Image input | ✅ Image input | ✅ Image input |
| Reasoning Control | ✅ effort parameter | ❌ | ❌ |
| SWE-bench | 80.9% | 77.2% | 73.3% |
FAQ
How do I use API易 with Claude Code?
Simply configure in Claude Code settings:- Base URL:
https://api.apiyi.com - API Key: Your API易 key
- Model:
claude-opus-4-5-20251101or other Claude models
What’s the difference between OpenAI format and Anthropic native format?
- OpenAI format: Uses
/v1/chat/completionsendpoint, compatible with OpenAI SDK - Anthropic format: Uses
/v1/messagesendpoint, supports all Anthropic SDK features - Recommendation: Use OpenAI format for Claude Code or OpenAI SDK; use native format for Anthropic-specific features (like tool use)
How does the effort parameter affect performance and cost?
- high mode: Maximum reasoning depth, highest output quality, but highest token consumption (about 3-4x of medium)
- medium mode: Balanced quality and cost, output quality close to Sonnet, token consumption only 24% of high
- low mode: Fast response, suitable for simple tasks, lowest token consumption
What are API易’s dual channels?
API易 connects to Claude models through AWS Bedrock and direct Anthropic API:- AWS Bedrock: High stability, low latency, ideal for enterprise applications
- Direct API: First access to new models, full feature support
- Auto-switching: System intelligently selects the optimal route to ensure service availability
How do I get an API易 key?
Visit the API易 website (apiyi.com) to register an account. After depositing, you can get your API key from the console. New users receive bonus credits upon registration, and deposits get up to 20% bonus.
Related Resources
- Claude Opus 4.5 Launch Announcement
- OpenAI SDK Usage Guide
- Multimodal Vision Understanding
- Anthropic Official Documentation:
docs.anthropic.com
API易 offers the latest Anthropic models immediately upon release, supporting both OpenAI and Anthropic formats, fully compatible with Claude Code. Register now to experience!