---
title: "Prompt caching guide: Claude, GPT & Gemini"
canonical: "https://rawroute.dev/guides/prompt-caching-cost-optimization"
lang: "en"
last_verified: "2026-11-28"
description: "How prompt caching pricing works on rawroute across Claude, GPT-6.2, and Gemini 4—exact USD cached input prices and prefix rules."
---

# Prompt caching guide: Claude, GPT & Gemini

rawroute passes vendor prompt-cache discounts straight through multiplied by our lower model factor—so cached input reads drop to $0.005 on Haiku 5.5 / Luna and $0.12 on GPT-6.2 Astra per 1M tokens. Keep static system prompts and tool schemas at the very top of your messages array to maximize hit rates.

## Live cached input token pricing on rawroute (USD per 1M tokens)

| Model | Fresh Input | Cached Input | Long-Context Threshold |
|---|---|---|---|
| Claude Opus 5.5 | $2.00 | $0.10 | Flat across context |
| Claude Sonnet 5.5 | $1.00 | $0.05 | Flat across context |
| Claude Haiku 5.5 | $0.05 | $0.005 | > 100,000 tokens |
| GPT-6.2 Astra | $2.40 | $0.12 | > 272,000 tokens |
| Gemini 4 Argon | $1.00 | $0.05 | Flat across context |

## Three rules that break your cache hit rate

Never place dynamic timestamps (current time), per-request trace IDs, or shuffled tool lists before your static system instructions. Byte-for-byte prefix equality from token 0 up to the cache breakpoint is required across OpenAI, Anthropic, and Gemini.

## When NOT to use rawroute

- If every single request uses a completely unique prompt under 1,024 tokens, caching overhead gives no benefit—focus on output token brevity and model tiering instead.
