# Gemini explicit context cache creation billing

**URL:** <https://discuss.ai.google.dev/t/gemini-explicit-context-cache-creation-billing/172194>\
**Category:** Gemini API\
**Tags:** billing\
**Created:** [June 22, 2026, 5:21am UTC](https://discuss.ai.google.dev/t/gemini-explicit-context-cache-creation-billing/172194 "2026-06-22T05:21:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![m16khb](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/m16khb/32/74836_2.png) [@m16khb](https://discuss.ai.google.dev/u/m16khb)\
**Post date:** [June 22, 2026, 5:21am UTC](https://discuss.ai.google.dev/t/gemini-explicit-context-cache-creation-billing/172194/1 "2026-06-22T05:21:43Z")

</div>

Hi,

I need to confirm how Vertex AI / Gemini bills `caches.create` for explicit context caching.

The documentation says:

> For both implicit and explicit caching, you’re billed for the input tokens used to create the cache at the standard input token price. For explicit caching, there are also storage costs based on how long caches are stored.

Reference:

> **[Context caching overview  |  Gemini Enterprise Agent Platform  |  Google...](https://docs.cloud.google.com/gemini-enterprise-agent-platform/models/context-cache/context-cache-overview)**
>
> Learn about context caching in Agent Platform, how it reduces costs and latency for Gemini API requests, and its use cases.

Does “also storage costs” mean explicit cache creation is charged as both standard input tokens and TTL storage, or is only storage charged at creation time?

Example:

- Model: `gemini-2.5-pro`
- Cached tokens: `100,000`
- TTL: `5 minutes`
- Standard input: `$1.25 / 1M tokens`
- Cached input: `$0.13 / 1M tokens`
- Storage: `$4.50 / 1M token-hour`

## Interpretation A

`caches.create` is billed as:

- standard input token cost for the cached tokens
- plus storage cost for the TTL

So for 100,000 tokens and 5 minutes:

```plaintext
create input = 0.1 * $1.25 = $0.125
storage = 0.1 * $4.50 * (5 / 60) = $0.0375

total cache creation/storage cost = $0.1625 before any cachedContent read

```

## Interpretation B

`caches.create` is billed only as storage:

```plaintext
storage = 0.1 * $4.50 * (5 / 60) = $0.0375

```

No separate standard input token charge is applied at cache creation time.

My question is only about the cache creation step. I understand that later `generateContent` requests using `cachedContent` are billed at the cached input price for `cachedContentTokenCount`.

**Does `caches.create` charge both standard input tokens and explicit cache storage, or storage only?**

If Interpretation A is correct:

1. Is `CachedContent.usageMetadata.totalTokenCount` the token count used for both cache creation input billing and storage token-hour billing?
2. What SKU names should I expect in Cloud Billing export or Cost Table for the standard input charge and the explicit cache storage charge?

Thanks.

---

<div class="post-metadata">

**Author:** ![Payal\_Sharma2](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/payal_sharma2/32/31911_2.png) [@Payal\_Sharma2](https://discuss.ai.google.dev/u/Payal_Sharma2)\
**Post date:** [July 1, 2026, 12:21pm UTC](https://discuss.ai.google.dev/t/gemini-explicit-context-cache-creation-billing/172194/2 "2026-07-01T12:21:09Z")

</div>

Hi, Seems like this query is related to vertex AI, this forum is focussed on Gemini API, please contact GCP support for Vertex AI related queries, however just sharing below it as a one-time thing:  
Yes interpretation A is correct. You are billed for token count used during both cache creation as well as storage.  
Answers to your sub-questions:

1. Yes
2. For specific SKU names/ids, you can refer [cloud.google.com/skus](http://cloud.google.com/skus) and search for a query like “cache storage” or “caching storage”

---

<div class="post-metadata">

**Author:** ![system](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/system/32/1_2.png) [@system](https://discuss.ai.google.dev/u/system)\
**Post date:** [November 5, 2026, 6:42pm UTC](https://discuss.ai.google.dev/t/gemini-explicit-context-cache-creation-billing/172194/3 "2026-11-05T18:42:53Z")

</div>

Closed on November 5, 2026, 6:42pm UTC

This thread was automatically closed 60 days after the last reply. If you are running into an issue, please create a new post.
