Back to approved models
Googleactiverelay/request.mjsready to route CONTEXTN/Aprompt window MAX OUTPUTN/Aper response INPUT$0.50 / Mtoken price OUTPUT$3.00 / Mtoken price
Approved model profile_
Gemini 3.1 Flash Image
Gemini 3.1 Flash Image supports image generation and text through PipeLLM. Use model ID gemini-3.1-flash-image with the configured compatible endpoint.
gemini-3.1-flash-imageconst completion = await client.chat.completions.create({
model: "gemini-3.1-flash-image",
messages: [
{ role: "user",
content: "Plan a multi-step task" }
]
});Route configuration_
Call this model through its native API.
Use the documented HTTP endpoint and request body for this model.
https://api.pipellm.aiUse the native HTTP request format for this model.NATIVE API · NO CONVERSION
Native HTTP/v1/chat/completionsDocs Use this native API directly. Protocol conversion is not supported.gemini-3.1-flash-imageUse this in every requestPROVIDER AVAILABILITY1 route
| Provider | Context | Max output | Discount | Input / M | Output / M |
|---|---|---|---|---|---|
| Vertex AI | N/A | N/A | — | $0.50 / M | $3.00 / M |
SUPPORTED SURFACESactive
input: textinput: imageoutput: textoutput: image
Relay governs model access with the same routing policy that Lens keeps visible and auditable.
