Gemini AI Studio icon

Gemini AI Studio

Use the Google Gemini API through direct AI Studio REST calls

Actions16

Cached Content → Create

AI-generated

Summary

Create a cached content resource by sending a JSON request body to the Gemini AI Studio API:POST /cachedContents endpoint.

Inputs

  • Request Body (JSON) (required) — A JSON object representing the cached content to create, including model and content parts as defined by the Gemini API.

Output shape

a single JSON object representing the created cached content resource returned from the API

The output includes the full API response for the created cached content under the json property, paired with the originating item index. No pagination applies for creation.

Links

Discussion