PiAPI model
gpt-image-2.5-flare is the fastest PiAPI option for everyday, high-quality image generation.
Pay-as-you-go access through PiAPI.
| Model |
|---|
gpt-image-2.5-flare |
gpt-image-2.5-sunburst |
Capabilities from the production model page.
gpt-image-2.5-flare is the fastest PiAPI option for everyday, high-quality image generation.
gpt-image-2.5-sunburst is the strongest PiAPI option for image generation and editing precision.
Per 1M tokens, both models cost $3.75 text input, $6.00 image input, and $22.50 image output.
The quality parameter accepts auto, low, medium, and high. The API rejects xhigh, max, and standard with HTTP 400.
Sign up and grab an API key from the PiAPI workspace — free credits are included on sign-up.
Add credits on the billing page when you are ready to scale beyond the free tier.
POST your first task following the API docs, then poll the task until the result is ready.
Prototype prompts and settings in the the playground above before wiring them into your product.
curl -X POST 'https://api.piapi.ai/api/v1/images/generations/async' \
-H 'X-API-Key: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"model": "gpt-image-2.5-flare",
"prompt": "YOUR_PROMPT",
"size": "1024x1024",
"quality": "low"
}'curl 'https://api.piapi.ai/api/v1/task/{task_id}' \
-H 'X-API-Key: YOUR_API_KEY'image_urls / image_url / data
The API supports gpt-image-2.5-flare and gpt-image-2.5-sunburst for image generation and editing.
Per 1M tokens, both models cost $3.75 text input, $6.00 image input, and $22.50 image output.
The quality parameter accepts auto, low, medium, and high. The API rejects xhigh, max, and standard with HTTP 400.
More questions? See the API docs.
GPT Image 2.5 API Pipeline Fixture