Chat Bp
  1. 图像接口(Images)
Chat Bp
  • OpenAI通用接口
    • 聊天接口(Chat)
      • 聊天接口(OpenAI格式通用)
      • gpts
      • gemini-pro
      • gpt-4-all(分析图片)
      • gpt-4-vision-preview
    • 图像接口(Images)
      • 图像生成
        POST
      • 图像编辑
        POST
      • 异步任务查询
        GET
    • 帮助中心
      • 常见问题及解决办法
  • Anthropic
    • Anthropic Claude
      POST
  • gemini
    • Gemini多模态
      POST
  • Midjourney API文档
    • 快速教学-完整流程一遍过
    • 任务提交
      • 提交Imagine任务
      • 提交Action任务
      • 提交Blend任务
      • 提交Modal任务
      • 提交Describe任务
      • 提交Shorten任务
      • 提交SwapFace任务
      • 提交Video任务
      • 上传文件到discord
    • 任务查询
      • 指定id查询任务
      • 指定id列表查询任务
      • 获取任务图片的seed
  • gpt-4-all(生成图片)
    POST
  1. 图像接口(Images)

图像生成

POST
/v1/images/generations
接口后面加上async标识即可开启异步模式
/v1/images/generations?async=true

请求参数

Query 参数

Header 参数

Body 参数application/json

示例
{
    "model": "dall-e-3",
    "size": "1024x1024",
    "n": 1,
    "prompt": "A close-up depiction of a domestic cat in a relaxed state. The cat features vibrant orange fur, with striking white markings around its eyes that extend down to its soft, pink nose. It has piercing green eyes, brimming with curiosity, and small white whiskers that contrast against its orange fur. The background is a gentle blur, allowing the observer to focus solely on the cat."
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST '/v1/images/generations?async=true' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "dall-e-3",
    "size": "1024x1024",
    "n": 1,
    "prompt": "A close-up depiction of a domestic cat in a relaxed state. The cat features vibrant orange fur, with striking white markings around its eyes that extend down to its soft, pink nose. It has piercing green eyes, brimming with curiosity, and small white whiskers that contrast against its orange fur. The background is a gentle blur, allowing the observer to focus solely on the cat."
}'

返回响应

🟢200成功
application/json
Body

示例
{}
修改于 2025-07-11 15:46:29
上一页
gpt-4-vision-preview
下一页
图像编辑
Built with