All Models

OpenAI logo

GPT Image 2 API

GPT Image 2 generates and edits stills from natural-language prompts, with quality and resolution controls.

Model overview

Model ID
openai/gpt-image-2
Output Type
Image
Pricing
From $0.01 / run
Provider
OpenAI
Hosting
External
Try in Studio
Generate

Pricing depends on the selected inputs. See the rates below.

GPT Image 2 example

Supported modes

Text to Image

Text to Image uses prompt. Adjust the model options to prepare a request for this mode.

image.generate

Edit

Edit uses images and prompt. Adjust the model options to prepare a request for this mode.

image.edit

Pricing

Image generation

Price per run for each listed option.

OfferingPrice (USD)
Quality: low · Resolution: 1K$0.01 / run
Quality: low · Resolution: 2K$0.02 / run
Quality: low · Resolution: 4K$0.03 / run
Quality: medium · Resolution: 1K$0.06 / run
Quality: medium · Resolution: 2K$0.10 / run
Quality: medium · Resolution: 4K$0.18 / run
Quality: high · Resolution: 1K$0.22 / run
Quality: high · Resolution: 2K$0.40 / run
Quality: high · Resolution: 4K$0.72 / run

Image editing

Price per run for each listed option.

OfferingPrice (USD)
Quality: low · Resolution: 1K$0.01 / run
Quality: low · Resolution: 2K$0.02 / run
Quality: low · Resolution: 4K$0.03 / run
Quality: medium · Resolution: 1K$0.06 / run
Quality: medium · Resolution: 2K$0.10 / run
Quality: medium · Resolution: 4K$0.18 / run
Quality: high · Resolution: 1K$0.22 / run
Quality: high · Resolution: 2K$0.40 / run
Quality: high · Resolution: 4K$0.72 / run

Text to Image options

OptionDetailsDefault
Prompt *
prompt
The positive prompt for the generation.—
Aspect ratio
aspect_ratio
The aspect ratio of the generated image. Options: 1:1, 1:2, 2:1, 1:3, 3:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 9:21, 21:9.—
Format
output_format
The format of the output image. Options: png, jpeg, webp."png"
Quality
quality
The quality of the generated image. Higher quality costs more. Options: low, medium, high."medium"
Resolution
resolution
The resolution of the output image. Options: 1k, 2k, 4k."1k"

GPT Image 2

GPT Image 2 is OpenAI's image model for generating stills and editing supplied images through natural-language instructions. A written brief can describe the people, objects, setting, and visual treatment, while reference images provide material for an edit.

This makes the generation process closely connected to the creative description. An idea can be expressed as a complete scene or developed through specific instructions about an existing image.

What it's good for

Editorial illustrations, concept artwork, presentation visuals, and campaign images are useful applications. Designers can explore compositions from text or revise reference assets, preparing stills that fit a broader layout, narrative, or visual identity.

Run GPT Image 2 on Protoface

Use GPT Image 2 in Protoface Studio without writing code. Choose your inputs and generation settings, then generate with affordable, usage-based pricing. For your own AI app or workflow, use the Protoface API to submit generations and retrieve their outputs.

Model publisher

About OpenAI

OpenAI is a company focused on AI research and deployment, with work spanning the GPT model family, ChatGPT, and developer APIs. Its developer tools cover text and code generation, image creation, and audio workflows, connecting general-purpose model research to application development and creative production.

  • AI research
  • Image generation
  • Developer tools

Related models

Unified API

One API for generative media.

Protoface serves popular frontier AI models through one API.

  • minimax
  • minimax
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai

Unified API

One API for generative media.

Protoface serves popular frontier AI models through one API.

  • minimax
  • minimax
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai

Unified API

One API for generative media.

Protoface serves popular frontier AI models through one API.

  • minimax
  • minimax
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai
  • z.ai