Cherry Studio 接 Yuan API + Yuan Image:聊天和文生图一条龙
在 Cherry Studio 里把对话接到 Yuan API,文生图接到 Yuan Image,一套配置两用。准备:
- 对话 API:https://api.apixhm.com
- 生图:https://image.apixhm.com
- 文档:https://doc.apixhm.com
步骤:
① Cherry Studio 设置里新建 OpenAI 兼容 Provider,API Host 填 https://api.apixhm.com ,Key 用自己的
② 选 Claude/GPT 兼容模型试对话
③ 生图走 https://image.apixhm.com (路径以文档为准)
对话示例:
curl https://api.apixhm.com/v1/chat/completions \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"gpt-4o-mini","messages":[{"role":"user","content":"你好"}]}'
生图示例:
curl https://image.apixhm.com/v1/images/generations \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"一只橘猫坐在窗台上看雨","size":"1024x1024"}'
细节见 https://doc.apixhm.com 。欢迎回帖交流。
页:
[1]