GPT Image 2 gpt-image-2
image model · provider: openai
Capabilities
| Capability | Value |
|---|---|
| Resolutions | 1K 2K 4K |
Credits
| Resolution | Credits |
|---|---|
1K | 10 cr |
2K | 20 cr |
4K | 30 cr |
Example
bash
curl -X POST "https://api.aiveed.io/v1/generate/image" \
-H "X-API-Key: $AIVEED_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2",
"prompt": "A cinematic product shot of a smartwatch on a marble table",
"resolution": "1K"
}'The response is a job — poll GET /v1/jobs/{id} or use
webhooks/SSE; when
status is completed, result_url is the hosted output.
Good to know
- Pass
image_urls(up to 5) to edit images instead of generating from scratch. aspect_ratio:16:9,9:16,2:3,3:2,1:1, orauto;output_format:png(default) orjpeg.- Resolutions:
1K,2K,4K. 4Kis unavailable with1:1, andaspect_ratio: "auto"only works at1K— both return 422.