- OpenAI通用接口
- gemini
- Midjourney API文档
- Flux(文 生图)
- Replicate格式
- OpenAI DallE3格式POST
- Runway视频接口
- Luma视频接口
- 可灵API(官方接口)
- 工作流接口
- suno
- ideogram
Dall-E-3
POST
/v1/images/generations
请求参数
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?members&reference&Type&_postman_listIndexKey=key&_postman_listAllowsMultipleValues' \
--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}
示例
{}
修改于 2024-12-15 07:22:14