v1
latestOpenAPI 3.0.32026-07-132681171.6 KBEdit image
Edit or extend an existing image from a text prompt using image editing models. Accepts multipart/form-data (for file uploads) or application/json (with image references as base64 data URLs or file IDs).
post/v1/images/edits
Request body
Example request
{
"model": "azure/openai/gpt-image-1",
"prompt": "Make the sky a dramatic sunset",
"size": "1024x1024"
}Response
Image edit response
Example response
{
"created": 1719000000
}