Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

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

Body

application/json

Image generation request

model
string
required
prompt
string
required
n
integer
Required range: x >= 1
provider
string

Provider is gateway routing metadata, stripped before dispatching upstream.

quality
string
response_format
string
size
string
stream
boolean

Stream is typed only so the gateway can reject it: streaming image generation returns server-sent events, which this endpoint does not relay.

user
string

Response

OK

background
string
created
integer
data
object[]
output_format
string
provider
string

Provider is a gateway addition, stamped like every other routed response, so clients can tell which provider served the request.

quality
string
size
string
usage
object
Last modified on August 23, 2026