// 使用比例
{
"req_key": "i2i_outpainting",
"prompt": "蓝色的海洋",
"binary_data_base64": ["原图base64"],
"scale": 7,
"seed": -1,
"steps": 30,
"strength": 0.8,
"top": 0.1
"bottom": 0.1,
"left": 1,
"right": 1,
"max_height": 1920,
"max_width": 1920
}
// 使用画布
{
"req_key": "i2i_outpainting",
"prompt": "蓝色的海洋",
"binary_data_base64": ["延边图base64", "延边图mask"],
"scale": 7,
"seed": -1,
"steps": 30,
"strength": 0.8
"max_height": 1920,
"max_width": 1920,
}
curl --location -g --request POST '{{BASE_URL}}/volcv/v1?Action=CVProcess&Version=2022-08-31' \
--header 'Authorization: Bearer {{YOUR_API_KEY}}' \
--header 'Content-Type: application/json' \
--data-raw '// 使用比例
{
"req_key": "i2i_outpainting",
"prompt": "蓝色的海洋",
"binary_data_base64": ["原图base64"],
"scale": 7,
"seed": -1,
"steps": 30,
"strength": 0.8,
"top": 0.1
"bottom": 0.1,
"left": 1,
"right": 1,
"max_height": 1920,
"max_width": 1920
}
// 使用画布
{
"req_key": "i2i_outpainting",
"prompt": "蓝色的海洋",
"binary_data_base64": ["延边图base64", "延边图mask"],
"scale": 7,
"seed": -1,
"steps": 30,
"strength": 0.8
"max_height": 1920,
"max_width": 1920,
}'
{
"code": 10000,
"data": {
"algorithm_base_resp": {
"status_code": 0,
"status_message": "Success"
},
"binary_data_base64": [
"扩展图base64"
],
"image_urls": [
"扩展图url"
],
"request_id": "977202e694283d9e430e6d91d3e0bc6540077ea26de523ba7dfd3856409db693"
},
"message": "Success",
"request_id": "20240314153408C09A6A1651795D028F5A",
"status": 10000,
"time_elapsed": "3.9405467s"
}