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-generative
autoprompt
boolean

Let the model choose the enhancement prompt

creativity
integer

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

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

Crop the image to fill the output frame instead of padding

denoise
number

Noise reduction strength. Supported range: [0, 1].

Required range: 0 <= x <= 1
detail
number

Amount of detail recovered. Supported range: [0, 1].

Required range: 0 <= x <= 1
enhancement_strength
enum<string>

Enhancement strength preset. Supported values: low, medium, high.

Available options:
low,
medium,
high
face_enhancement
boolean

Enhance faces in the image

face_enhancement_creativity
number

Creativity applied to face enhancement. Supported range: [0, 1].

Required range: 0 <= x <= 1
face_enhancement_strength
number

Strength of the face enhancement. Supported range: [0, 1].

Required range: 0 <= x <= 1
model_variant
enum<string>

Model variant to use for the generation

Available options:
Wonder 4,
Wonder 3.5,
Wonder 3,
Wonder 2,
Wonder,
Recover 3,
Standard MAX,
Redefine,
Recovery V2,
Recovery
output_format
enum<string>

Output format for the 3D model

Available options:
jpg,
png
prompt
string

Text prompt for generation

sharpen
number

Sharpening strength. Supported range: [0, 1].

Required range: 0 <= x <= 1
subject_detection
enum<string>

Which subject layer to enhance. Supported values: All, Foreground, Background.

Available options:
All,
Foreground,
Background
texture
integer

Amount of texture recovered. Supported range: [1, 5].

Required range: 1 <= x <= 5
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