Edit image
Edit 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
Edit image
Edit or extend an existing image from a text prompt using OpenAI compatible image editing models through Requesty’s routing.
Base URL
Authentication
Include your Requesty API key in the request headers:Example Request
The endpoint accepts bothmultipart/form-data (the OpenAI SDK default for file uploads) and application/json (with image references as base64 data URLs or file IDs).
multipart/form-data
application/json
Supported Models
azure/openai/gpt-image-1OpenAI’s GPT Image 1 model via Azureazure/openai/gpt-image-1.5OpenAI’s GPT Image 1.5 model via Azure
Masked Edits
Provide amask image to restrict edits to a specific region. Transparent pixels in the mask are the area that will be regenerated.
Transparent Backgrounds
Use thebackground parameter together with output_format=png (or webp) to produce edits with transparent backgrounds:
Error Handling
The API returns standard HTTP status codes:200Success400Bad Request (invalid parameters)401Unauthorized (invalid API key)413Payload Too Large (uploaded images exceed the size limit)429Rate Limited500Internal Server Error
This endpoint is fully compatible with the OpenAI Images API. You can use the OpenAI SDK’s
client.images.edit() method directly.Authorizations
API key for authentication
Body
The model to use for image editing
Example:
"azure/openai/gpt-image-1"
A text description of the desired edit
One or more image files to edit. Repeat the image[] field to upload multiple images (up to 16 for GPT image models).
Output size. Defaults to auto.
Available options:
auto, 1024x1024, 1536x1024, 1024x1536 Image quality. Defaults to auto.
Available options:
auto, high, medium, low Optional mask image file. Transparent pixels mark the area that will be regenerated.
Last modified on May 26, 2026