Claude Code API

Get Claude Code API access, run it on any model

One Messages-compatible endpoint lets Claude Code call Kimi, Qwen, GLM, Xiaomi MiMo, DeepSeek, and Claude. Pay online, get instant access, keep quota that never expires.

Messages-compatible endpointRun Claude Code on low-cost modelsInstant activationQuota never expires
Why this gateway

Claude Code, without paying full Claude prices

Lower cost per token

Route Claude Code to Kimi, Qwen, GLM, or Xiaomi MiMo and cut token cost while keeping the same workflow.

One key, many models

Switch the model with a single env var. No new account, no new SDK, no client changes.

Drop-in Messages endpoint

Claude Code speaks the Anthropic Messages format. Point it at our endpoint and it just works.

Get access or top up online

Self-service checkout activates access instantly. Add quota anytime; unused quota does not expire.

Setup

Connect Claude Code in three steps

Get access, set three environment variables, and run Claude Code. The model can be any model the gateway supports.

  1. 1 · Get Claude Code access

    Choose a package on the access page, pay online, and receive your key by email instantly.

  2. 2 · Set environment variables

    Point Claude Code at the Messages-compatible endpoint and paste your key. Pick any supported model.

    export ANTHROPIC_BASE_URL=https://api.weeanno.example
    export ANTHROPIC_AUTH_TOKEN=sk-your-key
    export ANTHROPIC_MODEL=claude-sonnet-4-6
  3. 3 · Run Claude Code

    Start Claude Code as usual. To switch models, change ANTHROPIC_MODEL to Kimi, Qwen, GLM, or Xiaomi MiMo.

    claude

If a client asks for a full endpoint instead of a Base URL, use https://api.weeanno.example/v1/messages.

Model routing

Models you can run inside Claude Code

Set ANTHROPIC_MODEL to any of these. See the pricing page for the full, current model list and multipliers.

ClaudeDefault, best Claude Code compatibility
claude-sonnet-4-6
KimiLong context, low cost
kimi-k2.6
QwenStrong open-ecosystem coding
qwen3.7-max
GLMReasoning and tool use
glm-5.1
Xiaomi MiMoEfficient lightweight model
mimo-v2.5-pro
DeepSeekStrong reasoning value
deepseek-v4-pro

See full pricing and model list

FAQ

Claude Code API questions

How do I get Claude Code API access?

Open the access page, choose a package, and pay online. The key is delivered by email instantly and works with Claude Code right away.

Can Claude Code run on Kimi, Qwen, GLM, or Xiaomi MiMo?

Yes. The gateway exposes Kimi API, Qwen API, GLM API, and Xiaomi MiMo API behind one Messages-compatible endpoint. Set ANTHROPIC_MODEL to the model you want; no other changes are needed.

What Base URL should Claude Code use?

Set ANTHROPIC_BASE_URL to https://api.weeanno.example. Claude Code appends the Messages path automatically, so the full endpoint becomes https://api.weeanno.example/v1/messages.

Why does the default model show claude-sonnet-4-6?

It matches Claude Code's default call shape so the connection works on the first try. After connecting, switch ANTHROPIC_MODEL to any supported model.

Does quota expire?

No. Most models are billed by actual token usage, and purchased quota does not expire. You can top up an existing key anytime.

Ready to run Claude Code for less?

Get access now, or top up a key you already use.