Search

Search HiAPI models, tools, and resources.

AI Image Size & Aspect Ratio Calculator

Pick an aspect ratio and a long edge to get pixel dimensions, then see which image models support that ratio and what a generation costs on HiAPI.

Pixel dimensions

Supported ratios, sizes and prices by model

Ratios and sizes come from each model's current input options. Matching a ratio does not guarantee that a model accepts the calculated pixel dimensions; check its size limits in the docs. Prices show the current range across published options, not a quote for the calculated size.

ModelAspect ratiosSizesPrice per imageModel docs
FLUX.2 [klein] 4B Text to ImageBlack Forest Labs1:1, 16:9, 9:16, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 21:9, 9:210.25 MP, 0.5 MP, 1 MP, 2 MP, 4 MP$0.0004 – $0.0057Model docs
FLUX.1 [schnell]Black Forest Labs1:1, 4:3, 3:4, 16:9, 9:16—$0.005Model docs
GPT Image 2 @extOpenAI1:1, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 16:9, 9:16, 2:1, 1:2, 3:1, 1:3, 21:9, 9:211K, 2K, 4K$0.007 – $0.760Model docs
Z-ImageAlibaba1:1, 4:3, 3:4, 16:9, 9:16—$0.008Model docs
FLUX.2 [klein] 9B Text to ImageBlack Forest Labs1:1, 4:3, 3:4, 16:9, 9:16—$0.0086Model docs
Recraft V4.1 FlashRecraft—square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9$0.010Model docs
Nano Banana 2.1Google1:1, 2:3, 3:2, 1:4, 4:1, 3:4, 4:3, 4:5, 5:4, 1:8, 8:1, 9:16, 16:9, 21:91K, 2K, 4K$0.011 – $0.029Model docs
Muse Image Text-to-ImageMeta1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9, 9:21—$0.015Model docs
gpt-image-2.5-flare@proOpenAI1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16—$0.0172 – $0.7143Model docs
gpt-image-2.5-sunburst@proOpenAI1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16—$0.0172 – $0.7143Model docs
Nano Banana 2Google1:1, 1:4, 1:8, 2:3, 3:2, 3:4, 4:1, 4:3, 4:5, 5:4, 8:1, 9:16, 16:9, 21:91K, 2K, 4K$0.018 – $0.043Model docs
Qwen Image 2.1 TurboAlibaba1:1, 16:9, 9:16, 4:3, 3:4—$0.020Model docs
Nano BananaGoogle1:1, 16:9, 9:16, 3:4, 4:3, 3:2, 2:3, 5:4, 4:5, 21:9—$0.021Model docs
Krea 2 Medium TurboKrea1:1, 4:3, 3:2, 16:9, 2.35:1, 4:5, 2:3, 9:16—$0.0215Model docs
gpt-image-2.5-flare/text-to-imageOpenAI1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, 21:9, 27:16, 16:27, 9:8, 8:91K, 2K, 4K$0.025 – $0.060Model docs
gpt-image-2.5-sunburst/text-to-imageOpenAI1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, 21:9, 27:16, 16:27, 9:8, 8:91K, 2K, 4K$0.025 – $0.060Model docs
Nano Banana ProGoogle1:1, 16:9, 9:16, 3:4, 4:3, 3:2, 2:3, 5:4, 4:5, 21:91K, 2K, 4K$0.0285 – $0.050Model docs
GPT Image 2OpenAI1:1, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 16:9, 9:16, 2:1, 1:2, 3:1, 1:3, 21:9, 9:211K, 2K, 4K$0.030 – $0.060Model docs
Grok ImagineGrok2:1, 20:9, 19.5:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:19.5, 9:20, 1:21k, 2k$0.030Model docs
Imagen 4 FastGoogle1:1, 16:9, 9:16, 3:4, 4:3—$0.030Model docs
Nano Banana 2 LiteGoogle1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9, 21:9, 1:4, 4:1, 1:8, 8:1—$0.033Model docs
Wan 2.7 Image StandardAlibaba1:1, 16:9, 4:3, 21:9, 3:4, 9:16, 8:1, 1:81K, 2K$0.0345Model docs
Seedream 5.0 LiteByteDance1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:92K, 4K$0.035Model docs
Qwen Image 3.0Alibaba1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, 21:91K, 2K$0.0358Model docs
Krea 3Krea—square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9$0.036Model docs
FLUX.2 [pro] Text to ImageBlack Forest Labs1:1, 16:9, 3:2, 2:3, 4:5, 5:4, 9:16, 3:4, 4:30.5 MP, 1 MP, 2 MP, 4 MP$0.0375 – $0.125Model docs
FLUX 3 ImageBlack Forest Labs21:9, 2:1, 16:9, 3:2, 7:5, 4:3, 5:4, 1:1, 4:5, 3:4, 5:7, 2:3, 9:16, 1:2, 9:21768, 1K, 1.5K, 2K, 4K$0.041 – $0.607Model docs
Qwen Image 2.0Alibaba—2688*1536, 2368*1728, 2048*2048, 1728*2368, 1536*2688$0.0422Model docs
Ideogram 4.5Ideogram—square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9$0.043 – $0.3145Model docs
Seedream 4.5 Text to ImageByteDance1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:92K, 4K$0.045Model docs
Qwen Image 3.0 ProAlibaba1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, 21:91K, 2K$0.0497 – $0.0993Model docs
FLUX1.1 [pro]Black Forest Labs1:1, 16:9, 3:2, 2:3, 4:5, 5:4, 9:16, 3:4, 4:3—$0.050Model docs
Ideogram V4Ideogram1:1, 16:9, 4:3, 9:16, 3:4—$0.050 – $0.170Model docs
Qwen Image 2.1 ProAlibaba1:1, 16:9, 9:16, 4:3, 3:4—$0.050Model docs
Recraft V4.1Recraft—square_hd, square, portrait_4_3, portrait_16_9, landscape_4_3, landscape_16_9$0.050Model docs
Seedream 5.0 ProByteDance1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:91K, 2K$0.050 – $0.100Model docs
Grok Imagine Image 2.0Grok1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 2:1, 1:2, 19.5:9, 9:19.5, 20:9, 9:201k, 2k$0.052Model docs
FIBO Gen 1.5Bria1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9—$0.0575Model docs
Imagen 4Google1:1, 16:9, 9:16, 3:4, 4:3—$0.060Model docs
Grok Imagine QualityGrok2:1, 20:9, 19.5:9, 16:9, 4:3, 3:2, 1:1, 2:3, 3:4, 9:16, 9:19.5, 9:20, 1:21k, 2k$0.070 – $0.100Model docs
FLUX.1 Kontext [max]Black Forest Labs21:9, 16:9, 4:3, 1:1, 3:4, 9:16—$0.0715Model docs
Wan 2.7 Image ProAlibaba1:1, 16:9, 4:3, 21:9, 3:4, 9:16, 8:1, 1:81K, 2K, 4K$0.080Model docs
Imagen 4 UltraGoogle1:1, 16:9, 9:16, 3:4, 4:3—$0.090Model docs
Qwen Image 2.0 ProAlibaba—2688*1536, 2368*1728, 2048*2048, 1728*2368, 1536*2688$0.107Model docs
FLUX.2 [klein] 4B Image to ImageBlack Forest Labs1:1, 16:9, 9:16, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 21:9, 9:210.25 MP, 0.5 MP, 1 MP, 2 MP, 4 MP$0.0061 – $0.0114Model docs
Ideogram 4.5 EditIdeogram—auto, square, square_hd, portrait_4_3, landscape_4_3, portrait_16_9, landscape_16_9$0.0115 – $0.3145Model docs
Muse Image Image-to-ImageMeta1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:3, 21:9, 9:21—$0.015Model docs
gpt-image-2.5-flare/image-to-imageOpenAI1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, 21:9, 27:16, 16:27, 9:8, 8:91K, 2K, 4K$0.025 – $0.060Model docs
gpt-image-2.5-sunburst/image-to-imageOpenAI1:1, 3:2, 2:3, 4:3, 3:4, 16:9, 9:16, 21:9, 27:16, 16:27, 9:8, 8:91K, 2K, 4K$0.025 – $0.060Model docs
GPT Image 2 Image-to-ImageOpenAI1:1, 3:2, 2:3, 4:3, 3:4, 5:4, 4:5, 16:9, 9:16, 2:1, 1:2, 3:1, 1:3, 21:9, 9:211K, 2K, 4K$0.030 – $0.060Model docs
FLUX.2 [klein] 9B Image to ImageBlack Forest Labs1:1, 4:3, 3:4, 16:9, 9:16—$0.0314Model docs
FLUX.2 [pro] Image to ImageBlack Forest Labs1:1, 4:3, 3:4, 16:9, 9:16, 3:2, 2:31K, 2K$0.035 – $0.050Model docs
Seedream 5.0 LiteByteDance1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:92K, 4K$0.035Model docs
Seedream 4.5 Image to ImageByteDance1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:92K, 4K$0.045Model docs
FIBO Edit 1.5Bria1:1, 2:3, 3:2, 3:4, 4:3, 4:5, 5:4, 9:16, 16:9—$0.0575Model docs
Seedream 5.0 ProByteDance1:1, 4:3, 3:4, 16:9, 9:16, 2:3, 3:2, 21:91K, 2K$0.060 – $0.100Model docs
Grok Imagine Image 2.0Grok1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 2:1, 1:2, 19.5:9, 9:19.5, 20:9, 9:201k, 2k$0.065Model docs

