Skip to content

Moonshot Kimi 节点#

Moonshot Kimi 节点可将 n8n 工作流连接到 Moonshot Kimi AI 模型。你可以用它发送提示词并接收模型响应、向消息附加图像,或使用图像分析模型分析图像。

凭据

你可以在这里找到此节点的身份验证信息。

Resources and operations 资源和操作#

  • Analyze image 分析图像:分析图像并回答相关问题。
  • Message a model 向模型发送消息:向 Moonshot Kimi 模型发送基于文本的消息并接收响应(支持附件、系统消息以及思考模式、Web 搜索等高级选项)。

Analyze image 分析图像#

分析图像并回答与其相关的问题。

Parameters 参数

  • Model 模型(type: resourceLocator, field: modelId):选择用于分析的 Moonshot Kimi 模型。
  • Text Input 文本输入(type: string, field: text):与图像一起发送的提示词或问题。默认值:What's in this image?
  • Input Data Field Name(s) 输入数据字段名(type: string, field: binaryPropertyName):包含图像的二进制字段名称。提供多个字段时,请用逗号分隔。默认值:data
  • Simplify Output 简化输出(type: boolean, field: simplify):启用后,节点返回简化后的响应,而不是完整的原始 API 响应。默认值:true

Options 选项

  • Maximum Number of Tokens 最大令牌数(type: number, field: maxTokens):令牌越少,生成的图像描述越短、细节越少。默认值:1024

Message a model 向模型发送消息#

向 Moonshot Kimi 模型发送一条或多条消息并接收其响应。支持基于角色的消息(user/assistant)、附件、系统消息以及高级生成选项。

Parameters 参数

  • Model 模型(type: resourceLocator, field: modelId):选择要发送消息的 Moonshot Kimi 模型。
  • Messages 消息(type: fixedCollection, field: messages):构成对话提示词的一条或多条消息。
    • content(type: string):消息的文本内容。(显示名称:Prompt)
    • role(type: options):消息角色,例如 userassistant,用于指导模型如何响应。
  • Add Attachments 添加附件(type: boolean, field: addAttachments):是否向消息附加图像。默认值:false
  • Attachment Input Data Field Name(s) 附件输入数据字段名(type: string, field: binaryPropertyName):包含待附加图像的二进制字段名。多个字段请用逗号分隔。默认值:data
  • Simplify Output 简化输出(type: boolean, field: simplify):启用后,节点返回简化后的响应,而不是原始 API 输出。默认值:true

Options 选项

  • Frequency Penalty 频率惩罚(type: number, field: frequencyPenalty):正值会惩罚文本中已出现的 token,从而减少重复。默认值:0
  • Include Merged Response 包含合并后的响应(type: boolean, field: includeMergedResponse):返回一个将模型响应中所有文本片段合并后的单一输出字符串。默认值:false
  • Maximum Number of Tokens 最大令牌数(type: number, field: maxTokens):要为补全生成的最大令牌数。默认值:1024
  • Max Tool Calls Iterations 最大工具调用迭代次数(type: number, field: maxToolsIterations):LLM 在停止前可运行的工具调用迭代周期最大次数。一次迭代可能包含多次工具调用。设为 0 表示不限制。默认值:15
  • Output Randomness (Temperature) 输出随机性(Temperature)(type: number, field: temperature):控制输出的随机性。值越低,输出越确定。默认值:0.7
  • Output Randomness (Top P) 输出随机性(Top P)(type: number, field: topP):采样时考虑的 token 最大累积概率。默认值:1
  • Presence Penalty 存在惩罚(type: number, field: presencePenalty):正值会根据 token 是否已经在文本中出现来施加惩罚,从而鼓励模型讨论新主题。默认值:0
  • Response Format 响应格式(type: options, field: responseFormat):返回响应的格式,例如 text
  • System Message 系统消息(type: string, field: system):用于指导模型整体行为和语气的系统级指令。
  • Thinking Mode 思考模式(type: boolean, field: thinkingMode):启用后,模型会以类似 chain-of-thought 的形式包含推理步骤。不能与 Web Search Web 搜索 同时使用。默认值:false
  • Web Search Web 搜索(type: boolean, field: webSearch):启用后,模型会执行内置 Web 搜索以获取最新信息。不能与 Thinking Mode 思考模式 同时使用。默认值:false

Templates and examples 模板和示例#

Template widget placeholder.

有关该服务的更多信息,请参阅 Moonshot Kimi 文档