Docs
Image Generations
Pass-through endpoint for upstream image generation models.
On this page
Endpoint
http
1POST /v1/images/generations2Content-Type: application/jsonRequest example
json
1{2 "model": "gpt-image-2",3 "prompt": "A precise product render of a translucent API gateway cube",4 "size": "1024x1024",5 "n": 16}Pass-through behavior
Uni API forwards the request body and compatible headers upstream, then returns the upstream response body unchanged. The gateway still authenticates the API key and records model, status, latency, source IP, and usage tokens when the upstream response includes a usage object.