Skip to main content

Create tile


Create tile

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

  • AuthorizationstringRequired

    In Bearer {{Key}} format.

  • Content-TypestringRequired

    Only application/json supported

    Enum: application/json

Request Body parameters

  • negative_promptstringRequired

    Negtive prompt word of the created tile, length [0, 512], divided by ,

  • promptstringRequired

    Positive prompt word of the created tile, length [1, 512], divided by ,

  • widthintegerRequired

    Width of image. Range: [128, 1024].

  • heightintegerRequired

    Height of image. Range: [128, 1024].

  • extraobject

    Extra info.

    Show properties

Responses

  • codeinteger

  • reasonstring

  • messagestring

Example

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"
}
novita.ai API
novita.ai API