Authorization: Bearer ********************
hd
创建具有更精细细节和更高一致性的图像。此参数仅支持dall-e-3
.vivid
之一natural
。生动使模型倾向于生成超真实和戏剧性的图像。自然使模型生成更自然、不太真实的图像。此参数仅支持dall-e-3
.{
"model": "flux-kontext-pro",
"prompt": "a beautiful landscape with a river and mountains",
// "size": "1024x1524",
"n": 1,
"aspect_ratio": "21:9"
}
curl --location --request POST '/v1/images/generations' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "flux-kontext-pro",
"prompt": "a beautiful landscape with a river and mountains",
// "size": "1024x1524",
"n": 1,
"aspect_ratio": "21:9"
}'
{
"created": 1589478378,
"data": [
{
"url": "https://..."
},
{
"url": "https://..."
}
]
}