Get API key

Use Mimxo AI as the API provider for Claude Code

Claude Code speaks the Anthropic Messages API. Mimxo AI serves it natively at /v1/messages, including streaming, so you only set two environment variables.

1. Create a key

Sign up at mimxo.com, top up and create a key.

2. Point Claude Code at Mimxo AI

export ANTHROPIC_BASE_URL="https://mimxo.com"
export ANTHROPIC_AUTH_TOKEN="sk-your-mimxo-key"
export ANTHROPIC_MODEL="claude-sonnet-5"
export ANTHROPIC_SMALL_FAST_MODEL="claude-sonnet-5"
export ANTHROPIC_DEFAULT_HAIKU_MODEL="claude-sonnet-5"
claude

Or put the same keys in ~/.claude/settings.json under "env". Use claude-opus-5 as ANTHROPIC_MODEL for harder work.

3. Check it

curl https://mimxo.com/v1/messages \
  -H "x-api-key: $ANTHROPIC_AUTH_TOKEN" -H "anthropic-version: 2023-06-01" \
  -H "Content-Type: application/json" \
  -d '{"model":"claude-sonnet-5","max_tokens":64,"messages":[{"role":"user","content":"hi"}]}'

Recommended models

ModelProviderInput / 1MOutput / 1MCache read / 1MList input / output
qwen3.7-maxAlibaba Qwen$0.4425$1.327$0.0885$1.475 / $4.425
claude-opus-5Anthropic$1.5$7.5$0.15$5 / $25
claude-sonnet-5Anthropic$0.6$3$0.06$2 / $10
deepseek-v4.1-flashDeepSeek$0.009$0.15$0.00769$0.03 / $0.5
gemini-3.1-pro-previewGoogle$0.6$3.6$0.06$2 / $12
kimi-k2.7-codeMoonshot Kimi$0.2014$1.005$0.054$0.6712 / $3.35
gpt-6.1-solOpenAI$0.6$3$0.03$2 / $10
glm-5.3Zhipu GLM$0.42$1.32$0.042$1.4 / $4.4

Prices in USD per 1M tokens, read live from /api/pricing. "List" is the reference list price; Mimxo AI bills the first columns.

FAQ

Which Claude models are available?

claude-opus-5, claude-sonnet-5 and claude-fable-5. See the Claude API page for prices.

Can Claude Code use non-Claude models?

Claude Code is tuned for Claude models; for GPT, Gemini or DeepSeek use OpenCode, Codex or Cursor with the OpenAI-compatible endpoint instead.

How much does it cost?

Mimxo AI bills every model at 0.3× list price per 1M tokens. Top-ups start at $1.

Other tools: OpenCode · OpenAI Codex CLI · Cursor · OpenClaw · Aider · Cline / Roo Code