Alibaba Cloud Token Plan (BYOK)
Create an API key for Alibaba Cloud Token Plan and add it to AnyRouter.
Use your Alibaba Cloud Model Studio Token Plan, a flat monthly plan for Qwen models, through AnyRouter. AnyRouter adds no markup and charges no credits for these requests.
Get your API key
- Subscribe to Token Plan in the Model Studio console (Singapore region).
- On the Token Plan page, create an API key and copy it. Token Plan keys start with
sk-sp-.
Gotchas
Use the Token Plan key, not a pay-as-you-go or Coding Plan key; each plan has its own key and endpoint. Alibaba allows Token Plan only for interactive use in coding and agent tools such as Claude Code, by one person. Do not use it for automated services, batch scripts or background jobs. The plan is Singapore (ap-southeast-1) only for now. QwenCloud sells the same Token Plan; if you bought it on qwencloud.com, add your key under QwenCloud Token Plan instead. A key saved under one name is sent only to that site's endpoint.
Models
These models route to your Token Plan key:
| Model on AnyRouter | Token Plan model | Input |
|---|---|---|
qwen/qwen4-max | qwen4-max-preview | Text, image |
qwen/qwen3.8-max | qwen3.8-max | Text, image |
qwen/qwen3.8-flash | qwen3.8-flash | Text, image |
qwen/qwen3.7-max | qwen3.7-max | Text |
qwen/qwen3.7-plus | qwen3.7-plus | Text, image |
qwen/qwen3.6-flash | qwen3.6-flash | Text, image |
Token Plan's auto model is not listed. It picks a different model for each request, so AnyRouter cannot show its price, context or features.
These models also have other routes; to send their requests to your plan first, set the key's routing to Prefer this key on the BYOK page, or Use only this key to use only your plan.
Use it from Claude Code
When a request goes to your Token Plan, AnyRouter sends Claude Code's Messages request to Token Plan's Anthropic-compatible endpoint unchanged.
export ANTHROPIC_BASE_URL="https://anyrouter.dev/api"
export ANTHROPIC_AUTH_TOKEN="$ANYROUTER_API_KEY"
export ANTHROPIC_MODEL="qwen/qwen3.8-max"
claudeAdd it to AnyRouter
- Open Dashboard → BYOK, find Alibaba Cloud Token Plan under Available and click Add key.
- Paste the key.
- Click Save. AnyRouter validates the key against Alibaba Cloud Token Plan first; on failure the dialog shows the upstream error and nothing is saved.
- Create key: Alibaba Cloud Token Plan console
AnyRouter routes requests to third-party models. Models and outputs are provided as is, with no warranty; you use them at your own risk. Disclaimer