mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-04-24 22:55:13 +00:00
cleanup(markdown): Prettier format all markdown @ 80 char width (#10714)
This commit is contained in:
@@ -1,6 +1,9 @@
|
||||
# Token Caching and Cost Optimization
|
||||
|
||||
Gemini CLI automatically optimizes API costs through token caching when using API key authentication (Gemini API key or Vertex AI). This feature reuses previous system instructions and context to reduce the number of tokens processed in subsequent requests.
|
||||
Gemini CLI automatically optimizes API costs through token caching when using
|
||||
API key authentication (Gemini API key or Vertex AI). This feature reuses
|
||||
previous system instructions and context to reduce the number of tokens
|
||||
processed in subsequent requests.
|
||||
|
||||
**Token caching is available for:**
|
||||
|
||||
@@ -9,6 +12,9 @@ Gemini CLI automatically optimizes API costs through token caching when using AP
|
||||
|
||||
**Token caching is not available for:**
|
||||
|
||||
- OAuth users (Google Personal/Enterprise accounts) - the Code Assist API does not support cached content creation at this time
|
||||
- OAuth users (Google Personal/Enterprise accounts) - the Code Assist API does
|
||||
not support cached content creation at this time
|
||||
|
||||
You can view your token usage and cached token savings using the `/stats` command. When cached tokens are available, they will be displayed in the stats output.
|
||||
You can view your token usage and cached token savings using the `/stats`
|
||||
command. When cached tokens are available, they will be displayed in the stats
|
||||
output.
|
||||
|
||||
Reference in New Issue
Block a user