Skip to content

GPT Image image API

GPT Image shares one endpoint with every other image model: POST https://revidapi.com/v1/images/generations. Only model changes. The full guide (every parameter, image-to-image, error codes) is in AI Image Generate.

Models and prices

Model Size Credits ≈ VND
gpt-image-2 — 18 1.004đ
gpt-image-2-super — 27 1.507đ
gpt-image-2-4k — 54 3.013đ

Prices were read from the live system when this page was built; current prices are always at GET /v1/models. 1 credit = 55.8 VND. Valid sizes: WIDTHxHEIGHT, e.g. 2048x2048.

Try it

curl -X POST https://revidapi.com/v1/images/generations \
  -H "Authorization: Bearer $REVID_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-image-2", "prompt": "an iced coffee on a wooden table, product photo", "aspect_ratio": "1:1"}'

Edit an existing picture: add "reference_images": ["https://.../photo.jpg"].

Result

This model returns a job: take id and call GET /v1/images/jobs/{id} until status is completed; the image is in data[].url. Failed jobs are refunded automatically.