Create a new API token via API
"My New Token"-1 for never expires1738483200 (2025-02-02 00:00:00 UTC)500000 = $1 USDExample: 500000 (equivalent to $1)true: Unlimited quota, no restrictionsfalse: Limited quota, uses remain_quota valuefalsetrue: Enable model restrictions, only models in model_limits can be usedfalse: No model restrictionsfalsemodel_limits_enabled is trueExample: "gpt-4o,gpt-4o-mini,claude-3-5-sonnet""default"key field returned upon success is a 48-character random string. When using, add the sk- prefix for the complete format: sk-xxxxxxxx...| Error Message | Cause | Solution |
|---|---|---|
| 令牌名称过长 | Name exceeds 50 characters | Use a shorter token name |
| 生成令牌失败 | Internal system error | Retry later or contact support |
| Authentication failed | API Key is invalid or expired | Check if the API Key is correct |