← All modelsEdit · OpenAI

GPT Image 2

Next-gen image generation & editing with stronger compositional control and text rendering.

EditOpenAI$0.05 / imageeditopenai
Preview
GPT Image 2
Pricing
$0.05/ image

$0.05 per image. For $1 you can run this model 20 times.

Pay only for successful generations. No idle, no minimums, no per-seat.

API

Wire it up.

EndpointPOST https://api.tryinfer.com/v1/inference/gpt-image-2/edit
request
curl https://api.tryinfer.com/v1/inference/gpt-image-2/edit \
-H "Authorization: Bearer $INFER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": {
"prompt": "recolor the scene to dramatic golden-hour sunset lighting",
"image_url": "https://example.com/input.jpg"
}
}'
Parameters
NameTypeRequiredDefaultDescription
promptstringYes
image_urlstring (URL)Yes
num_imagesinteger1
output_formatstringpngjpegpngwebp

Authenticate with a bearer token. Get an API key →

Try it

Run GPT Image 2 now.

Try it in the playground