Skip to main content
POST

Authorizations

Authorization
string
header
required

Use Authorization: Bearer sk-... from https://omniall.ai/dashboard

Body

OpenAI-compatible image edit (POST /v1/images/edits). JSON and multipart/form-data supported.

model
string
required

Edit-capable model id (e.g. gpt-image-1, dall-e-2, Gemini/Qwen edit models).

Example:

"gpt-image-1"

prompt
string
required

Instruction describing how to edit the image.

Example:

"Replace the sky with a sunset"

image

Source image(s). JSON: URL / Base64 / string array. multipart: file field image (one) or repeated image[] / image[n] (multiple).

mask

Optional mask. JSON: URL/Base64; multipart: mask file (PNG, transparent = editable).

n
integer
default:1

Number of edited images to return.

size
string

Output size when supported.

quality
string

Quality tier when supported.

response_format
enum<string>
Available options:
url,
b64_json
user
any

Opaque end-user id.

Response

Edited image result

OpenAI-compatible image response.

created
integer

Unix timestamp when the image job completed.

data
object[]

Generated image payloads.