Skip to main content
Version: 1.0.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]

    Default value: 1:1

    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]

    Default value: 1:1

    nsfw boolean
    duration numberrequired
    results string[]required
    status stringrequired

    Possible values: [done, failed]

    createdAt date-timerequired
Loading...