Images
POST /<lane>/v1/images/generations — the OpenAI Images shape. Upstream
providers return inline bytes or a URL; OpenGateway normalizes to b64_json
(or url).
Request
Section titled “Request”curl "https://api.opengateway.one/oss/v1/images/generations" \ -H "Authorization: Bearer $OPENGATEWAY_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "black-forest-labs/FLUX.1-schnell", "prompt": "a minimal emerald route-slash logo on a dark background", "n": 1, "size": "1024x1024" }'Response
Section titled “Response”{ "created": 1730000000, "data": [{ "b64_json": "iVBORw0KGgo..." }]}Image editing is available at /v1/images/edits (image-to-image, per provider).
Requesting a non-image model returns 422 model_task_mismatch.
OpenGateway Guide
Ask about configuring OpenGateway — lanes, base URLs, client setup, model choice, or an error you hit. Answers are grounded in the docs.