# Alibaba Cloud Token Plan (BYOK)

> Create an API key for Alibaba Cloud Token Plan and add it to AnyRouter.


# Alibaba Cloud Token Plan — Bring Your Own Key

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

1. Subscribe to Token Plan in the [Model Studio console](https://modelstudio.console.alibabacloud.com/ap-southeast-1/subscription/token-plan/personal) (Singapore region).
2. 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](https://anyrouter.dev/dashboard/byok), 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.

```bash
export ANTHROPIC_BASE_URL="https://anyrouter.dev/api"
export ANTHROPIC_AUTH_TOKEN="$ANYROUTER_API_KEY"
export ANTHROPIC_MODEL="qwen/qwen3.8-max"
claude
```

## Add it to AnyRouter

1. Open **[Dashboard → BYOK](https://anyrouter.dev/dashboard/byok)**, find **Alibaba Cloud Token Plan** under **Available** and click **Add key**.
2. Paste the key.
3. 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](https://modelstudio.console.alibabacloud.com/ap-southeast-1/subscription/token-plan/personal)



## Related

- [BYOK Provider Setup Guide](/docs/features/byok-providers.md)
- [Bring Your Own Key (BYOK)](/docs/features/byok.md)
