Actions16
- Content Actions
- Cached Content Actions
- Embedding Actions
- File Actions
- Model Actions
- Token Actions
Cached Content → Create
AI-generatedSummary
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
jsonproperty, paired with the originating item index. No pagination applies for creation.