Skip to main content
POST
/
v1
/
images
/
edits
Edit images (OpenAI Dall-E compatible)
curl --request POST \
  --url https://api.aiid.edu.kg/v1/images/edits \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form model=dall-e-2 \
  --form image='@example-file' \
  --form 'prompt=<string>' \
  --form mask='@example-file' \
  --form n=1 \
  --form 'user=<string>'
{
  "created": 123,
  "data": [
    {
      "url": "<string>",
      "b64_json": "<string>",
      "revised_prompt": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

Use Bearer Token authentication. Format: Authorization: Bearer sk-xxxxxx

Body

model
enum<string>
required

Public image model name.

Available options:
nano-banana,
doubao-seedream-3-0-t2i-250415,
kling-image,
kling-omni-image,
kolors-virtual-try-on-v1,
kolors-virtual-try-on-v1-5
Example:

"dall-e-2"

image
file
required

Single-image input, commonly used for image-to-image and outpainting.

prompt
string
required

Image generation description. This can be omitted for the virtual try-on model.

mask
file

Optional mask image

n
integer
default:1

Number of images to generate.

size
enum<string>

Size or resolution representation.

Available options:
256x256,
512x512,
1024x1024
response_format
enum<string>

Response format.

Available options:
url,
b64_json
user
string

Response

200 - application/json

Image generated successfully

created
integer
data
object[]