v1

latestOpenAPI 3.1.0Apache 2.02026-07-264001921002.3 KB
Cursor Integration

Gemini model action (Cursor mount)

Cursor mount of Gemini's wildcard generate-content/embed/count-tokens/ predict endpoints. The model path parameter includes the action suffix (e.g. gemini-pro:generateContent).

post/cursor/v1beta/models/{model}

Path parameters

modelstring required

Model name optionally followed by an action suffix.

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