Claude Code API:
use Claude Code with one 88API key

88API speaks the native Anthropic protocol. Point ANTHROPIC_BASE_URL at 88API, add your token, and Claude Code runs straight from your terminal. Pay as you go, with several Claude groups to choose from.

Native Anthropic protocol Pay as you go Free trial credit on sign-up
Already have an account? Create a token in the console
Latest Claude model prices ¥ per million tokens
See all Claude model prices

Why run Claude Code on 88API

  • Native Anthropic protocol

    Set ANTHROPIC_BASE_URL and your token. Claude Code calls /v1/messages directly, no protocol-conversion plugin needed.

  • Several Claude groups

    Each model is offered in several groups with different channels and prices. Pick one that fits your budget; prices per group are in the table below.

  • Pay as you go

    You pay for what you use, no subscription plan. Trial credit is added automatically when you sign up, so you can test before topping up.

  • One-click import with CC Switch

    Manage several setups in CC Switch and import 88API in one click, without editing environment variables by hand.

Claude Code model prices

Every Anthropic model in every group, newest models first. Some groups, such as Claude Kiro, need extra model variables in Claude Code; see the setup guide.

Prices in CNY (¥) per million tokens; live prices are shown in the Model Square.

Claude model prices by group
Model Group Input Output Cache read
claude-opus-5-5Claude Kiro90% off list price¥2.8¥14¥0.14
Claude Max池 可外接80% off list price¥5.6¥28¥0.28
Claude 官转 可蒸馏70% off list price¥8.4¥42¥0.42
claude-sonnet-5-5Claude Kiro90% off list price¥1.4¥7¥0.14
Claude Max池 可外接80% off list price¥2.8¥14¥0.28
Claude 官转 可蒸馏70% off list price¥4.2¥21¥0.42
claude-haiku-5-5Long context above 100K tokens is priced separatelyClaude Max池 可外接80% off list price¥0.14¥0.7¥0.014
Claude 官转 可蒸馏70% off list price¥0.21¥1.05¥0.021
claude-fable-5-1Claude Max池 可外接80% off list price¥14¥70¥0.35
Claude 官转 可蒸馏70% off list price¥21¥105¥0.525
claude-fable-5Claude Max池 可外接80% off list price¥14¥70¥1.4
Claude 官转 可蒸馏70% off list price¥21¥105¥2.1
claude-opus-5Claude Kiro90% off list price¥3.5¥17.5¥0.35
Claude Max池 可外接80% off list price¥7¥35¥0.7
Claude 官转 可蒸馏70% off list price¥10.5¥52.5¥1.05
claude-sonnet-5Claude Kiro90% off list price¥1.4¥7¥0.14
Claude Max池 可外接80% off list price¥2.8¥14¥0.28
Claude 官转 可蒸馏70% off list price¥4.2¥21¥0.42
claude-opus-4-8Claude Kiro90% off list price¥3.5¥17.5¥0.35
Claude Max池 可外接80% off list price¥7¥35¥0.7
Claude 官转 可蒸馏70% off list price¥10.5¥52.5¥1.05
claude-opus-4-7Claude Kiro90% off list price¥3.5¥17.5¥0.35
Claude Max池 可外接80% off list price¥7¥35¥0.7
Claude 官转 可蒸馏70% off list price¥10.5¥52.5¥1.05
claude-opus-4-6Claude 反重力93% off list price¥2.45¥12.25¥0.245
Claude Kiro90% off list price¥3.5¥17.5¥0.35
Claude Max池 可外接80% off list price¥7¥35¥0.7
Claude 官转 可蒸馏70% off list price¥10.5¥52.5¥1.05
claude-sonnet-4-6Claude 反重力93% off list price¥1.47¥7.35¥0.147
Claude Kiro90% off list price¥2.1¥10.5¥0.21
Claude Max池 可外接80% off list price¥4.2¥21¥0.42
Claude 官转 可蒸馏70% off list price¥6.3¥31.5¥0.63
claude-haiku-4-5Claude Max池 可外接80% off list price¥1.4¥7¥0.14
Claude 官转 可蒸馏70% off list price¥2.1¥10.5¥0.21

Minimal setup

After installing Claude Code, set two environment variables and start it. Create your token in the console.

macOS / Linux
export ANTHROPIC_BASE_URL=https://api.88api.ai
export ANTHROPIC_AUTH_TOKEN=sk-your-token
claude
Windows PowerShell
$env:ANTHROPIC_BASE_URL="https://api.88api.ai"
$env:ANTHROPIC_AUTH_TOKEN="sk-your-token"
claude

Use https://api.88api.ai as the address, without /v1 at the end.

Full setup guides

FAQ

Run Claude Code on 88API today

Trial credit is added automatically when you sign up. Create a token, set two environment variables and you are ready.