OpenAI Vision Cost Calculator

Calculate token costs for vision models based on image dimensions.

Select Model NEW

GPT-4o / o-series
GPT-4.1
GPT-4.1-mini
GPT-4.1-nano

Detail Level

Image Dimensions

Token Cost

--

Cost Per Dollar

--
GPT-4o
GPT-4.1

GPT-4o / o-series info

Low Detail Images: Fixed cost of 85 tokens regardless of size.

High Detail Images: Cost depends on size.

  1. Scale to fit in a 2048px x 2048px square, maintaining aspect ratio
  2. Scale so that the image's shortest side is 768px long
  3. Count the number of 512px squares needed to cover the image
  4. Each 512px square costs 170 tokens
  5. Add 85 tokens to the total

Examples:

  • 1024 x 1024 image (high detail): 765 tokens
  • 2048 x 4096 image (high detail): 1105 tokens
  • Any size image (low detail): 85 tokens
DARK MODE