Images
Generate Images
Generate and privately store images. Use your runtime origin; responses have the standard OpenAI shape without the management data envelope.
Generate and privately store images. Use your runtime origin; responses have the standard OpenAI shape without the management data envelope.
Authorization
runtimeBearer AuthorizationBearer <token>
Organization-bound Nirmos API key
In: header
Request Body
application/json
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/v1/images/generations" \ -H "Content-Type: application/json" \ -d '{ "model": "string", "prompt": "string" }'{ "storage": { "mode": "transient", "expiresAt": "string" }, "created": -9007199254740991, "data": [ { "asset_id": "string", "expires_at": "string", "b64_json": "string", "url": "string", "revised_prompt": "string", "media_type": "image/png" } ], "usage": { "input_tokens": 0, "output_tokens": 0, "total_tokens": 0, "input_tokens_details": { "text_tokens": 0, "image_tokens": 0 }, "output_tokens_details": { "text_tokens": 0, "image_tokens": 0 } }, "background": "opaque", "output_format": "png", "quality": "string", "size": "string", "safety_identifier": "string"}{ "error": { "code": "string", "message": "string", "type": "string", "param": "string", "retryable": true }}{ "error": { "code": "string", "message": "string", "type": "string", "param": "string", "retryable": true }}{ "error": { "code": "string", "message": "string", "type": "string", "param": "string", "retryable": true }}{ "error": { "code": "string", "message": "string", "type": "string", "param": "string", "retryable": true }}{ "error": { "code": "string", "message": "string", "type": "string", "param": "string", "retryable": true }}{ "error": { "code": "string", "message": "string", "type": "string", "param": "string", "retryable": true }}{ "error": { "code": "string", "message": "string", "type": "string", "param": "string", "retryable": true }}{ "error": { "code": "string", "message": "string", "type": "string", "param": "string", "retryable": true }}{ "error": { "code": "string", "message": "string", "type": "string", "param": "string", "retryable": true }}{ "error": { "code": "string", "message": "string", "type": "string", "param": "string", "retryable": true }}