Alibaba Token Plan
subscription
Getting credentials
plan-key
api_key via header (header Authorization: Bearer)
Key prefix: sk-sp-
Environment: BAILIAN_TOKEN_PLAN_API_KEY
Subscribe in Model Studio (Singapore region); plan keys only work on token-plan endpoints. Env var name not officially documented — verify.
Endpoints
| ID | URL | Protocol | Auth |
|---|---|---|---|
| compatible-mode | https://token-plan.ap-southeast-1.maas.aliyuncs.com/compatible-mode/v1/chat/completions | openai-chat | any |
| anthropic | https://token-plan.ap-southeast-1.maas.aliyuncs.com/apps/anthropic | anthropic-messages | any |
API surfaces
textstreaming
Plan
- Price
- $6 / monthly
- Quota
- Personal: Lite $6 (700 credits/5h, 2500/7d), Standard $20 (3000/10k), Pro $70 (12k/40k). Team: Standard $30/seat (25k credits), Pro $100/seat (100k), Max $200/seat (250k), shared packs $700/625k.
- Notes
- Sliding 5-hour + 7-day windows, no monthly reset. sk-sp- keys are NOT interchangeable with Coding Plan keys (shared prefix, different product). Interactive-tool use only (Claude Code, Cursor, Qwen Code, OpenClaw); scripts/backends banned on Personal.
- Docs
- https://www.alibabacloud.com/help/en/model-studio/token-plan-personal-overview
Quirks
- China base: https://token-plan.cn-beijing.maas.aliyuncs.com (same paths). Model allowlist (exact strings): qwen3.8-max-preview (10x credit discount, night pricing 22:00-08:00 UTC+8), qwen3.7-max, qwen3.7-plus, qwen3.6-flash, glm-5.2, deepseek-v4-pro, wan2.7-image(-pro), happyhorse-1.1 video models; Team edition adds Kimi k2.7-code/k2.6/k2.5, GLM 5.1/5, MiniMax-M2.5, qwen3.6-plus/flash. (docs)
- Team Edition: seat = one member + one auto-generated key; deduction order seat quota then shared packs then suspension; TPS/TPM limits at primary-account level; RAM policies AliyunTokenPlanFullAccess gate purchase. (docs)
Models offered
| Model | Wire ID | Endpoint | Status | Reasoning |
|---|---|---|---|---|
| deepseek/deepseek-v4-pro | deepseek-v4-pro | compatible-mode | ga | toggle · default on · returns reasoning_content · round-trips reasoning_content |
| moonshot/kimi-k2-7-code | kimi-k2.7-code | compatible-mode | ga | toggle · default on · returns reasoning_content · round-trips reasoning_content |
| zai/glm-5-2 | glm-5.2 | compatible-mode | ga | toggle · default on · returns reasoning_content · round-trips reasoning_content |