Pay as you go
Pay for the image resolution you specify in each API request.
Image generation
0.005 USD / megapixel
Provisional rate · 1 megapixel = 1,000,000 pixels
How pricing works
Cost (USD) = requested width × requested height
÷ 1,000,000 × 0.005
Resolution examples
| Requested resolution (pixels) | Billable usage (megapixels) | Estimated cost (USD) |
|---|---|---|
| 1024 × 1024 px | 1.048576 megapixels | 0.005242880 USD |
| 1536 × 1024 px | 1.572864 megapixels | 0.007864320 USD |
| 2048 × 2048 px | 4.194304 megapixels | 0.020971520 USD |
These examples show how the requested resolution translates into cost.
Cost calculator
Estimated cost per image
- Billable usage
- 1.048576 MP
- Provisional rate
- 0.005 USD / megapixel