Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.seeoneapi.com/llms.txt

Use this file to discover all available pages before exploring further.

请求参数

参数类型必填默认值说明
modelstring固定为 gpt-image-2
promptstring图像描述,支持中英文
ninteger1生成图片数量,1-4
sizestring1024x1024图片尺寸
response_formatstringurl返回格式:urlb64_json
qualitystringauto图片质量:autohighmediumlow

尺寸详解

1024x1024   - 正方形(默认)
1536x1024   - 横版 3:2
1024x1536   - 竖版 2:3
2048x2048   - 2K 正方形
4096x4096   - 4K 正方形
4K(4096×4096)生成时间较长,建议设置足够的超时时间(推荐 120 秒以上)。

质量参数

质量说明适用场景
auto模型自动判断大多数场景
high最高质量商用素材、精细插画
medium中等质量日常使用
low较低质量快速预览、草稿

响应格式

{
  "created": 1716000000,
  "data": [
    {
      "url": "https://...",
      "revised_prompt": "模型优化后的提示词"
    }
  ]
}
revised_prompt 字段会返回模型实际使用的优化后提示词,便于你理解和改进提示词写法。