Aiapi-doc/guide/create-key.md
2026-05-13 17:03:56 +08:00

46 lines
1.2 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 创建专属 Key
注册登录后,点击创建专属 Key。
## 创建步骤
1. 登录 OneinAI 平台
2. 访问"[令牌管理](<https://api.oneinai.com/console/token>)"
3. 点击"添加令牌"按钮
4. 创建需要使用的令牌,不要选择用户分组,请根据[监测站](<https://status.ikuncode.cc/>)的模型状态和令牌说明、倍率综合选择适合您的分组。
5. 保存并复制 Key
💡 小提示
**模型限制列表** 留空即可,不需要配置。除非您看懂了它的作用。
## 安全建议
🔐 安全提醒
* **不要** 将 Key 分享给他人
* **不要** 将 Key 提交到代码仓库
* **不要** 在公开场合展示 Key
* 询问配置是否正确时给Key打码
* 使用环境变量或配置文件存储 Key
* 定期更换 Key 提高安全性
## 保存 Key
创建成功后,请立即保存好您的 Key
bash
# 示例 Key请替换为您的实际 Key
sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
1
2
## 下一步
* [修改令牌设置](</guide/modify-token>) \- 调整令牌参数
* [配置环境变量](</deploy/claude-code#配置环境变量>) \- 在工具中使用 Key
* [充值](</guide/recharge>) \- 确保账户有足够余额