Image model by OpenAI
API
model: gpt-image-2-lite
Call with your KeelRouter API key, the same key you use for every other model. From $0.0078 per image, paid per call from a prepaid balance. Failed calls are free.
Pricing
| Option | Price |
|---|---|
| default | $0.0078 per image |
Call it
Async: POST /v1/images/generations returns a taskId; poll the same path with ?task_id= or pass a callback_url.
curl https://api.keelrouter.com/v1/images/generations \
-H "Authorization: Bearer $KEELROUTER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-image-2-lite",
"prompt": "A lighthouse at dawn, watercolor"
}'Parameters
| Name | Type | Notes |
|---|---|---|
| model | string | Required. gpt-image-2-lite |
| prompt | string | Required. |
| aspect_ratio | string | One of auto, 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 21:9. Default auto. |
| resolution | string | One of 1K. |
| image_url | string | |
| image_urls | array | |
| output_format | string | One of png, jpeg, webp. |
| n | integer | Range 1–10. Default 1. |
| callback_url | string | Optional https URL; we POST the result when the task ends |
FAQ
- How much does the API cost on KeelRouter?
- From $0.0078 per image. You pay per call from a prepaid USD balance; failed calls are not charged.
- How do I call ?
- POST to /v1/images/generations with model "gpt-image-2-lite". You get a taskId back; poll the same endpoint with ?task_id= or pass a callback_url.
- Is this the official API?
- No. KeelRouter is an independent API gateway. Requests run on through our upstream providers, and the image model keeps its own safety filters.
- How long are results kept?
- Result files are kept for 30 days, then deleted. Download what you want to keep.
More from OpenAI
KeelRouter is an independent service and is not affiliated with OpenAI. is a trademark of its owner, used here only to name the model a request runs on.