Skip to Content

GPT Image Edit

A GPT-powered image editor. Upload any image with a natural-language instruction to transform, stylize, or modify it.

Endpoint

POST https://z.os7.site/api/generative/gptimage

Request Parameters

ParameterTypeRequiredDescription
apikeystringYesYour secret Zapi API key.
promptstringYesInstruction to transform the image (e.g., “Make it winter”).
imageUrlstringYesThe public URL of the source image to edit.

Example Request

curl -X POST https://z.os7.site/api/generative/gptimage \ -H "Content-Type: application/json" \ -d '{ "apikey": "zp_your_secret_api_key", "prompt": "Turn the background into a snowy mountain", "imageUrl": "https://example.com/source-image.jpg" }' \ --output result.png

Example Response

The response is a raw binary image buffer containing your edited image.

HTTP/1.1 200 OK Content-Type: image/png <Binary Image Data>
Last updated on