{"version":"2.1.334","anchor":"gateway-pricing-overrides-gain-cache-write-tiers-and-long-pr","canonical_anchor":"gateway-pricing-overrides-gain-cache-write-tiers-and-long-pr","heading":"Pricing overrides gain separate cache write prices and long-prompt pricing","tier":"use","area":"Gateway","scope":"org","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/gateway-pricing-overrides-gain-cache-write-tiers-and-long-pr","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Pricing overrides gain separate cache write prices and long-prompt pricing\n\nPricing overrides now take separate 5-minute and 1-hour cache write prices and an optional long-prompt price tier\n\n**What**\n\nPricing overrides let an organisation with contracted rates tell Claude Code what each model costs, so spending can be measured accurately. Caching saves part of a prompt so it can be reused, and writing to the cache has its own price. Overrides now accept more detail:\n\n- A row now needs `input`, `output`, `cacheRead`, `cacheWrite5m` and `cacheWrite1h`, so 5-minute and 1-hour cache writes are priced separately. In gateway form these are `cache_write_5m` and `cache_write_1h`.\n\n- The older `cacheWrite` value still works and fills in whichever of the two cache write prices is not set.\n\n- If the cache write prices are incomplete, a validation error says to \"set cache_write_5m and cache_write_1h, or cache_write as the price for whichever of them is not set\".\n\n- A new `longPrompt` object (`long_prompt` in gateway form) holds `abovePromptTokens` (`above_prompt_tokens`) plus all five rates. It is for models that charge more for long prompts, such as Haiku 5.5.\n\n- Older versions of Claude Code skip a row that has no `cacheWrite`.\n\nBefore this release a row needed only input, output, cache read and cache write, each from 0 to 10000, and one cache write price covered both 5-minute and 1-hour writes.\n\n**Why**\n\nAdministrators with contracted rates can now meter spending more accurately. If some people in your organisation run older versions, keep a `cacheWrite` value in each row so those versions do not skip it.\n\n- Area: Gateway\n- Names: `cache_read`, `cache_write`\n- Tier: Use it now\n- Useful: 3\/5\n- Signal: 2\/5\n- Scope: org\n- Heads-up: no"}