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-precision
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
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
fix_compression
number

Repair compression artifacts. Supported range: [0, 1].

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

Model variant to use for the generation

Available options:
Standard V2,
High Fidelity V3,
High Fidelity V2,
Low Resolution V2,
CGI,
Text Refine,
Faces
output_format
enum<string>

Output format for the 3D model

Available options:
jpg,
png
sharpen
number

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

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

Overall enhancement strength. Supported range: [0.01, 1].

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

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

Available options:
All,
Foreground,
Background
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