n8n-nodes-qiniu-ai 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 bowenQT
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,264 @@
1
+ # n8n-nodes-qiniu-ai
2
+
3
+ [English](#english) | [中文](#中文)
4
+
5
+ ---
6
+
7
+ <a name="english"></a>
8
+ ## 🇺🇸 English
9
+
10
+ [![npm version](https://img.shields.io/npm/v/n8n-nodes-qiniu-ai.svg)](https://www.npmjs.com/package/n8n-nodes-qiniu-ai)
11
+ [![n8n](https://img.shields.io/badge/n8n-community%20node-brightgreen)](https://n8n.io)
12
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
13
+
14
+ > n8n community node for [Qiniu Cloud AI SDK](https://github.com/bowenQT/qiniu-ai-sdk) - Integrate full-modal AI capabilities into your n8n workflows.
15
+
16
+ ### ✨ Features
17
+
18
+ | Resource | Operations | Description |
19
+ |----------|-----------|-------------|
20
+ | **Chat** | Complete | Multi-model chat completion (Qwen, Claude, Gemini, GPT, DeepSeek, etc.) |
21
+ | **Image** | Generate, Edit | AI image generation and editing with multiple models |
22
+ | **Video** | Generate, Get Status | Video generation with Kling, Veo, Sora models |
23
+ | **Audio** | Text-to-Speech, Speech-to-Text | TTS and ASR capabilities |
24
+ | **Agent** | Execute | AI agent with tool calling and memory support |
25
+ | **Tools** | Web Search, OCR | Utility tools for search and text extraction |
26
+
27
+ ### 📦 Installation
28
+
29
+ #### Community Node (Recommended)
30
+
31
+ 1. Go to **Settings** > **Community Nodes**
32
+ 2. Click **Install**
33
+ 3. Enter `n8n-nodes-qiniu-ai` and click **Install**
34
+
35
+ #### Manual Installation
36
+
37
+ ```bash
38
+ # In your n8n custom nodes directory
39
+ npm install n8n-nodes-qiniu-ai
40
+ ```
41
+
42
+ ### 🔧 Configuration
43
+
44
+ 1. Create credentials in n8n:
45
+ - Go to **Credentials** > **New**
46
+ - Search for **Qiniu AI API**
47
+ - Enter your API Key (obtain from [Qiniu Cloud Console](https://portal.qiniu.com))
48
+
49
+ 2. (Optional) Custom Base URL for self-hosted deployments
50
+
51
+ ### 📖 Usage Examples
52
+
53
+ #### Chat Completion
54
+
55
+ ```
56
+ Resource: Chat
57
+ Operation: Complete
58
+ Model: claude-4.5-sonnet
59
+ Messages: [{"role": "user", "content": "Hello!"}]
60
+ ```
61
+
62
+ #### Image Generation
63
+
64
+ ```
65
+ Resource: Image
66
+ Operation: Generate
67
+ Model: kling-v2-1
68
+ Prompt: "A beautiful sunset over mountains"
69
+ Wait for Completion: true
70
+ ```
71
+
72
+ #### Video Generation
73
+
74
+ ```
75
+ Resource: Video
76
+ Operation: Generate
77
+ Model: kling-video-o1
78
+ Prompt: "A cat playing with a ball"
79
+ Aspect Ratio: 16:9
80
+ ```
81
+
82
+ #### Image → Video Workflow
83
+
84
+ 1. **Image Node**: Generate an image
85
+ 2. **Video Node**:
86
+ - Set `First Frame Binary Property` to `data`
87
+ - The image from the previous node will be used as the first frame
88
+
89
+ ### 🎯 Supported Models
90
+
91
+ <details>
92
+ <summary><b>Chat Models</b></summary>
93
+
94
+ - Qwen: qwen3-235b-a22b, qwen3-max, qwen3-32b, qwen-turbo
95
+ - Claude: claude-4.5-sonnet, claude-4.5-opus, claude-4.0-sonnet, claude-3.7-sonnet
96
+ - Gemini: gemini-3.0-pro-preview, gemini-2.5-flash, gemini-2.5-pro
97
+ - DeepSeek: deepseek-r1, deepseek-v3, deepseek-v3.1
98
+ - GPT: openai/gpt-5, openai/gpt-5.2
99
+ - Others: doubao-seed-1.6, glm-4.5, kimi-k2, minimax-m2
100
+ </details>
101
+
102
+ <details>
103
+ <summary><b>Image Models</b></summary>
104
+
105
+ - Kling: kling-v2-1, kling-v2, kling-v1-5
106
+ - Gemini: gemini-3.0-pro-image-preview, gemini-2.5-flash-image
107
+ - Others: doubao-1.5-vision-pro, qwen2.5-vl-72b-instruct
108
+ </details>
109
+
110
+ <details>
111
+ <summary><b>Video Models</b></summary>
112
+
113
+ - Kling: kling-video-o1, kling-v2-1, kling-v2-5-turbo
114
+ - Veo: veo-3.1-generate-preview, veo-3.0-generate-preview, veo-2.0-generate-001
115
+ - Others: sora-2, minimax-m2, mimo-v2-flash
116
+ </details>
117
+
118
+ ### 🔗 Resources
119
+
120
+ - [Qiniu AI SDK Documentation](https://github.com/bowenQT/qiniu-ai-sdk)
121
+ - [n8n Community Nodes Guide](https://docs.n8n.io/integrations/community-nodes/)
122
+ - [Qiniu Cloud AI Portal](https://portal.qiniu.com)
123
+
124
+ ### 📄 License
125
+
126
+ MIT License - see [LICENSE](LICENSE) for details.
127
+
128
+ ---
129
+
130
+ <a name="中文"></a>
131
+ ## 🇨🇳 中文
132
+
133
+ [![npm version](https://img.shields.io/npm/v/n8n-nodes-qiniu-ai.svg)](https://www.npmjs.com/package/n8n-nodes-qiniu-ai)
134
+ [![n8n](https://img.shields.io/badge/n8n-社区节点-brightgreen)](https://n8n.io)
135
+ [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
136
+
137
+ > n8n 社区节点 - 集成 [七牛云 AI SDK](https://github.com/bowenQT/qiniu-ai-sdk) 的全模态 AI 能力到 n8n 工作流中。
138
+
139
+ ### ✨ 功能特性
140
+
141
+ | 资源 | 操作 | 描述 |
142
+ |------|-----|------|
143
+ | **Chat(聊天)** | 文本生成 | 多模型聊天补全(通义千问、Claude、Gemini、GPT、DeepSeek 等) |
144
+ | **Image(图像)** | 生成、编辑 | AI 图像生成和编辑 |
145
+ | **Video(视频)** | 生成、查询状态 | 视频生成(可灵、Veo、Sora) |
146
+ | **Audio(音频)** | 文本转语音、语音转文本 | TTS 和 ASR 能力 |
147
+ | **Agent(智能体)** | 执行 | 支持工具调用和记忆的 AI 智能体 |
148
+ | **Tools(工具)** | 网络搜索、OCR | 搜索和文字提取工具 |
149
+
150
+ ### 📦 安装
151
+
152
+ #### 社区节点安装(推荐)
153
+
154
+ 1. 进入 **设置** > **社区节点**
155
+ 2. 点击 **安装**
156
+ 3. 输入 `n8n-nodes-qiniu-ai` 并点击 **安装**
157
+
158
+ #### 手动安装
159
+
160
+ ```bash
161
+ # 在 n8n 自定义节点目录
162
+ npm install n8n-nodes-qiniu-ai
163
+ ```
164
+
165
+ ### 🔧 配置
166
+
167
+ 1. 在 n8n 中创建凭证:
168
+ - 进入 **凭证** > **新建**
169
+ - 搜索 **Qiniu AI API**
170
+ - 输入 API Key(从[七牛云控制台](https://portal.qiniu.com)获取)
171
+
172
+ 2. (可选)自定义 Base URL 用于私有化部署
173
+
174
+ ### 📖 使用示例
175
+
176
+ #### 聊天补全
177
+
178
+ ```
179
+ 资源: Chat
180
+ 操作: Complete
181
+ 模型: claude-4.5-sonnet
182
+ 消息: [{"role": "user", "content": "你好!"}]
183
+ ```
184
+
185
+ #### 图像生成
186
+
187
+ ```
188
+ 资源: Image
189
+ 操作: Generate
190
+ 模型: kling-v2-1
191
+ 提示词: "山间美丽的日落"
192
+ 等待完成: true
193
+ ```
194
+
195
+ #### 视频生成
196
+
197
+ ```
198
+ 资源: Video
199
+ 操作: Generate
200
+ 模型: kling-video-o1
201
+ 提示词: "一只猫在玩球"
202
+ 宽高比: 16:9
203
+ ```
204
+
205
+ #### 图像 → 视频工作流
206
+
207
+ 1. **图像节点**:生成图像
208
+ 2. **视频节点**:
209
+ - 设置 `首帧图片二进制属性` 为 `data`
210
+ - 上一节点生成的图像将作为视频首帧
211
+
212
+ ### 🎯 支持的模型
213
+
214
+ <details>
215
+ <summary><b>聊天模型</b></summary>
216
+
217
+ - 通义千问: qwen3-235b-a22b, qwen3-max, qwen3-32b, qwen-turbo
218
+ - Claude: claude-4.5-sonnet, claude-4.5-opus, claude-4.0-sonnet, claude-3.7-sonnet
219
+ - Gemini: gemini-3.0-pro-preview, gemini-2.5-flash, gemini-2.5-pro
220
+ - DeepSeek: deepseek-r1, deepseek-v3, deepseek-v3.1
221
+ - GPT: openai/gpt-5, openai/gpt-5.2
222
+ - 其他: doubao-seed-1.6, glm-4.5, kimi-k2, minimax-m2
223
+ </details>
224
+
225
+ <details>
226
+ <summary><b>图像模型</b></summary>
227
+
228
+ - 可灵: kling-v2-1, kling-v2, kling-v1-5
229
+ - Gemini: gemini-3.0-pro-image-preview, gemini-2.5-flash-image
230
+ - 其他: doubao-1.5-vision-pro, qwen2.5-vl-72b-instruct
231
+ </details>
232
+
233
+ <details>
234
+ <summary><b>视频模型</b></summary>
235
+
236
+ - 可灵: kling-video-o1, kling-v2-1, kling-v2-5-turbo
237
+ - Veo: veo-3.1-generate-preview, veo-3.0-generate-preview, veo-2.0-generate-001
238
+ - 其他: sora-2, minimax-m2, mimo-v2-flash
239
+ </details>
240
+
241
+ ### 🔗 相关链接
242
+
243
+ - [七牛 AI SDK 文档](https://github.com/bowenQT/qiniu-ai-sdk)
244
+ - [n8n 社区节点指南](https://docs.n8n.io/integrations/community-nodes/)
245
+ - [七牛云 AI 控制台](https://portal.qiniu.com)
246
+
247
+ ### 📄 许可证
248
+
249
+ MIT License - 详见 [LICENSE](LICENSE)。
250
+
251
+ ---
252
+
253
+ ## 🤝 Contributing
254
+
255
+ Contributions are welcome! Please feel free to submit a Pull Request.
256
+
257
+ ## 📞 Support
258
+
259
+ - GitHub Issues: [Create an issue](https://github.com/bowenQT/n8n-nodes-qiniu-ai/issues)
260
+ - Email: Contact the maintainer
261
+
262
+ ---
263
+
264
+ Made with ❤️ by [bowenQT](https://github.com/bowenQT)
@@ -0,0 +1,7 @@
1
+ import { ICredentialType, INodeProperties } from 'n8n-workflow';
2
+ export declare class QiniuAiApi implements ICredentialType {
3
+ name: string;
4
+ displayName: string;
5
+ documentationUrl: string;
6
+ properties: INodeProperties[];
7
+ }
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.QiniuAiApi = void 0;
4
+ class QiniuAiApi {
5
+ constructor() {
6
+ this.name = 'qiniuAiApi';
7
+ this.displayName = 'Qiniu AI API';
8
+ this.documentationUrl = 'https://github.com/bowenQT/qiniu-ai-sdk';
9
+ this.properties = [
10
+ {
11
+ displayName: 'API Key',
12
+ name: 'apiKey',
13
+ type: 'string',
14
+ typeOptions: { password: true },
15
+ default: '',
16
+ required: true,
17
+ description: 'Your Qiniu AI API key',
18
+ },
19
+ {
20
+ displayName: 'Base URL',
21
+ name: 'baseUrl',
22
+ type: 'string',
23
+ default: 'https://api.qnaigc.com/v1',
24
+ description: 'API base URL (optional, for custom endpoints)',
25
+ },
26
+ ];
27
+ }
28
+ }
29
+ exports.QiniuAiApi = QiniuAiApi;
30
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiUWluaXVBaUFwaS5jcmVkZW50aWFscy5qcyIsInNvdXJj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J2h0dHBzOi8vZ2l0aHViLmNvbS9ib3dlblFUL3Fpbml1LWFpLXNkayc7XG4gICAgcHJvcGVydGllczogSU5vZGVQcm9wZXJ0aWVzW10gPSBbXG4gICAgICAgIHtcbiAgICAgICAgICAgIGRpc3BsYXlOYW1lOiAnQVBJIEtleScsXG4gICAgICAgICAgICBuYW1lOiAnYXBpS2V5JyxcbiAgICAgICAgICAgIHR5cGU6ICdzdHJpbmcnLFxuICAgICAgICAgICAgdHlwZU9wdGlvbnM6IHsgcGFzc3dvcmQ6IHRydWUgfSxcbiAgICAgICAgICAgIGRlZmF1bHQ6ICcnLFxuICAgICAgICAgICAgcmVxdWlyZWQ6IHRydWUsXG4gICAgICAgICAgICBkZXNjcmlwdGlvbjogJ1lvdXIgUWluaXUgQUkgQVBJIGtleScsXG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICAgIGRpc3BsYXlOYW1lOiAnQmFzZSBVUkwnLFxuICAgICAgICAgICAgbmFtZTogJ2Jhc2VVcmwnLFxuICAgICAgICAgICAgdHlwZTogJ3N0cmluZycsXG4gICAgICAgICAgICBkZWZhdWx0OiAnaHR0cHM6Ly9hcGkucW5haWdjLmNvbS92MScsXG4gICAgICAgICAgICBkZXNjcmlwdGlvbjogJ0FQSSBiYXNlIFVSTCAob3B0aW9uYWwsIGZvciBjdXN0b20gZW5kcG9pbnRzKScsXG4gICAgICAgIH0sXG4gICAgXTtcbn1cbiJdfQ==
@@ -0,0 +1,5 @@
1
+ import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from 'n8n-workflow';
2
+ export declare class QiniuAi implements INodeType {
3
+ description: INodeTypeDescription;
4
+ execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>;
5
+ }