curl --request POST \
--url https://api.omnimux.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{"model": "gpt-image-2.5", "prompt": "A product photo on a white background", "n": 1}'
{"id":"task_example","object":"image.generation.task","model":"gpt-image-2.5-hd","status":"pending","created":0}
{"error":{"message":"Insufficient quota","type":"insufficient_quota"}}
curl --request POST \
--url https://api.omnimux.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{"model": "gpt-image-2.5", "prompt": "A product photo on a white background", "n": 1}'
{"id":"task_example","object":"image.generation.task","model":"gpt-image-2.5-hd","status":"pending","created":0}
{"error":{"message":"Insufficient quota","type":"insufficient_quota"}}
GPT Image
GPT Image · Image generation
Generate images with the GPT Image 2.5 per-call models.
curl --request POST \
--url https://api.omnimux.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{"model": "gpt-image-2.5", "prompt": "A product photo on a white background", "n": 1}'
{"id":"task_example","object":"image.generation.task","model":"gpt-image-2.5-hd","status":"pending","created":0}
{"error":{"message":"Insufficient quota","type":"insufficient_quota"}}
POST
/
v1
/
images
/
generations
curl --request POST \
--url https://api.omnimux.ai/v1/images/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{"model": "gpt-image-2.5", "prompt": "A product photo on a white background", "n": 1}'
{"id":"task_example","object":"image.generation.task","model":"gpt-image-2.5-hd","status":"pending","created":0}
{"error":{"message":"Insufficient quota","type":"insufficient_quota"}}
Since September 10, 2026,
gpt-image-2 and gpt-image-2-hd have been renamed to gpt-image-2.5 and gpt-image-2.5-hd. The old model IDs are no longer accepted. Update the model in your requests; these are not compatibility aliases.data is returned. An image.generation.task response means an asynchronous task was submitted, not that an image is ready. The response shape depends on the route; do not treat task acceptance as the final result.
Flare and Sunburst are separate token-billed models. They are not part of this per-call contract and are not yet available.
Reference image limits
The reference-image field isimages (an array of image URLs or base64 strings); image, image_urls and input_reference are accepted aliases and are normalized to images.
gpt-image-2.5: up to 16 images per request; no minimum (omitimagesfor text-to-image); the vendor publishes no accepted-format list or per-file size limit for reference images.gpt-image-2.5-hd: no model spec exists yet, so its reference-image limits are unverified and no image count, format or per-file size limit is stated here.gpt-image-2.5-flare: discounted tier image model route; reference image specifications follow baseline.gpt-image-2.5-sunburst: economy tier image model route; reference image specifications follow baseline.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Available options:
gpt-image-2.5, gpt-image-2.5-hd, gpt-image-2.5-flare, gpt-image-2.5-sunburst Image count, subject to the selected model and route limits.
Accepted sizes depend on the selected model and route; not every size is guaranteed.
Quality options depend on the selected model and route.
Reference images: image URL or base64. image / image_urls / input_reference are accepted aliases and are normalized to images.