Skip to main content
POST
Generate an image (synchronous)

Authorizations

Authorization
string
header
required

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

Body

application/json
model
string
required
prompt
string
required
aspect_ratio
enum<string>
Available options:
1:1,
3:2,
2:3,
16:9,
9:16
num_outputs
integer
Required range: 1 <= x <= 4
negative_prompt
string
seed
integer

Response

Generation completed.

id
string
object
enum<string>
Available options:
generation
status
enum<string>
Available options:
queued,
running,
succeeded,
failed,
canceled
modality
enum<string>
Available options:
image,
video,
voice,
music,
avatar,
chat,
3d,
upscale
prompt
string
params
object
reserved_credits
integer
charged_credits
integer
refunded_credits
integer
cache_hit
boolean
outputs
object[]