Prices are a planning reference; the final charge follows the request and your account group.

Use these sizes through the API

  1. 01Create a free account

    Sign up with email, Google or GitHub. It takes about a minute.

    Sign up
  2. 02Create an API key

    Generate a key in the dashboard, then pass the size or ratio in your request.

    Get an API key

How to choose an image size

  1. 01Pick the aspect ratio

    Match the ratio to where the image will be used: 1:1 for avatars, 16:9 for video thumbnails and banners, 9:16 for stories and phone wallpapers.

  2. 02Set the long edge

    Larger images show more detail but cost more and take longer. Start at 1024 px and go up only when you need print or high-DPI quality.

  3. 03Check model support

    Not every model accepts every ratio or size. The table shows what each model's current options allow, with a link to its docs.

AI image size calculator FAQ

How do I convert an aspect ratio to pixels?

Fix the long edge, then compute the short edge as long edge × the smaller ratio side ÷ the larger side. For 16:9 at 1024 px, the height is 1024 × 9 ÷ 16 = 576 px.

Why are dimensions rounded to multiples of 16?

Many image models require width and height divisible by 8 or 16. The calculator rounds to 16 and shows how far the rounded size drifts from your ratio.

Does a bigger size cost more?

Often yes. Many models price by resolution or quality tier, so the table shows a price range per model. Open the model page for the exact price of each option.

Which sizes does each model support?

The table is built from each model's current input options on HiAPI, so it stays in line with what the API accepts. Some models take named sizes such as 1K or 2K instead of pixels.

Is anything uploaded when I use this tool?

No. The calculation runs in your browser. Only the model list and prices are loaded from HiAPI.