Dall-e 携带参考图
方法: POST路径: /v1/images/generations
仅部分模型支持 图片 参考 例如: seededit flux-kontext
请求参数
Header 参数
text
Content-Type
string
必需
示例:
application/json
Authorization
string
可选
默认值:
Bearer {{YOUR_API_KEY}}Body 参数 application/json
text
prompt
string
必需
n
integer
必需
model
string
必需
size
string
必需
示例
{
"prompt"
:
"string"
,
"n"
:
0
,
"model"
:
"string"
,
"size"
:
"string"
}请求示例代码
Shell
bash
curl --location --request POST '/v1/images/generations' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "string",
"n": 0,
"model": "string",
"size": "string"
}'返回响应
🟢 200 成功
内容类型: application/json
响应结构
text
object示例
json
{}