Skip to content
Docs

Image Generations

Pass-through endpoint for upstream image generation models.

Endpoint

http
1POST /v1/images/generations2Content-Type: application/json

Request 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.