Skip to main content
Image token counts depend on the model and its image processor. The table and code below are for Qwen2.5 VL.

Common resolution token counts

The following table shows the token counts for a single image for Qwen2.5 VL at different image resolutions:

Calculating exact token count for your images

You can determine exact token usage by processing your images through the model’s tokenizer. For instance, for Qwen2.5 VL, you can use the following code:
1

Install dependencies

2

Tokenize your image

Tokenizing your image
Usage