guides/image-cost-calculator.md +20 −0 created
1# Image input token and cost calculator
2
3> For the complete documentation index, see [llms.txt](/llms.txt). Markdown versions of documentation pages are available by appending `.md` to the page URL.
4
5Estimate the input tokens and cost of sending an image to an OpenAI vision model. Select a model, enter your image dimensions, and choose a detail level.
6
7For GPT Image generation and editing costs, use the [image generation calculator](https://developers.openai.com/api/docs/guides/image-generation#calculating-costs).
8
9## Use the calculator
10
111. Select the vision model you plan to use.
122. Enter the original image width and height in pixels. The calculator applies the model's resizing rules.
133. Select an image detail level supported by the model.
144. Read the image input tokens and estimated cost. Expand **Calculation details** to see the resized dimensions and token calculation.
15
16## Understand the estimate
17
18The estimate covers one image at standard input rates. It excludes other prompt tokens, model output, caching, long-context pricing, and data-residency adjustments. Billing can differ by one token due to rounding.
19
20For the resizing and tokenization rules, see [image input cost calculations](https://developers.openai.com/api/docs/guides/images-vision#calculating-costs). For current model rates and other charges, see [API pricing](https://developers.openai.com/api/docs/pricing).