Gemini · GenerateContent

/gemini/v1beta/models/{model}:generateContent

Native Gemini protocol entry point. Mirrors the request and response shapes of https://generativelanguage.googleapis.com — clients may point the google-genai SDK at this gateway directly.

post/gemini/v1beta/models/{model}:generateContent

Request

Request body

contentsobject[] required
safetySettingsobject[]
systemInstructionobject
toolsobject[]

Response

ok

GeminiGenerateContentResponse required

Native Gemini response body. Refer to Google's official documentation for the authoritative field reference.

Changes

No recorded changes to this operation across all 1 revision of this API.