替换天空
POST
/v3/replace-sky根据您的提示将图像的天空替换为蓝天、日落、日出或银河。您可以在此处获取指导:https://novita.ai/get-started/UseCase_ImageEnhancement.html#_10-replace-sky。
请求参数
Header 参数
Authorization
string
必需
Content-Type
string
必需
Body 参数application/json
image_file
string
必需
原图base64,最大分辨率1024*1024,最大文件大小30Mb。
sky
string
天空类。
extra
object
额外信息。
response_image_type
string
可选
enterprise_plan
object
可选
示例
{
"image_file": "{{base64 encoded image}}",
"sky": "sunrise",
"extra": {
"response_image_type": "png",
"enterprise_plan": {
"enabled": false
}
}
}
示例代码
返回响应
成功(200)
请求有误(400)
HTTP 状态码: 200
内容格式: JSONapplication/json
数据结构
image_file
string
必需
image_type
string
必需
示例
成功示例
{
"image_file": "{{base64 of returned image_file}}",
"image_type": "png"
}
修改于 7 个月前