本人在用/推广 Yuan API / Yuan Image 中转(非官方广告)。
文档:https://doc.apixhm.com 对话 Base:https://api.apixhm.com 生图 Base:https://image.apixhm.com
步骤: 1. 打开文档站注册/登录并创建 API Key(勿把 Key 发到论坛)。 2. 在 Cherry Studio(或任意 OpenAI 兼容客户端)填: - Base URL:https://api.apixhm.com/v1 - API Key:你的 Key - 模型:按文档选 Claude / GPT 等 3. 对话自检:
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":"ping"}]}'
- 生图自检(路径以文档为准):
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 。欢迎交流踩坑。