Skip to content

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

Terminal window
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"
}'
{
"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.