OpenAI 图片操作#
¥OpenAI Image operations
使用此操作在 OpenAI 中分析或生成图片。有关 OpenAI 节点本身的更多信息,请参阅 OpenAI。
¥Use this operation to analyze or generate an image in OpenAI. Refer to OpenAI for more information on the OpenAI node itself.
分析图片#
¥Analyze Image
使用此操作接收图片并回答相关问题。
¥Use this operation to take in images and answer questions about them.
请输入以下参数:
¥Enter these parameters:
- 用于连接的凭据:创建或选择现有 OpenAI 凭证。
¥Credential to connect with: Create or select an existing OpenAI credential.
- 资源:选择“图片”。
¥Resource: Select Image.
- 操作:选择分析图片。
¥Operation: Select Analayze Image.
- 模型:选择用于分析图片的模型。
¥Model: Select the model you want to use to analyze an image.
- 文本输入:询问有关镜像的问题。
¥Text Input: Ask a question about the image.
- 输入类型:选择你希望如何输入图片。选项包括:
¥Input Type: Select how you'd like to input the image. Options include:
-
图片 URL:输入要分析的图片 URL。以逗号分隔的列表形式添加多个 URL。
¥Image URL(s): Enter the URL(s) of the image(s) to analyze. Add multiple URLs in a comma-separated list.
-
二进制文件:输入包含“输入数据字段名称”中图片的二进制属性名称。
¥Binary File(s): Enter the name of the binary property which contains the image(s) in the Input Data Field Name.
选项#
¥Options
- 详细信息:指定响应时间和令牌使用量之间的平衡。
¥Detail: Specify the balance between response time versus token usage.
- 描述长度(最大令牌数):默认值为 300。更少的标记将生成更短、更不详细的图片描述。
¥Length of Description (Max Tokens): Defaults to 300. Fewer tokens will result in shorter, less detailed image description.
有关更多信息,请参阅 图片 | OpenAI 文档。
¥Refer to Images | OpenAI documentation for more information.
生成图片#
¥Generate an Image
使用此操作根据文本提示创建图片。
¥Use this operation to create an image from a text prompt.
请输入以下参数:
¥Enter these parameters:
- 用于连接的凭据:创建或选择现有 OpenAI 凭证。
¥Credential to connect with: Create or select an existing OpenAI credential.
- 资源:选择“图片”。
¥Resource: Select Image.
- 操作:选择“生成图片”。
¥Operation: Select Generate an Image.
- 模型:选择用于生成图片的模型。
¥Model: Select the model you want to use to generate an image.
- 提示:输入所需图片的文本描述。
dall-e-2的最大长度为 1000 个字符,dall-e-3的最大长度为 4000 个字符。
¥Prompt: Enter the text description of the desired image(s). The maximum length is 1000 characters for dall-e-2 and 4000 characters for dall-e-3.
选项#
¥Options
- 质量:你生成的图片质量。高清图片具有更精细的细节和更高的图片一致性。此选项仅支持
dall-e-3。否则,请选择“标准”。
¥Quality: The quality of the image you generate. HD creates images with finer details and greater consistency across the image. This option is only supported for dall-e-3. Otherwise, choose Standard.
- 分辨率:选择生成的图片的分辨率。选择 1024x1024 作为
dall-e-2。为dall-e-3模型选择 1024x1024、1792x1024 或 1024x1792 中的一个。
¥Resolution: Select the resolution of the generated images. Select 1024x1024 for dall-e-2. Select one of 1024x1024, 1792x1024, or 1024x1792 for dall-e-3 models.
- 样式:选择生成的图片样式。此选项仅支持
dall-e-3。
¥Style: Select the style of the generated images. This option is only supported for dall-e-3.
-
自然:使用此选项生成更自然的图片。
¥Natural: Use this to produce more natural looking images.
-
Vivid:使用此选项生成超逼真且极具戏剧性的图片。
¥Vivid: Use this to produce hyper-real and dramatic images.
-
使用图片 URL 响应:是否返回图片 URL,而非二进制文件。
¥Respond with image URL(s): Whether to return image URL(s) instead of binary file(s).
- 输出字段:默认为
data。输入要存放二进制文件数据的输出字段名称。仅当“使用图片 URL 响应”关闭时可用。
¥Put Output in Field: Defaults to data. Enter the name of the output field to put the binary file data in. Only available if Respond with image URL(s) is turned off.
有关更多信息,请参阅 创建图片 | OpenAI 文档。
¥Refer to Create image | OpenAI documentation for more information.
编辑图片#
¥Edit an Image
使用此操作根据文本提示编辑图片。
¥Use this operation to edit an image from a text prompt.
请输入以下参数:
¥Enter these parameters:
- 用于连接的凭据:创建或选择现有 OpenAI 凭证。
¥Credential to connect with: Create or select an existing OpenAI credential.
- 资源:选择“图片”。
¥Resource: Select Image.
- 操作:选择“编辑图片”。
¥Operation: Select Edit Image.
- 模型:选择用于生成图片的模型。支持
dall-e-2和gpt-image-1。
¥Model: Select the model you want to use to generate an image. Supports dall-e-2 and gpt-image-1.
- 提示:输入对输入图片进行编辑的文本描述。
¥Prompt: Enter the text description of the desired edits to the input image(s).
- 图片:添加一个或多个二进制字段,以便在提示中包含图片。每张图片都应该是小于 50MB 的 png、webp 或 jpg 文件。你最多可以提供 16 张图片。
¥Image(s): Add one or more binary fields to include images with your prompt. Each image should be a png, webp, or jpg file less than 50MB. You can provide up to 16 images.
- 图片数量:要生成的图片数。必须介于 1 和 10 之间。
¥Number of Images: The number of images to generate. Must be between 1 and 10.
- 大小:生成图片的大小和尺寸(以像素为单位)。
¥Size: The size and dimensions of the generated images (in px).
- 质量:将生成的图片质量(自动、低、中、高、标准)。仅支持
gpt-image-1。
¥Quality: The quality of the image that will be generated (auto, low, medium, high, standard). Only supported for gpt-image-1.
- 输出格式:生成的图片的返回格式(png、webp 或 jpg)。仅支持 gpt-image-1。
¥Output Format: The format in which the generated images are returned (png, webp, or jpg). Only supported for gpt-image-1.
- 输出压缩:生成图片的压缩级别(0-100%)。仅支持
gpt-image-1属性,输出格式为 webp 或 jpeg。
¥Output Compression: The compression level (0-100%) for the generated images. Only supported for gpt-image-1 with webp or jpeg output formats.
选项#
¥Options
- 背景:允许设置生成图片的背景透明度。仅支持
gpt-image-1。
¥Background: Allows to set transparency for the background of the generated image(s). Only supported for gpt-image-1.
- 输入保真度:控制模型为匹配输入图片的样式和特性所付出的努力程度。仅支持
gpt-image-1。
¥Input Fidelity: Control how much effort the model will exert to match the style and features of input images. Only supported for gpt-image-1.
- 图片掩码:包含图片的二进制属性的名称。第二张图片,其完全透明区域(例如,透明度为零的区域)显示需要编辑的图片位置。如果提供了多张图片,则掩码将应用于第一张图片。必须是有效的 PNG 文件,大小小于 4MB,且尺寸与图片相同。
¥Image Mask: Name of the binary property that contains the image. A second image whose fully transparent areas (for example, where alpha is zero) shows where the image should be edited. If there are multiple images provided, the mask will be applied on the first image. Must be a valid PNG file, less than 4MB, and have the same dimensions as image.
- 用户:代表终端用户的唯一标识符,可帮助 OpenAI 监控和检测滥用行为。
¥User: A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse.
常见问题#
¥Common issues
有关常见错误或问题以及建议的解决方法,请参阅 常见问题。
¥For common errors or issues and suggested resolution steps, refer to Common Issues.