GPT / OpenAI 兼容接 Yuan API + Yuan Image:本地客户端文生图分步
本人使用/推广 Yuan API / Yuan Image 中转服务(非官方广告)。文档:https://doc.apixhm.com
对话:https://api.apixhm.com
文生图:https://image.apixhm.com
分步:
1. 在 https://doc.apixhm.com 拿 API Key。
2. 客户端(Cherry Studio / 任意 OpenAI 兼容)Base URL 填 https://api.apixhm.com/v1 ,填入 Key。
3. 对话模型走 Yuan API。
4. 文生图把图像端点指到 https://image.apixhm.com (或文档所述路径),短示例:
```bash
curl https://image.apixhm.com/v1/images/generations \
-H "Authorization: Bearer YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"prompt":"一只戴墨镜的柴犬,赛博朋克","size":"1024x1024"}'
```
5. 常见问题:401 查 Key;模型名以文档为准。
欢迎交流踩坑。
页:
[1]