POST https://api.novita.ai/v3/create-tile
This feature produces images designed for seamless tiling, ideal for creating continuous patterns in fabrics, wallpapers, and various textures.
Request header parameters
Authorization string Required
In Bearer {{Key}} format.
Content-Type string Required
Only application/json supported
Enum: application/json
Request Body parameters
negative_prompt string Required
Negtive prompt word of the created tile, length [0, 512], divided by ,
prompt string Required
Positive prompt word of the created tile, length [1, 512], divided by ,
width integer Required
Width of image. Range: [128, 1024].
height integer Required
Height of image. Range: [128, 1024].
extra object
Extra info.
Responses
code integer
reason string
message string
curl -- location 'https://api.novita.ai/v3/create-tile' \
-- header 'Authorization: Bearer {{Key}}' \
-- header 'Content-Type: application/json' \
-- data '{
"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
}
}
} '
{
"image_file" : "{{base64 of returned image_file}}" ,
"image_type" : "png"
}
This API generates images that can be used as repeating tiles to create seamless patterns for fabrics, wallpapers and textures.
Please set the Content-Type
header to application/json
in your HTTP request to indicate that you are sending JSON data. Currently, only JSON format is supported .
Try it in playgroundopen in new window .
Request:
curl --location --request POST 'https://api.novita.ai/v3/create-tile' \
--header 'Authorization: Bearer {{key}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"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
}'
HTTP status codes in the 2xx range indicate that the request has been successfully accepted, code 400 means requst params error, while status codes in the 5xx range indicate internal server errors.
You can get images url in image_file
of response in base64 format.
Response:
{
"image_file" : "{{Base64 encoded image}}"
"image_type" : "png"
}