Image APIs Overview
LLMAPI provides synchronous image endpoints for OpenAI and Gemini compatible requests.
| Use case | Documentation | Endpoint |
|---|---|---|
| OpenAI synchronous image generation | OpenAI Generations | POST /v1/images/generations |
| OpenAI synchronous image editing | OpenAI Edits | POST /v1/images/edits |
| Gemini native image and multimodal generation | Gemini Native | POST /v1beta/models/{model}:generateContent |
Key and Platform Selection
| Key type | Available image APIs | Notes |
|---|---|---|
| Regular API key / OpenAI group | /v1/images/generations, /v1/images/edits | Image generation permission must be enabled on the general group. |
| Regular API key / Gemini group | /v1beta/models/{model}:generateContent, /v1beta/models/{model}:streamGenerateContent | Use Gemini Native request bodies. |
| Other general groups | Image APIs depend on the group platform | Use the endpoint that matches the selected platform. |
Integration Guidance
- Use synchronous OpenAI image endpoints for short OpenAI image requests.
- Use Gemini Native endpoints for Gemini image and multimodal requests.
- If you see
Images API is not supported for this platform, the current key group cannot call the OpenAI Images API. For Gemini groups, use Gemini Native.