创建图块
POST
/v3/create-tile此功能生成的图像可用作重复图块,为织物、壁纸和纹理创建无缝图案。您可以在此处获取指导:https://novita.ai/get-started/UseCase_ImageEnhancement.html#_13-create-tile。
请求参数
Header 参数
Authorization
string
必需
Content-Type
string
必需
Body 参数application/json
negative_prompt
string
必需
创建图块的负提示词,长度[0, 512],除以“,”
prompt
string
必需
创建的图块的正向提示词,长度[1, 512],除以“,”
width
integer
必需
图像的宽度。范围:[128, 1024]。
height
integer
必需
图像的高度。范围:[128, 1024]。
extra
object
必需
response_image_type
string
可选
enterprise_plan
object
可选
示例
{
"negative_prompt": "ng_deepnegative_v1_75t, (badhandv4:1.2), (worst quality:2), (low quality:2), (normal quality:2), lowres, bad anatomy, bad hands, ((monochrome)), ((grayscale)) watermark, moles",
"prompt": "dogs",
"width": 1024,
"height": 1024,
"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 个月前