Skip to main content
Version: 1.1.0

Create txt2img artwork

POST 

/v1/artworks/txt2img

Generate artwork using text-to-image (txt2img) conversion.

Request

Body

required

    model string

    Possible values: [tengrai-20231128-m-d, tengrai-20240423-m-f]

    Default value: tengrai-20231128-m-d

    promptMode string

    Possible values: [seer, servitor]

    Default value: seer

    prompt string

    Default value: cat

    Limited to 256 words; additional content will be truncated.

    negativePrompt string

    Limited to 64 words; additional content will be truncated.

    style string

    Possible values: [default, portraiture, landscape, photographer, analog, car, food, horror, stained-glass, impasto, abstract-ink, illustration, aquarelle, water-cute, sphericute, fairytale, machinart, isometric, logo, abstractpen, lineart, manga, infiny-weave, infiny-pattern, infiny-flow]

    Default value: default

    creativity integer

    Possible values: >= 1 and <= 5

    Default value: 3

    details integer

    Possible values: >= 1 and <= 5

    Default value: 3

    aspectRatio string

    Possible values: [1:1, 7:9, 2:3, 4:7, 9:16, 9:21, 9:7, 3:2, 7:4, 16:9, 21:9]

    Defaults to a 1:1 ratio (1024 × 1024) if width and height are not specified.

    width integer

    Possible values: >= 512 and <= 2048

    Use aspectRatio instead of custom width and height for better quality. If defined, the total area (width × height) must not exceed 1,478,656 pixels (e.g., 1216 × 1216).

    height integer

    Possible values: >= 512 and <= 2048

    Use aspectRatio instead of custom width and height for better quality. If defined, the total area (width × height) must not exceed 1,478,656 pixels (e.g., 1216 × 1216).

    nsfw boolean

Responses

Response indicating that the artwork was successfully created.

Schema

    id uuidrequired
    artworkType stringrequired

    Possible values: [txt2img]

    parameters

    object

    required

    model string

    Possible values: [tengrai-20231128-m-d, tengrai-20240423-m-f]

    Default value: tengrai-20231128-m-d

    promptMode string

    Possible values: [seer, servitor]

    Default value: seer

    prompt string

    Default value: cat

    Limited to 256 words; additional content will be truncated.

    negativePrompt string

    Limited to 64 words; additional content will be truncated.

    style string

    Possible values: [default, portraiture, landscape, photographer, analog, car, food, horror, stained-glass, impasto, abstract-ink, illustration, aquarelle, water-cute, sphericute, fairytale, machinart, isometric, logo, abstractpen, lineart, manga, infiny-weave, infiny-pattern, infiny-flow]

    Default value: default

    creativity integer

    Possible values: >= 1 and <= 5

    Default value: 3

    details integer

    Possible values: >= 1 and <= 5

    Default value: 3

    aspectRatio string

    Possible values: [1:1, 7:9, 2:3, 4:7, 9:16, 9:21, 9:7, 3:2, 7:4, 16:9, 21:9]

    Defaults to a 1:1 ratio (1024 × 1024) if width and height are not specified.

    width integer

    Possible values: >= 512 and <= 2048

    Use aspectRatio instead of custom width and height for better quality. If defined, the total area (width × height) must not exceed 1,478,656 pixels (e.g., 1216 × 1216).

    height integer

    Possible values: >= 512 and <= 2048

    Use aspectRatio instead of custom width and height for better quality. If defined, the total area (width × height) must not exceed 1,478,656 pixels (e.g., 1216 × 1216).

    nsfw boolean
    duration numberrequired
    results string[]required
    status stringrequired

    Possible values: [done, failed]

    createdAt date-timerequired
Loading...