Reference
O

GPT Image 2

GPT Image 2, an image model from OpenAI.
imageModelOverride: { model: "gpt-image-2" }
OpenAI·Released April 2026
Pricing
List price
~$0.05-$0.2/image
Input
$8.00 / 1M
Input
$5.00 / 1M
Output
$32.00 / 1M
Output
$10.00 / 1M
Specifications
Context window
4,000 tokens
Aspect ratios
13
Released
April 2026
Parameters
Model options, passed in imageModelOverride.config.
ParameterTypeDefaultRange / options
sizeSelect1024x10241024x768768x10241024x10241024x15361280x25601440x2560+7
output_formatSelectwebpwebpjpegpng
source_images
If you want to edit an existing image, provide the URL(s) or variables
Image URLs
Use this model
await mindstudio.generateImage({
  prompt: "...",
  imageModelOverride: {
    model: "gpt-image-2",
    config: {
      size: "1024x1024",
      output_format: "webp",
    },
  },
});