Chat Bp
  1. 图像接口(Images)
Chat Bp
  • OpenAI通用接口
    • 聊天接口(Chat)
      • 聊天接口(OpenAI格式通用)
      • gpts
      • gemini-pro
      • gpt-4-all(分析图片)
      • gpt-4-all(生成图片)
      • gpt-4-vision-preview
    • 图像接口(Images)
      • 图像生成
        POST
      • 图像编辑
        POST
      • 异步任务查询
        GET
    • 帮助中心
      • 常见问题及解决办法
  • gemini
    • Gemini多模态
      POST
  • Midjourney API文档
    • 快速教学-完整流程一遍过
    • 任务提交
      • 提交Imagine任务
      • 提交Action任务
      • 提交Blend任务
      • 提交Modal任务
      • 提交Describe任务
      • 提交Shorten任务
      • 提交SwapFace任务
      • 上传文件到discord
    • 任务查询
      • 指定id查询任务
      • 指定id列表查询任务
      • 获取任务图片的seed
  • Flux(文生图)
    • Replicate格式
      • 生成图片
      • 查询任务
    • OpenAI DallE3格式
      POST
  • Runway视频接口
    • 逆向
      • generate(文本)
      • generte(参考图片)
      • 查询单个任务
      • 查询任务列表
  • Luma视频接口
    • 视频生成
      POST
    • 视频扩展
      POST
    • 任务查询
      GET
  • 可灵API(官方接口)
    • 图像生成
      POST
    • 文生视频
      POST
    • 图生视频
      POST
    • 任务查询
      GET
  • 工作流接口
    • 艺术字
      POST
    • 艺术二维码
      POST
    • 风格转绘
      POST
    • 证件照
      POST
    • 高清放大
      POST
    • 模特换装
      POST
    • 局部重绘
      POST
    • 商品换背景
      POST
    • Flux-dev
      POST
    • 获取任务状态
      GET
  • suno
    • Suno 歌词生成
    • Suno 简单模式
    • Suno 进阶模式
    • suno 参考音乐模式
    • Suno 获取歌词
    • Suno 获取音乐
    • Suno 历史记录
    • Suno 用户删除记录
  • ideogram
    • Generate(文生图)
    • Remix(混合图)
    • Upscale(放大高清)
    • Describe(描述)
  1. 图像接口(Images)

图像生成

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

请求参数

Query 参数
async
string 
可选
示例值:
true
Header 参数
Authorization
string 
必需
默认值:
{{Authorization}}
Body 参数application/json
model
string 
模型
必需
size
string 
图像大小
必需
n
integer 
图像数量
必需
prompt
string 
提示词
必需
示例
{
  "model": "dall-e-3",
  "size": "1792x1024",
  "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": "1792x1024",
    "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
object {0}
示例
{}
修改于 2025-05-11 07:13:14
上一页
gpt-4-vision-preview
下一页
图像编辑
Built with