Skip to content

Mistral AI 节点#

¥Mistral AI node

使用 Mistral AI 节点实现 Mistral AI 中的自动化操作,并将 Mistral AI 与其他应用集成。n8n 内置支持使用各种模型、文件类型和输入法提取文本。

¥Use the Mistral AI node to automate work in Mistral AI and integrate Mistral AI with other applications. n8n has built-in support for extracting text with various models, file types, and input methods.

本页列出了 Mistral AI 节点支持的操作列表以及更多资源的链接。

¥On this page, you'll find a list of operations the Mistral AI node supports, and links to more resources.

Credentials

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

¥You can find authentication information for this node here.

节点参数#

¥Node parameters

  • 资源:Mistral AI 应操作的资源。当前实现支持 "文档" 资源。

¥Resource: The resource that Mistral AI should operate on. The current implementation supports the "Document" resource.

  • 操作:要执行的操作:

¥Operation: The operation to perform:

  • 提取文本:使用光学字符识别 (OCR) 从文档或图片中提取文本。

    ¥Extract Text: Extracts text from a document or image using optical character recognition (OCR).

  • 模型:用于给定操作的模型。当前版本需要 mistral-ocr-latest 模型。

¥Model: The model to use for the given operation. The current version requires the mistral-ocr-latest model.

  • 文档类型:要处理的文档格式。可以是 "文档" 或 "图片"。

¥Document Type: The document format to process. Can be "Document" or "Image".

  • 输入类型:如何输入文档?

¥Input Type: How to input the document:

  • 二进制数据:将文档作为二进制字段传递给此节点。

    ¥Binary Data: Pass the document to this node as a binary field.

  • URL:从给定 URL 获取文档。

    ¥URL: Fetch the document from a given URL.

  • 输入二进制字段:使用 "二进制数据" 输入类型时,定义包含文件的输入二进制字段的名称。

¥Input Binary Field: When using the "Binary Data" input type, defines the name of the input binary field containing the file.

  • URL:使用 "URL" 输入类型时,要处理的文档或图片的 URL。

¥URL: When using the "URL" input type, the URL of the document or image to process.

节点选项#

¥Node options

  • 启用批量处理:是否在同一 API 调用中处理多个文档。这可能通过打包请求来降低你的成本。

¥Enable Batch Processing: Whether to process multiple documents in the same API call. This may reduce your costs by bundling requests.

  • 批处理大小:使用 "启用批量处理" 时,设置每个批次要处理的最大文档数。

¥Batch Size: When using "Enable Batch Processing", sets the maximum number of documents to process per batch.

  • 处理后删除文件:使用 "启用批量处理" 时,设置处理后是否从 Mistral Cloud 中删除文件。

¥Delete Files After Processing: When using "Enable Batch Processing", whether to delete the files from Mistral Cloud after processing.

模板和示例#

¥Templates and examples

Template widget placeholder.

相关资源#

¥Related resources

有关服务的更多信息,请参阅 Mistral AI 文档

¥Refer to Mistral AI's documentation for more information about the service.

What to do if your operation isn't supported#

If this node doesn't support the operation you want to do, you can use the HTTP Request node to call the service's API.

You can use the credential you created for this service in the HTTP Request node:

  1. In the HTTP Request node, select Authentication > Predefined Credential Type.
  2. Select the service you want to connect to.
  3. Select your credential.

Refer to Custom API operations for more information.