v1

latestOpenAPI 3.0.0Creative Commons Attribution 3.02026-07-132661,4471.5 MB
projects

Creates cached content, this call will initialize the cached content in the data storage, and users need to pay for the cache data storage.

post/v1/{+parent}/cachedContents

Path parameters

parentstring required

Required. The parent resource where the cached content will be created

Request body

expireTimestring google-datetime

Timestamp of when this resource is considered expired. This is always provided on output, regardless of what was sent on input.

updateTimestring google-datetime

Output only. When the cache entry was last updated in UTC time.

ttlstring google-duration

Input only. The TTL for this resource. The expiration time is computed: now + TTL.

createTimestring google-datetime

Output only. Creation time of the cache entry.

modelstring

Immutable. The name of the Model to use for cached content. Currently, only the published Gemini base models are supported, in form of projects/{PROJECT}/locations/{LOCATION}/publishers/google/models/{MODEL}

displayNamestring

Optional. Immutable. The user-generated meaningful display name of the cached content.

namestring

Immutable. Identifier. The server-generated resource name of the cached content Format: projects/{project}/locations/{location}/cachedContents/{cached_content}

Response

Successful response