> ## Documentation Index
> Fetch the complete documentation index at: https://rpa.bazhuayu.com/helpcenter/llms.txt
> Use this file to discover all available pages before exploring further.

# 图生图

## 一、指令描述

制该指令用于在AI 图生图 自动作图，支持批量作图，涵盖了工作图片需求

图片质量：1k，

图片比例：1:1、9:16、16:9、4:3、3:4，

并发（单key）：10，

模型：<strong>gpt-image2、codex-gpt-image-2</strong>

## 二、核心参数

<strong>api-key</strong>：密钥

<strong>model</strong>：模型（gpt-image-2、codex-gpt-image-2）

<strong>prompt</strong>：提示词

<strong>图片比例</strong>：1:1（正方形）、16:9（横版）、4:3（横版）、9:16（竖版）、3:4（竖版）

<strong>源文件</strong>：修改的目标图片文件，后缀：\*.png; \*.jpg

<strong>保存路径</strong>：修改后保存的目录

<strong>保存文件名</strong>：生成后保存的文件名，后缀：\*.png; \*.jpg

<strong>图片保存路径</strong>：本地保存一份，输出结果是文件完整路径，列表

## 三、经典案例

### - 案例一：源图：<img src="https://mintcdn.com/bazhuayu-rpa-docs/_0ncJVuvn2vLb0nP/helpcenter/commands/custom-commands/Ph62jMtp/images/2wqOXhgI-01.png?fit=max&auto=format&n=_0ncJVuvn2vLb0nP&q=85&s=d51e25a3df3be4bcd67117fa03ad9fd0" alt="image" width="941" height="1672" data-path="helpcenter/commands/custom-commands/Ph62jMtp/images/2wqOXhgI-01.png" />

### 注意事项：

•图片质量越高，出图速度越慢，无图片质量要求，请使用1k。

<Info>
  使用指令过程中遇到问题？前往 [八爪鱼RPA 开发者社区问答板块](https://rpa.bazhuayu.com/community/questions) 提问，获取官方与社区帮助。
</Info>
