n8n 用 OpenAI 兼容节点接 Yuan API(对话+生图)
大家好,分享在 n8n 里用 OpenAI 兼容方式接多模型聊天,以及文生图。## 准备
- 文档:https://doc.apixhm.com
- 聊天 API:https://api.apixhm.com
- 文生图:https://image.apixhm.com
## n8n
Base URL:https://api.apixhm.com/v1
路径:/chat/completions
Header:Authorization: Bearer YOUR_KEY
示例:
{"model":"gpt-4o-mini","messages":[{"role":"user","content":"用三句话介绍 n8n"}]}
模型名以控制台/文档为准。
生图可选:POST https://image.apixhm.com/v1/images/generations
利益披露:作者使用并推广 Yuan API / Yuan Image。
页:
[1]