O
GPT Image 2
GPT Image 2, an image model from OpenAI.
imageModelOverride: { model: "gpt-image-2" }
OOpenAI·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.| Parameter | Type | Default | Range / options |
|---|---|---|---|
size | Select | 1024x1024 | 1024x768768x10241024x10241024x15361280x25601440x2560+7 |
output_format | Select | webp | webpjpegpng |
source_imagesIf 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", }, }, });