GPT / OpenAI 兼容接 Yuan API + Yuan Image:本地客户端文生图分步

[复制链接]
查看61 | 回复0 | 5 天前 | 显示全部楼层 |阅读模式
悬赏1资源点 未解决
本人使用/推广 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;模型名以文档为准。

欢迎交流踩坑。

回复

使用道具 举报

3

主题

0

回帖

13

积分

初出茅庐

积分
13