v1

latestOpenAPI 3.1.0Apache 2.02026-07-264001921002.3 KB
GenAI Integration

Generate content (Gemini format)

Generates content using Google Gemini API format. The model is specified in the URL path.

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

Path parameters

modelstring required

Model name with action (e.g., gemini-pro:generateContent)

Request body

modelstring

Model field for explicit model specification

cachedContentstring

Cached content resource name

labelsobject

Labels for the request

fallbacksstring[]

Response

Successful response

modelVersionstring

The model version used to generate the response

responseIdstring

Response ID for identifying each response (encoding of event_id)

createTimestring date-time

Timestamp when the request was made to the server