Get a list of cached contents.
External DocumentationTo learn more, visit the Gemini documentation.

Parameters

ParameterDescription
Page SizeThe maximum number of items to return. The maximum value is 1000.
Page TokenA page token received from a previous call.
Return All PagesAutomatically fetch all resources, page by page.

Example Output

{
	"cachedContents": [
		{
			"createTime": "2025-02-10T14:39:23.207017Z",
			"displayName": "",
			"expireTime": "2025-02-10T14:44:12.962405054Z",
			"model": "models/gemini-1.5-flash-001",
			"name": "cachedContents/xkdjottgs746",
			"updateTime": "2025-02-10T14:39:23.207017Z",
			"usageMetadata": {
				"totalTokenCount": 323383
			}
		}
	],
	"nextPageToken": "string"
}

Workflow Library Example

List Cached Contents with Gemini and Send Results Via Email
Workflow LibraryPreview this Workflow on desktop