Create Token
API キー & コンソール管理
Create Token
Create a new API token
POST
Create Token
更新日: 2026-07-20
Overview
Create a new API token for calling AI model APIs.The
/api/token/* endpoints are mainly for Crazyrouter dashboard automation around API key management. They require a user access token plus the New-Api-User header, and are not the normal interface for sk-xxx model calls. Use https://crazyrouter.com as the base URL; https://api.crazyrouter.com is reserved for model APIs and returns 404 api_only_endpoint for management paths.Authentication
This endpoint requires user-side authentication:Request Parameters
Token name for easy identification
Initial quota in internal quota units. If set to 0, use it together with
unlimited_quotaWhether the token has unlimited quota
Expiration timestamp.
-1 means never expiresWhether to enable a model whitelist
Model restriction config as a string, usually a JSON string such as
["gpt-5.5","claude-opus-4-8"]IP whitelist string. You can pass a single IP or multiple IPs separated by newlines
Token group. It must be a group the current user is allowed to use