Skip to main content
POST
Edit images from a text prompt and image

Authorizations

Authorization
string
header
required

API key for programmatic access (Authorization: Bearer sk-<api_key>)

Body

multipart/form-data

Schema for image edit request documentation in OpenAPI

image
file
required

Image file to edit (file upload)

model
string
required

Model ID to use for editing (e.g., "Qwen/Qwen-Image-2512")

prompt
string
required

Text prompt describing the edits to make

response_format
string | null

Response format ("b64_json" or "url")

size
string | null

Image size in WxH format (e.g., "512x512")

Response

Image edited successfully

Response from image generation

created
integer<int64>
required

Unix timestamp of when the generation was created

data
object[]
required

Generated images