OpenAI

OpenAI

Available via APIImage Generation

GPT Image 2 API

Generate new images or edit references with OpenAI's image model through one Wizzx Playground.

Model ID
gpt-image-2
Starts at
$0.009/request
Free trial
$0.20 in credits
View API Documentation

New accounts start with $0.20 in free credits, about 22 requests at the starting price.

GPT Image 2 is developed by OpenAI. Wizzx provides API access to it and does not own the model. All trademarks belong to their respective owners.

Try it

$0.009 per request · 9 credits

Sign in to run it. New accounts get $0.20 in free credits.

Next: turn the image into a video with

Model Guide

About GPT Image 2

Generate new images or edit references with OpenAI's image model through one Wizzx Playground.

Why choose GPT Image 2?

GPT Image 2 gives one workflow for creating an image from a prompt or editing supplied references. In Wizzx, leaving the reference area empty starts a generation; adding one or more images switches the same request to editing.

Wizzx controlCurrent behavior
PromptRequired for generation and editing
Reference imagesOptional, up to 10 public image URLs
SizeAuto, square, landscape, or portrait
QualityAuto, low, medium, or high
Output formatPNG, JPEG, or WebP

Prompting approach

Describe the subject, composition, lighting, and intended visual style. For edits, state what should change and what should remain unchanged. When using several references, explain the role of each image instead of relying on their order alone.

Wizzx scope

Wizzx generates one image per request. Size, quality, output format, and the number of references do not change its fixed request price. The live credit amount shown on the page comes from the backend catalog.

Source

Backend pricing

GPT Image 2 API pricing

Model identity, billing unit and every price tier below are read from the backend catalog.

Standard

9

credits / request

= $0.009 USD / request

100 requests ≈ $0.90 · 1,000 requests ≈ $9.00

1 credit = $0.001 USD. The final deduction returned by the API is authoritative.

Back to all models

Integrate the GPT Image 2 API

Every request is asynchronous: submit the task, keep the task ID, then poll for the result. The body below uses the model's default settings.

  1. 1

    Get a GPT Image 2 API key

    Sign in and create a key in the dashboard. Set WIZZX_API_KEY in your server environment; never expose it in browser code.

  2. 2

    Submit a task

    Send a POST request to the model endpoint. A successful submission returns data.task_id; keep that ID before polling. Submission is not generation completion.

  3. 3

    Retrieve the result

    Replace YOUR_TASK_ID with the returned ID and query /api/v1/task/status. Wait for SUCCEEDED and read the output URLs. Stop on FAILED or REVIEW_REQUIRED; do not automatically resubmit an uncertain task.

Submit a tasksubmit.sh
curl -X POST \
  https://api.wizzx.ai/api/v1/task/submit/gpt-image-2 \
  -H "Authorization: Bearer $WIZZX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "size": "auto",
  "quality": "auto",
  "output_format": "png",
  "prompt": "A cinematic product photo on a reflective surface"
}'
Retrieve the resultstatus.sh
curl -X POST \
  https://api.wizzx.ai/api/v1/task/status \
  -H "Authorization: Bearer $WIZZX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "task_id": "YOUR_TASK_ID"
}'

GPT Image 2 API parameters

The fields this endpoint accepts on Wizzx, read from the same schema as the Playground form.

ParameterTypeDefaultAllowed valuesDescription
prompt
Promptrequired
string—≤ 32,000Describe the image to generate or the edit to apply.
image_urls
Reference Images
url[] ≤ 10——Optional. Add up to 10 public images to switch from generation to image editing.
size
Size
stringautoauto · 1024x1024 · 1536x1024 · 1024x1536Output dimensions. Size does not change the price.
quality
Quality
stringautoauto · low · medium · highQuality does not change the fixed request price.
output_format
Output Format
stringpngpng · jpeg · webp—

API integration questions

How much does the GPT Image 2 API cost?
On Wizzx the GPT Image 2 API starts at $0.009/request (9 credits). Each tier above lists its parameters and billing unit, and failed tasks are refunded.
What is the GPT Image 2 API model ID?
gpt-image-2. Submit tasks to POST /api/v1/task/submit/gpt-image-2 with your API key.
Am I charged if a task fails?
No. Credits are reserved when you submit a task and refunded if it fails. You are only charged for successful tasks.
Can I try the GPT Image 2 API for free?
Yes. New accounts start with $0.20 in free credits, about 22 requests at the starting price.
Is this the official GPT Image 2 API?
No. GPT Image 2 models are developed by OpenAI. Wizzx is an independent API platform that gives you access to them with one API key, an asynchronous task API and pay-as-you-go credits.
Does the submit response contain the generated file?
Generation is asynchronous. The submit response identifies the task. Query its status until it finishes, then use the output URLs in the result. See the API reference for response fields and error handling.

Wizzx API

Start building with the GPT Image 2 API

New accounts get $0.20 in free credits. Pay as you go with no subscription, and failed tasks are refunded.