Skip to main content
POST
Generate image

Authorizations

Authorization
string
header
required

Bearer authentication using API key

Body

application/json

Request payload

Request format for image generation models

image
string
required

Input image for generation, it can be data URL or image URL

model
enum<string>
required

Model name to use for the request

Available options:
topaz/topaz-upscale-image-creative
autoprompt
boolean

Let the model choose the enhancement prompt

color_preservation
boolean

Preserve the original colors

creativity
integer

Creativity of the generation. Supported range: [1, 9].

Required range: 1 <= x <= 9
crop_to_fill
boolean

Crop the image to fill the output frame instead of padding

model_variant
enum<string>

Model variant to use for the generation

Available options:
Bloom 2,
Bloom,
Bloom Realism
output_format
enum<string>

Output format for the 3D model

Available options:
jpg,
png
upscale_factor
number

Upscale multiplier applied to the output. Supported range: [1, 4].

Required range: 1 <= x <= 4

Response

200 - application/json

Successful response

Standard async task creation response

code
string
required

Status code returned by the service

Example:

"success"

data
object
required

Response payload containing task details

message
string
required

Additional information about the request result

fail_code
string

Failure code if the task submission did not succeed