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-2.6, gpt-image-2.6-exact, dall-e-2, Gemini/Qwen edit models).

Example:

"gpt-image-2.6"

prompt
string
required

Instruction describing how to edit the image.

Example:

"Replace the sky with a sunset"

image

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

mask

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

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
output_format
string

Output format when supported (png / jpeg / webp / gif / svg). SVG is text-to-image only, without references, non-streaming.

Example:

"gif"

frame_count
integer

GIF frame count, 1–144.

Required range: 1 <= x <= 144
Example:

16

frame_duration_ms
integer

GIF duration per frame in milliseconds, 20–2000.

Required range: 20 <= x <= 2000
Example:

120

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.