Gemini AI Studio icon

Gemini AI Studio

Use the Google Gemini API through direct AI Studio REST calls

Actions16

Cached Content → List

AI-generated

Summary

List cached content entries optionally paginated and control whether each cached content is returned as a separate item.

Inputs

  • Page Size — Number of cached content entries to retrieve per page, minimum 1, default is 50.
  • Page Token — Token for fetching the next page of cached content entries.
  • Return Cached Contents as Separate Items — Boolean to decide if each cached content is emitted as individual items; defaults to true.

Output shape

a list of cached content records, each representing one cached content entry if returned as separate items; otherwise a single object containing the cachedContents array.

Pagination is supported via Page Size and Page Token parameters. If 'Return Cached Contents as Separate Items' is set to false, the entire list is returned as one item containing the cachedContents array. Errors and additional response metadata are included in the output as provided by the Gemini API.

Links

Discussion