Skip to main content

Try GPT Image 2 in the Workbench

Run this model interactively, tune parameters, and compare outputs.
Model ID: gpt-image-2 GPT Image 2 is OpenAI’s next-generation image model available through Fal. It produces photorealistic images with strong prompt adherence, pixel-perfect text rendering, and accurate handling of dense or multilingual layouts, making it suitable for infographics, UI mockups, product photography, and architectural visualization.

Example request

Use the Workbench as a request builder: configure parameters for this model in the UI, then open the API tab to copy the exact cURL or Python call.
See the image generation reference for more details.
curl -X POST https://hub.oxen.ai/api/ai/images/generate \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $OXEN_API_KEY" \
  -d '{
  "model": "gpt-image-2",
  "prompt": "An ox standing in the middle of a long open road at sunset, cinematic lighting, photorealistic, centered and staring at the camera."
}'

Fetch model details

The models endpoint returns the full model object, including its json_request_schema.
curl -H "Authorization: Bearer $OXEN_API_KEY" https://hub.oxen.ai/api/ai/models/gpt-image-2

Request parameters

Required parameters

FieldTypeDefaultDescription
promptstring"An ox standing in the middle of a long open road at sunset, cinematic lighting, photorealistic, centered and staring at the camera."Text description of the image to generate.

Optional parameters

FieldTypeDefaultDescription
resolutionstring"1024x1024"Output image resolution. HD sizes (1920x1080 and lower) bill at the standard tier; QHD+ sizes (2560x1440 and higher) bill at the high-resolution tier. One of: 1024x768, 1024x1024, 1024x1536, 1920x1080, 2560x1440, 3840x2160.
qualitystring"high"Output quality tier. Locked to high for best fidelity. One of: high.
num_imagesinteger1Number of images to generate per request. Range: 1 – 4.
output_formatstring"png"File format for the generated image. One of: png, jpeg, webp.