Skip to main content
Triw exposes the Gemini REST surface under /v1beta, plus an OpenAI-style route for models.

Install

Configure

Streaming uses the standard method suffix:

With the Google Gen AI SDK

Exact option names differ between SDK generations (google-generativeai vs google-genai); the values are always host https://router.triw.io and your sk- key.

OpenAI-style access to the same models

If your stack is already OpenAI-shaped, skip the Gemini protocol:
Model discovery for OpenAI-style clients is available at GET /v1/models; the Gemini-native listing lives under /v1beta/openai/models.