Skip to content

Image APIs Overview ​

LLMAPI provides synchronous image endpoints for OpenAI and Gemini compatible requests.

Use caseDocumentationEndpoint
OpenAI synchronous image generationOpenAI GenerationsPOST /v1/images/generations
OpenAI synchronous image editingOpenAI EditsPOST /v1/images/edits
Gemini native image and multimodal generationGemini NativePOST /v1beta/models/{model}:generateContent

Key and Platform Selection ​

Key typeAvailable image APIsNotes
Regular API key / OpenAI group/v1/images/generations, /v1/images/editsImage generation permission must be enabled on the general group.
Regular API key / Gemini group/v1beta/models/{model}:generateContent, /v1beta/models/{model}:streamGenerateContentUse Gemini Native request bodies.
Other general groupsImage APIs depend on the group platformUse 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.