Edit image
Edit image
OpenAI-compatible image editing endpoint. Supports JSON requests and multipart/form-data image uploads.
POST
Edit image
Authorizations
API key (sk-xxx)
Body
Example:
"gpt-image-2"
Image to edit. JSON requests can pass a URL or Base64 data; multipart/form-data requests can upload a file.
Background setting. Depends on support from the selected model.
Output format. Depends on support from the selected model.
Partial image return setting. Depends on support from the selected model.