POST
/
image
/
generate

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
model
string
required

The model ID to use for generation

prompt
string
required

The description for the image

width
number
default: 1024

Width of the generated image

height
number
default: 1024

Height of the generated image

steps
number
default: 30

Number of inference steps

hide_watermark
boolean
default: false

Whether to hide the watermark

return_binary
boolean
default: false

Whether to return binary image data instead of base64

seed
number

Random seed for generation

cfg_scale
number

CFG scale parameter

style_preset
string

Style preset to use

negative_prompt
string

Negative prompt for generation

Response

200 - application/json
request
string

Base64 encoded request data

images
string[]
timing
object

Inference timing information