Skip to main content
POST
/
v1
/
images
/
edits
gpt-4o-image-vip (image edit)
curl --request POST \
  --url https://api.example.com/v1/images/edits
OpenAI’s official format for the image edit API.
curl -X POST "https://gptproto.com/v1/images/edits" \
  -H "Authorization: YOUR_API_KEY" \
  -F "image=@/path/to/your/image.png" \
  -F "prompt=Transform this image into a watercolor painting" \
  -F "mask=@/path/to/your/mask.png" \
  -F "model=gpt-4o-image-vip" \
  -F "n=1"
{
  "error": {
    "message": "Invalid signature",
    "type": "401"
  }
}

Parameters

ParameterTypeRequiredDefaultDescription
imagefile✅ Yes-image parameter
promptstring✅ Yes-prompt parameter
maskfile✅ Yes-mask parameter
modelstring✅ Yesgpt-4o-image-vipmodel parameter
nstring✅ Yes1n parameter