sk-xxxxxxxxxxxxxxxxxxxx)https://n.lconai.com{
"nodes": [
{
"id": "start",
"name": "开始",
"nodeType": "start",
"properties": {
"input": {
"type": "string",
"title": "用户输入",
"defaultValue": "请输入你的需求...",
"description": "填写需要模型处理的内容(如提问、创作、分析等)"
}
}
},
{
"id": "http_request",
"name": "调用智创聚合API",
"nodeType": "http_request",
"properties": {
"method": "POST",
"url": "https://n.lconai.com/v1/chat/completions",
"headers": [
{
"key": "Content-Type",
"value": "application/json",
"required": true
},
{
"key": "Authorization",
"value": "Bearer sk-这里替换成你的智创聚合APIKey",
"required": true,
"description": "替换为真实的智创聚合API Key"
}
],
"bodyType": "json",
"body": "{\"model\":\"gpt-4o\",\"messages\":[{\"role\":\"user\",\"content\":\"{{start.input}}\"}],\"temperature\":0.7,\"max_tokens\":2048,\"top_p\":0.9}"
}
},
{
"id": "code",
"name": "解析响应结果",
"nodeType": "code",
"properties": {
"code": "// 统一解析不同模型的响应格式\nconst httpResp = $('http_request');\nif (httpResp.status !== 200) {\n return { answer: `调用失败(状态码:${httpResp.status}):${JSON.stringify(httpResp.data)}` };\n}\n\nconst respData = httpResp.data;\n// 适配 OpenAI 格式(GPT/千问/GLM/MiniMax/DeepSeek)\nif (respData.choices && respData.choices.length > 0) {\n return { answer: respData.choices[0].message?.content || '未获取到有效响应' };\n}\n// 适配 Claude Anthropic 格式\nelse if (respData.content && respData.content.length > 0) {\n return { answer: respData.content[0].text || '未获取到有效响应' };\n}\n// 适配 Gemini 专属格式\nelse if (respData.candidates && respData.candidates.length > 0) {\n const geminiContent = respData.candidates[0].content;\n if (geminiContent.parts && geminiContent.parts.length > 0) {\n return { answer: geminiContent.parts[0].text || '未获取到有效响应' };\n }\n}\n// 异常情况\nelse {\n return { answer: `响应格式异常:${JSON.stringify(respData)}` };\n}"
}
},
{
"id": "end",
"name": "结束",
"nodeType": "end",
"properties": {
"output": {
"answer": "{{code.answer}}",
"model": "{{http_request.body.model}}",
"description": "模型返回结果 + 所用模型标识"
}
}
}
],
"edges": [
{ "source": "start", "target": "http_request" },
{ "source": "http_request", "target": "code" },
{ "source": "code", "target": "end" }
],
"title": "智创聚合API-全模型通用工作流",
"description": "支持GPT/通义千问/GLM/MiniMax/DeepSeek/Gemini/Claude,一键切换模型"
}Authorization 字段,将值 Bearer sk-这里替换成你的智创聚合APIKey 中的 sk-xxx 部分,替换为你从智创聚合 API 官网获取的真实 Key;https://n.lconai.com/v1/chat/completionsmodel 字段):{
"model": "模型ID",
"messages": [{"role": "user", "content": "{{start.input}}"}],
"temperature": 0.7, // 0-1,值越高越具创造性
"max_tokens": 2048, // 最大输出长度
"top_p": 0.9 // 采样阈值,无需修改
}| 模型名称 | model 字段 | 备注 |
|---|---|---|
| GPT-4o | gpt-4o | 主流优选模型 |
| GPT-3.5 Turbo | gpt-3.5-turbo | 高效低成本模型 |
| 通义千问 Plus | qwen-plus | 阿里大模型,中文优化 |
| 通义千问 Max | qwen3-max | 千问高端版,长文本适配 |
| GLM-4.5 | glm-4.5 | 智谱大模型,推理强劲 |
| GLM-4.6 | glm-4.6 | 智谱升级款,多模态支持 |
| MiniMax(海螺) | MiniMax-LLM-Lite | 轻量化模型,响应快速 |
| DeepSeek v3.2 | deepseek-v3.2 | 代码/推理专项优化 |
https://n.lconai.com/v1/messages{
"model": "claude-sonnet-4-5-20250929", // 或 claude-opus-4-5-20250929
"messages": [{"role": "user", "content": "{{start.input}}"}],
"max_tokens": 2048,
"temperature": 0.7
}https://n.lconai.com/v1/models/gemini-3-pro-preview:generateContent{
"model": "gemini-3-pro-preview",
"contents": [
{
"role": "user",
"parts": [{"text": "{{start.input}}"}]
}
],
"generationConfig": {
"temperature": 0.7,
"maxOutputTokens": 2048
}
}model 字段与 URL 是否匹配(如 Gemini 必须用专属 URL);https://n.lconai.com;| 模型类型 | 接口 URL | Body 配置(直接复制替换) |
|---|---|---|
| 通义千问 Plus | https://n.lconai.com/v1/chat/completions | {"model":"qwen-plus","messages":[{"role":"user","content":"{{start.input}}"}],"temperature":0.7,"max_tokens":2048,"top_p":0.9} |
| GLM-4.5 | https://n.lconai.com/v1/chat/completions | {"model":"glm-4.5","messages":[{"role":"user","content":"{{start.input}}"}],"temperature":0.7,"max_tokens":2048,"top_p":0.9} |
| MiniMax | https://n.lconai.com/v1/chat/completions | {"model":"MiniMax-LLM-Lite","messages":[{"role":"user","content":"{{start.input}}"}],"temperature":0.7,"max_tokens":2048,"top_p":0.9} |
| Gemini 3 Pro | https://n.lconai.com/v1/models/gemini-3-pro-preview:generateContent | {"model":"gemini-3-pro-preview","contents":[{"role":"user","parts":[{"text":"{{start.input}}"}]}],"generationConfig":{"temperature":0.7,"maxOutputTokens":2048}} |
| Claude Sonnet | https://n.lconai.com/v1/messages | {"model":"claude-sonnet-4-5-20250929","messages":[{"role":"user","content":"{{start.input}}"}],"max_tokens":2048,"temperature":0.7} |
temperature、max_tokens 等参数输入,动态调整模型输出效果;