Documentation Index
Fetch the complete documentation index at: https://docs.znapai.com/llms.txt
Use this file to discover all available pages before exploring further.
Request
Input

Response
Image from base64 data

Parameters
Text description of the desired edit.
Reference image(s) to edit. Up to 16 images supported. Must be uploaded via multipart form data — image URLs are not supported.
-F "image=@file.png"or-F "image[]=@file1.png" -F "image[]=@file2.png"
Alpha mask PNG. Transparent areas are regenerated; opaque areas are preserved. Must be uploaded via multipart — mask URLs are not supported.
-F "mask=@mask.png"
Output image size.Allowed values:
1024x1024, 1536x1024, 1024x1536, autoAllowed values:
low, medium, high, autoNumber of edited images to return.
Allowed values:
png, jpegCompression level (0–100). Only applies when
output_format is jpeg.Allowed values:
auto, lowStream partial edit results.
Number of partial images during streaming (0–3). Only used when
stream is true.Params to Never Send
| Param | Reason |
|---|---|
response_format: "url" | Returns empty response from Azure |
image_url | Azure does not support image URLs — use file upload via multipart |
input_fidelity: "low" | gpt-image-2 rejects it on edits |
background: "transparent" | Not supported on Azure gpt-image-2 |
output_format: "webp" | Not supported on Azure gpt-image-2 |
style: "vivid" | dall-e-3 only |
