Channel and billing highlights:Documentation Index
Fetch the complete documentation index at: https://docs.apiyi.com/llms.txt
Use this file to discover all available pages before exploring further.
- Default channel: AWS Claude (AWS Bedrock official) — high stability, strong cache hit rates.
- Backup channel: Claude Official (direct Anthropic API with official keys) — auto-failover when the AWS channel has issues.
- Both channels are pure official passthrough. Pay-as-you-go, no rate limiting, all-in cost ≈ 85% of list price (79%–86% range after stacking deposit bonuses).
We don’t do low-cost reverse-engineered access — only reliable, stable quality and service.
Get an API Key
Create or manage tokens in the dashboard:https://api.apiyi.com/token
- The default token works out of the box.
- If you create a new token under the ClaudeCode group, you get 5% off (95% of list).
- That group discount stacks with deposit bonuses of 10%–20%, bringing the all-in cost down to roughly 79%–86% of list (the ”≈ 85%” headline).
- No rate limiting, cheaper than the official site, easy to use.
API is billed per usage (not a monthly subscription) — fees are deducted in real time from your prepaid balance.
Endpoints
| Item | Value |
|---|---|
| Base URL | https://api.apiyi.com |
| Anthropic native endpoint | https://api.apiyi.com/v1/messages |
| OpenAI-compatible endpoint | https://api.apiyi.com/v1/chat/completions |
Available Models
These three are the latest in each family — recommended for direct use:| Family | Model | Best for |
|---|---|---|
| Opus | claude-opus-4-7 | Complex coding, deep reasoning |
| Sonnet | claude-sonnet-4-6 | General intelligence, daily code |
| Haiku | claude-haiku-4-5-20251001 | Fast responses, high concurrency |
Calling format: native vs OpenAI-compatible
We support both the Anthropic native format and the OpenAI-compatible format — but pick the right one for your case:✅ Strongly recommended: Anthropic native
Endpoint:
/v1/messagesIf you use Claude Code, Cline, Cursor, or any Claude-heavy client, you must use the native format.Only the native format properly triggers Prompt Cache (cached billing), which dramatically lowers cost for long context / repeated system prompts.⚙️ Universal: OpenAI-compatible
Endpoint:
/v1/chat/completionsIf your project is already on the OpenAI SDK and you don’t care about cache billing, you can switch to Claude with near-zero migration cost.Best for one-off scripts, light workloads, and legacy projects locked to the OpenAI SDK.Examples
Anthropic native format (recommended)
OpenAI-compatible format (for generic migrations)
A note on Opus pricing
Daily-use guidance:- Most scenarios: prefer
claude-sonnet-4-6— best price/performance. - Simple / high-volume tasks: use
claude-haiku-4-5-20251001— fast and cheap. - Hard coding / reasoning: escalate to
claude-opus-4-7.
Related links
- Get / manage tokens:
https://api.apiyi.com/token - Deposit & promotions:
https://api.apiyi.com - Claude Prompt Caching Guide