dall-e-3, cogview-3-flash (free), cogview-3-plus, and cogview-4. The request/response parameter structure is fully compatible with OpenAI. When switching models, you only need to modify the corresponding model name. If the model request/response parameters are inconsistent with OpenAI, GeekAI will automatically convert and align them at the underlying level.
The response data format is fully compatible with OpenAI.| Platform | Model | Supported Sizes |
|---|---|---|
| OpenAI | DALL·E 3 | 1024x1024, 1792x1024, 1024x1792 (default is 1024x1024) |
| Zhipu | CogView Series | 1024x1024, 768x1344, 864x1152, 1344x768, 1152x864, 1440x720, 720x1440 (default is 1024x1024) |
API认证token
图片生成模型
"gpt-image-1"
文本提示
"画一只可爱的小猫"
反向提示词,用来描述不希望在画面中看到的内容,可以对画面进行限制
单张图片URL/Base64编码数据,仅支持图生图模型支持该配置
以图生图引用图片的影响强度,取值范围[0, 1],默认0.5
图片尺寸,不同模型设置不同,详见模型尺寸表
图片宽高比,不同模型设置不同,详见模型尺寸表
图片数量,默认为1
图片质量,可灵AI支持 std、pro 两个配置,OpenAI/智谱清言支持 standard、hd 两个配置,GPT Image支持 auto/low/medium/high 四个配置项
风格预设,目前仅 stable image 支持该配置
"3d-model"
图片响应格式,支持 url/b64_json 两种格式,默认为url
url, b64_json 图片输出格式,支持 png/jpg/webp 三种格式,默认为png
png, jpg, webp 图片遮罩,支持图片URL/Base64编码数据
是否添加AI生成水印,默认为false,仅部分模型支持
背景透明度,目前仅 gpt-image-1 支持该配置
transparent, opaque, auto 额外参数配置项,以适配不同画图模型的多样化配置
是否异步生成,默认false,即同步等待图片生成成功后返回生成结果,如果异步需要通过调用图片获取接口获取生成结果
自动重试次数,默认0,表示失败不重试