Quantum
POST/v2/artworks/quantum
Kick off a text-to-image generation with the Quantum model. Returns a task ID you can poll, or wire a webhook to get notified when the image is ready.
Request
- application/json
Body
required
Limited to 200 words; additional content will be truncated. If empty, uses the style's default prompt.
Limited to 64 words; additional content will be truncated.
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, tengrai-anime, folktale]
The style to apply to the generated image.
Possible values: [seer, servitor]
Default value: servitor
Controls prompt enhancement. SEER enables AI-powered improvement, SERVITOR uses the prompt as-is.
Possible values: [1:1, 9:16, 2:3, 3:4, 16:9, 3:2, 4:3]
Defaults to a 1:1 ratio (1024 × 1024) if width and height are not specified.
Possible values: >= 512 and <= 1360
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).
Possible values: >= 512 and <= 1360
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).
Set to true to allow NSFW output. When false (the default), safety negatives are injected into the negative prompt to suppress NSFW content.
Possible values: >= 1 and <= 2147483647
Optional random seed for deterministic generation. The Tengrai pipeline applies a deterministic transform (floor(seed * 1.2) + 17) before submitting to the workflow engine. Range: 1-2147483647. Omit to let the server pick a random seed.
Optional webhook URL. When provided, the server will POST the final artwork result to this URL upon completion. Must be HTTPS and a publicly routable host — loopback, link-local, private, and cloud-metadata addresses are rejected.
Possible values: [auto, png, webp]
Default value: auto
Output image format. auto (the default) uses the server default (webp with high-quality settings); png is lossless; webp is equivalent to auto.
Responses
- 202
- 400
- 401
- 403
- 429
- 500
Response indicating that the artwork was successfully created.
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [quantum]
parameters
object
required
Limited to 200 words; additional content will be truncated. If empty, uses the style's default prompt.
Limited to 64 words; additional content will be truncated.
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, tengrai-anime, folktale]
The style to apply to the generated image.
Possible values: [seer, servitor]
Default value: servitor
Controls prompt enhancement. SEER enables AI-powered improvement, SERVITOR uses the prompt as-is.
Possible values: [1:1, 9:16, 2:3, 3:4, 16:9, 3:2, 4:3]
Defaults to a 1:1 ratio (1024 × 1024) if width and height are not specified.
Possible values: >= 512 and <= 1360
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).
Possible values: >= 512 and <= 1360
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).
Set to true to allow NSFW output. When false (the default), safety negatives are injected into the negative prompt to suppress NSFW content.
Possible values: >= 1 and <= 2147483647
Optional random seed for deterministic generation. The Tengrai pipeline applies a deterministic transform (floor(seed * 1.2) + 17) before submitting to the workflow engine. Range: 1-2147483647. Omit to let the server pick a random seed.
Optional webhook URL. When provided, the server will POST the final artwork result to this URL upon completion. Must be HTTPS and a publicly routable host — loopback, link-local, private, and cloud-metadata addresses are rejected.
Possible values: [auto, png, webp]
Default value: auto
Output image format. auto (the default) uses the server default (webp with high-quality settings); png is lossless; webp is equivalent to auto.
Possible values: [starting, processing, succeeded, failed, canceled]
{
"id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"artworkType": "quantum",
"parameters": {
"prompt": "string",
"negativePrompt": "string",
"style": "default",
"promptMode": "servitor",
"aspectRatio": "1:1",
"width": 1024,
"height": 1024,
"nsfw": false,
"transparentBackground": false,
"seed": 0,
"webhook": "string",
"outputFormat": "auto"
},
"duration": 0,
"results": [
"string"
],
"status": "starting",
"createdAt": "2024-07-29T15:51:28.071Z"
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Unauthorized
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Forbidden
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Too Many Requests
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}
Internal Server Error
- application/json
- Schema
- Example (from schema)
Schema
Available only when the message includes additional error details.
{
"message": "string",
"statusCode": 0,
"error": "string"
}