> ## 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、</strong><strong>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>：大于0的整数

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

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

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

## 三、经典案例

### 案例二：

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