
🇺🇸 English

🇺🇸 English
- Chat Models
- Anthropic
- Suno
- Udio
- Midjourney API
- Flux
- Recraft
- Ideogram
- Luma
- Runway
- Kling-API
- Replicate
- MiniMax
OpenAI Dalle3
POST
/v1/images/generations
最后修改时间:2025-02-05 11:27:02
The parameters are consistent with the official
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Header 参数
Authorization
string
可选
默认值:
{{YOUR_API_KEY}}
Body 参数application/json
prompt
string
必需
size
string
必需
steps
integer
必需
prompt_upsampling
boolean
必需
seed
integer
必需
guidance
number
必需
safety_tolerance
integer
必需
interval
integer
必需
示例
{
"model": "flux.1.1-pro",
"prompt": "ein fantastisches bild",
"size": "1024x768"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location -g --request POST '/v1/images/generations' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "flux.1.1-pro",
"prompt": "ein fantastisches bild",
"size": "1024x768"
}'
返回响应
🟢200成功
application/json
Body
object {0}
示例
{}