Earlier GPT Image models
The details below apply to earlier models, not Sunburst or Flare. For new integrations, use one of the GPT Image 2.5 models described above.
<details> <summary>GPT Image 2 settings and input fidelity</summary>gpt-image-2 accepts any resolution in the size parameter when it satisfies the constraints below. Square images are typically fastest to generate.
| Popular sizes |
|
| Size constraints |
|
| Quality options |
|
Image input fidelity
The input_fidelity parameter controls how strongly a model preserves details from input images during edits and reference-image workflows. For gpt-image-2, omit this parameter; the API doesn't allow changing it because the model processes every image input at high fidelity automatically.
Because gpt-image-2 always processes image inputs at high fidelity, image input tokens can be higher for edit requests that include reference images. To understand the cost implications, refer to the vision costs section.
Models prior to gpt-image-2
GPT Image models prior to gpt-image-2 generate images by first producing specialized image tokens. Both latency and eventual cost are proportional to the number of tokens required to render an image—larger image sizes and higher quality settings result in more tokens.
The number of tokens generated depends on image dimensions and quality:
| Quality | Square (1024×1024) | Portrait (1024×1536) | Landscape (1536×1024) |
|---|---|---|---|
| Low | 272 tokens | 408 tokens | 400 tokens |
| Medium | 1056 tokens | 1584 tokens | 1568 tokens |
| High | 4160 tokens | 6240 tokens | 6208 tokens |
Note that you will also need to account for input tokens: text tokens for the prompt and image tokens for the input images if editing images. Because gpt-image-2 always processes image inputs at high fidelity, edit requests that include reference images can use more input tokens.
Refer to the pricing page for current text and image token prices, and use the Calculating costs section below to estimate request costs.
The final cost is the sum of:
- input text tokens
- input image tokens if using the edits endpoint
- image output tokens
Calculating costs
Use the pricing calculator below to estimate request costs for GPT Image models. gpt-image-2 supports thousands of valid resolutions; the table below lists the same sizes used for previous GPT Image models for comparison. For GPT Image 1.5, GPT Image 1, and GPT Image 1 Mini, the legacy per-image output pricing table is also listed below. You should still account for text and image input tokens when estimating the total cost of a request.
A larger non-square resolution can sometimes produce fewer output tokens than a smaller or square resolution at the same quality setting.
<table style={{ borderCollapse: "collapse", tableLayout: "fixed", width: "100%" }}
<thead> <tr> <th style={{ textAlign: "left", padding: "8px", width: "28%" }}>Model <th style={{ textAlign: "left", padding: "8px", width: "14%" }}> Quality <th style={{ padding: "8px", width: "19.33%" }}>1024 x 1024
<th style={{ padding: "8px", width: "19.33%" }}>1024 x 1536
<th style={{ padding: "8px", width: "19.34%" }}>1536 x 1024
</tr>
</thead> <tbody> <tr> <td rowSpan="3" style={{ padding: "8px", width: "28%" }}> GPT Image 2 Additional sizes available
<td style={{ padding: "8px" }}>Low
<td style={{ padding: "8px" }}>$0.006
<td style={{ padding: "8px" }}>$0.005
<td style={{ padding: "8px" }}>$0.005
</tr>
<tr>
<td style={{ padding: "8px" }}>Medium
<td style={{ padding: "8px" }}>$0.053
<td style={{ padding: "8px" }}>$0.041
<td style={{ padding: "8px" }}>$0.041
</tr>
<tr>
<td style={{ padding: "8px" }}>High
<td style={{ padding: "8px" }}>$0.211
<td style={{ padding: "8px" }}>$0.165
<td style={{ padding: "8px" }}>$0.165
</tr>
<tr>
<td rowSpan="3" style={{ padding: "8px", width: "28%" }}>
GPT Image 1.5
<td style={{ padding: "8px" }}>Low
<td style={{ padding: "8px" }}>$0.009
<td style={{ padding: "8px" }}>$0.013
<td style={{ padding: "8px" }}>$0.013
</tr>
<tr>
<td style={{ padding: "8px" }}>Medium
<td style={{ padding: "8px" }}>$0.034
<td style={{ padding: "8px" }}>$0.05
<td style={{ padding: "8px" }}>$0.05
</tr>
<tr>
<td style={{ padding: "8px" }}>High
<td style={{ padding: "8px" }}>$0.133
<td style={{ padding: "8px" }}>$0.2
<td style={{ padding: "8px" }}>$0.2
</tr>
<tr>
<td rowSpan="3" style={{ padding: "8px", width: "28%" }}>
GPT Image 1
<td style={{ padding: "8px" }}>Low
<td style={{ padding: "8px" }}>$0.011
<td style={{ padding: "8px" }}>$0.016
<td style={{ padding: "8px" }}>$0.016
</tr>
<tr>
<td style={{ padding: "8px" }}>Medium
<td style={{ padding: "8px" }}>$0.042
<td style={{ padding: "8px" }}>$0.063
<td style={{ padding: "8px" }}>$0.063
</tr>
<tr>
<td style={{ padding: "8px" }}>High
<td style={{ padding: "8px" }}>$0.167
<td style={{ padding: "8px" }}>$0.25
<td style={{ padding: "8px" }}>$0.25
</tr>
<tr>
<td rowSpan="3" style={{ padding: "8px", width: "28%" }}>
GPT Image 1 Mini
<td style={{ padding: "8px" }}>Low
<td style={{ padding: "8px" }}>$0.005
<td style={{ padding: "8px" }}>$0.006
<td style={{ padding: "8px" }}>$0.006
</tr>
<tr>
<td style={{ padding: "8px" }}>Medium
<td style={{ padding: "8px" }}>$0.011
<td style={{ padding: "8px" }}>$0.015
<td style={{ padding: "8px" }}>$0.015
</tr>
<tr>
<td style={{ padding: "8px" }}>High
<td style={{ padding: "8px" }}>$0.036
<td style={{ padding: "8px" }}>$0.052
<td style={{ padding: "8px" }}>$0.052
</tr>
</tbody> </details>