Skip to main content
There are two ways to generate images, and which one you use depends on the model family. The OpenAI-compatible route is the familiar one: point the OpenAI SDK at https://api.pipellm.ai/v1 and call it unchanged. It also covers editing an existing image. Gemini image models have no /v1/images/* route of their own. They generate through the same generateContent endpoint as text models and return the image as an inline part. There is no /v2/images route on PipeLLM. See Nano Banana for the full Gemini request and response examples.
Confirm the current image model IDs with GET /v1/models. For video, use POST /v2/videos.