y
最近用 Cherry Studio 统一接大模型和文生图,记录一套 OpenAI 兼容中转的配置,方便以后换模型不用改客户端。
## 1. 准备
- 对话中转:https://api.apixhm.com
- 文生图:https://image.apixhm.com
- 文档:https://doc.apixhm.com
在控制台创建 API Key(下文 YOUR_KEY)。
## 2. Cherry Studio 接 Yuan API
1. 打开 Cherry Studio → 设置 → 模型服务 / OpenAI 兼容
2. API Base URL:https://api.apixhm.com/v1
3. API Key:YOUR_KEY
4. 模型名按文档选择(如 gpt-4o-mini、claude 系列等,以控制台为准)
5. 新建对话发一句测试连通
## 3. Yuan Image 文生图
- 图像基址:https://image.apixhm.com
- 在支持 OpenAI 图像协议的客户端里把图像 Base URL 指过去,Key 同上
- 具体模型名与路径以 https://doc.apixhm.com 为准
## 4. 小结
一套 Key:聊天走 api.apixhm.com,生图走 image.apixhm.com;Cherry Studio 里切换模型即可。
有踩坑欢迎补充。
## 1. 准备
- 对话中转:https://api.apixhm.com
- 文生图:https://image.apixhm.com
- 文档:https://doc.apixhm.com
在控制台创建 API Key(下文 YOUR_KEY)。
## 2. Cherry Studio 接 Yuan API
1. 打开 Cherry Studio → 设置 → 模型服务 / OpenAI 兼容
2. API Base URL:https://api.apixhm.com/v1
3. API Key:YOUR_KEY
4. 模型名按文档选择(如 gpt-4o-mini、claude 系列等,以控制台为准)
5. 新建对话发一句测试连通
## 3. Yuan Image 文生图
- 图像基址:https://image.apixhm.com
- 在支持 OpenAI 图像协议的客户端里把图像 Base URL 指过去,Key 同上
- 具体模型名与路径以 https://doc.apixhm.com 为准
## 4. 小结
一套 Key:聊天走 api.apixhm.com,生图走 image.apixhm.com;Cherry Studio 里切换模型即可。
有踩坑欢迎补充。