Core concepts
Image generation
From zero: install openai, set base_url, call images.generate. Billed per image in RODI.
POST
https://api.rodiumai.io/v1/images/generationsRodiumAi exposes OpenAI-compatible image generation. Use the official OpenAI package — only the base URL and API key change.
Model ids
Use provider-scoped ids such as openai/gpt-image-1 or google/imagen-4.0-generate-001. List them with GET /v1/models.
Examples
…Request parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| model | string | Required | Image model id (e.g. openai/gpt-image-1, google/imagen-4.0-generate-001). |
| prompt | string | Required | Text description of the image to generate. |
| n | integer | Optional | Number of images (1–10). Default 1. |
| size | string | Optional | Output size, e.g. "1024x1024", "1536x1024", "1024x1536". |
| quality | string | Optional | Quality hint when supported by the upstream model (e.g. medium). |