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

  • Content-TypestringRequired

    undefined

    Enum:
    application/json
  • AuthorizationstringRequired

    Bearer authentication format, for example: Bearer {{API Key}}.

Request Body parameters

  • extraobject

    Optional extra parameters for the request.

    Show properties
  • 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].

Responses

  • image_filestring

    The Base64-encoded content of the returned image.

  • image_typestring

    The returned image type.

    Enum:
    png webp jpeg

Example

This API generates images that can be used as repeating tiles to create seamless patterns for fabrics, wallpapers and textures.

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