Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

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

Body

application/json
prompt
string
required
model
default:dall-e-2
n
integer | null
default:1
Required range: 1 <= x <= 10
quality
enum<string>
default:standard
Available options:
standard,
hd
response_format
enum<string> | null
default:url
Available options:
url,
b64_json
size
enum<string> | null
default:1024x1024
Available options:
256x256,
512x512,
1024x1024,
1792x1024,
1024x1792
style
enum<string> | null
default:vivid
Available options:
vivid,
natural
user
string

Response

200 - application/json
created
integer
required
data
object[]
required
Last modified on September 17, 2026