API
POST /v1/images/generations
Generate images with provider-scoped model ids. Optional image / images for Gemini Image editing. Response includes b64_json and/or url fields.
POST
https://api.rodiumai.io/v1/images/generationsBody parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Required | Image model id (e.g. openai/gpt-image-1, google/imagen-4.0-generate-001, google/gemini-3.1-flash-image). |
| prompt | string | Required | Text description of the image to generate or edit instruction. |
| image | object | string | Optional | Optional reference for image→image (Gemini Image only). Accepts { b64_json }, data URL, or gs:// URI. Aliases: input_image, image_url. HTTP(S) URLs are rejected. Imagen and OpenAI gpt-image reject input images. |
| images | array | Optional | Optional list of references (same encodings as image), max 14. Alias: input_images. Use for multi-image edit / merge on Gemini Image models. |
| n | integer | Optional | Number of images (1–10). Default 1. |
| size | string | Optional | Output size, e.g. "1024x1024", "1536x1024", "1024x1536" (maps to aspect ratio for Gemini/Imagen when supported). |
| quality | string | Optional | Quality hint when supported by the upstream model (e.g. medium). |
Text → image examples
…Image → image (edit)
Gemini Image models only. Pass image or images (max 14) as { b64_json }, data URL, or gs://. HTTP(S) URLs are rejected.
…