Cached input price
See Token prices for the prices in USD.
How caching works
Pareto reuses the longest part of the prompt that matches an earlier request from the start. The tokens after the first difference are not cached. Pareto sends the next requests of a conversation to the GPUs that hold its cached prompt. Each request in a conversation must start with the same messages as the earlier requests. A cache hit is not guaranteed. A conversation that is idle for a long time can lose its cached prompt.Get more cache hits
- Put the content that does not change first: the system message, the tool definitions, and reference documents.
- Add new messages at the end of
messages. - Do not edit or remove earlier messages.
- Do not put a time, a date, or a request ID in the system message.
- Use the same model for all requests in a conversation.
Read cached tokens
The usage data of each API shows the cached tokens.
For Kimi K3.1 Pro, chat completions also show the count as
usage.cached_tokens, as Moonshot’s API does.
For streamed chat completions, set stream_options to {"include_usage": true} to get the usage event. See Streaming.
usage does not show the charge. See Balance and usage for charges.
Cache hints
Pareto acceptsprompt_cache_key in chat completions and Responses requests. Pareto accepts cache_control in Messages requests. You do not need these hints. Pareto caches prompts without them.