POST Gemini

Gemini generateContent

Google's Gemini protocol, for the Gemini CLI (`GOOGLE_GEMINI_BASE_URL=https://api.aiduct.ai`), `@google/genai` (`httpOptions.baseUrl`) and pi. Every catalog chat model answers here: Gemini models natively, others translated, with function calling and thinking kept. Authenticate with `x-goog-api-key`. Errors use Google's envelope.

Endpoint

post/v1beta/models/{model}:generateContent

Parameters

NameInRequiredDescription
modelpathYesCatalog model id, e.g. `gemini-2.5-flash`.

Responses

200

`GenerateContentResponse`

400

Invalid request