Gemini Files & Cache
Create Gemini cached content
Creates cached content for a current TokenLab Gemini model.
Creates cached content for a current TokenLab Gemini model. Supported fields, resource references, and lifetime depend on the service and model; lowerCamelCase and the corresponding proto snake_case names are accepted. Resources can only be read, referenced, changed, or deleted in their owning Workspace.
curl -X POST "https://example.com/v1beta/cachedContents" \ -H "Content-Type: application/json" \ -d '{ "model": "string" }'{ "name": "string", "model": "string", "displayName": "string", "createTime": "2019-08-24T14:15:22Z", "updateTime": "2019-08-24T14:15:22Z", "expireTime": "2019-08-24T14:15:22Z", "usageMetadata": {}}AuthorizationBearer <token>
API Key authentication. Create or manage API keys in Dashboard > API > API Keys.
In: header
Query Parameters
key?string
API key alternative to Bearer or x-goog-api-key.
Headers
Idempotency-Key?string
Reuse the same key and request body when recovering a create response. A different body with the same key returns a conflict.
Request Body
application/json
Response
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json