Overview#
We provide gpt-image-1 & gpt-image-1.5 apiUsage & Pricing#
Base Token Rates#
$5.00 / 1M input text tokens
$10.00 / 1M input image tokens
$40.00 / 1M output image tokens
Estimated Cost per Image#
To make it easier, here are the estimated prices for generating new images at common resolutions and quality settings. These costs apply to output images.| Resolution | Low Quality | Medium Quality | High Quality |
|---|
| 1024×1024 | ~$0.011 | ~$0.042 | ~$0.167 |
| 1024×1536 | ~$0.016 | ~$0.063 | ~$0.25 |
| 1536×1024 | ~$0.016 | ~$0.063 | ~$0.25 |
Key Points#
Higher resolutions and quality settings require more tokens, resulting in a higher cost per image.Processing an image you provide (as input) is significantly less expensive than generating a new one.These are estimates; the exact token count for a specific image may vary.Simple Example#
curl --location 'https://api.piapi.ai/v1/chat/completions' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {your-api-key}' \
--data '{
"model": "gpt-image-1",
"prompt": "A cute baby sea otter",
"n": 1,
"size": "1024x1024",
"quality": "low",
"output_format": "jpeg"
}'
Modified at 2025-12-31 01:58:58