外画
开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/v3/outpainting
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/v3/outpainting' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
"image_file": "{{base64 encoded images}}",
"prompt": "analog film photo, photo of a beautiful woman, (wearing a colorful bikini:1.1), short blonde hair, flashing, female model, fashion show, catwalk, small breasts, sunny beach , RAW Photograph, dslr, soft lighting, high quality, film grain, Fujifilm XT3 detailed skin with visible pores, insane details, masterpiece, 8k, 35mm photograph, dslr, kodachrome, faded film, desaturated, 35mm photo, grainy, vintage, Kodachrome, Lomography, stained, highly detailed, found footage",
"negative_prompt": "",
"width": 768,
"height": 1024,
"center_x": 0,
"center_y": 0,
"extra": {
"response_image_type": "png",
"enterprise_plan": {
"enabled": false
}
}
}'
响应示例响应示例
200 - 成功示例
{
"image_file": "{{base64 of returned image_file}}",
"image_type": "png"
}
请求参数
Header 参数
Authorization
string
必需
Content-Type
string
必需
Body 参数application/json
返回响应
修改于 2024-02-06 06:18:14