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

multipart/form-data
image
file
required
prompt
string
required
mask
file
model
default:dall-e-2
n
integer | null
default:1
Required range: 1 <= x <= 10
size
enum<string> | null
default:1024x1024
Available options:
256x256,
512x512,
1024x1024
response_format
enum<string> | null
default:url
Available options:
url,
b64_json
user
string

Response

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