Skip to main content
POST
Error

授权

Authorization
string
header
必填

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

请求体

application/json

Image generation request

model
string
必填
prompt
string
必填
n
integer
必填范围: 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

响应

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