Calcium-Ion
e9d4d6353c
feat(billing): bill OpenAI 12-hour prompt cache writes at their own price ( #7965 )
...
OpenAI added a 12-hour prompt cache to the Responses API on 2026-10-20
(prompt_cache_options.ttl "12h", GPT-5.6 and later). A 12-hour write
costs 2.5x the input price, twice the 30-minute write. We already
forwarded the option but billed every cache write at the 30-minute price.
- Read cache_write_tokens_details from Responses usage and keep the split
through streaming, compaction and format conversion.
- Ratio pricing bills 12-hour writes at twice the cache write ratio, the
same way Claude 1-hour writes use 6/3.75.
- Expressions get a cc12h price. When an expression leaves the long-lived
price out, 12-hour writes cost twice the cc price and Claude 1-hour
writes 6/3.75 times it; without a cc price they bill as input. Claude
cache writes are no longer free when an expression omits cc or cc1h.
- gpt-6-astra prices 12-hour writes at $25 ($50 above 272K tokens).
- GPT models with a cache write ratio convert to expressions with cc12h.
- Chat Completions forwards prompt_cache_options.
- The pricing editor, cost estimator, pricing pages and usage log details
show the 12-hour price and tokens.
2026-10-22 22:41:17 +08:00
..
2026-10-09 21:39:51 +08:00
2026-10-09 21:39:51 +08:00
2026-09-30 20:52:10 +08:00
2026-10-09 21:39:51 +08:00
2026-09-18 23:00:37 +08:00
2026-09-18 23:00:37 +08:00
2026-10-09 21:39:51 +08:00
2026-06-27 17:01:59 +08:00
2026-09-20 22:17:20 +08:00
2026-07-27 15:56:21 +08:00
2026-10-09 21:39:51 +08:00
2026-09-08 20:55:03 +08:00
2026-06-27 17:01:59 +08:00
2026-10-13 12:36:43 +08:00
2026-10-20 22:39:42 +08:00
2026-09-15 00:06:42 +08:00
2026-09-15 00:06:42 +08:00
2026-09-14 21:04:26 +08:00
2026-09-18 11:24:29 +08:00
2026-10-17 20:19:41 +08:00
2026-09-20 17:51:51 +08:00
2026-09-20 17:51:51 +08:00
2026-10-09 21:39:51 +08:00
2026-09-30 21:50:05 +08:00
2026-10-09 21:39:51 +08:00
2026-10-10 14:02:06 +08:00
2026-10-20 22:39:42 +08:00
2026-10-17 22:17:59 +08:00
2026-10-09 21:39:51 +08:00
2026-10-09 21:39:51 +08:00
2026-10-10 14:02:06 +08:00
2026-10-17 22:17:59 +08:00
2026-09-08 20:55:03 +08:00
2026-10-17 22:17:59 +08:00
2026-10-19 20:22:37 +08:00
2026-10-09 21:39:51 +08:00
2025-03-15 19:10:12 +08:00
2026-10-12 21:33:53 +08:00
2026-10-12 21:33:53 +08:00
2026-10-17 22:17:59 +08:00
2026-10-09 21:39:51 +08:00
2026-07-29 16:27:15 +08:00
2026-10-17 22:17:59 +08:00
2025-10-11 15:30:09 +08:00
2026-09-18 23:00:37 +08:00
2026-10-22 22:41:17 +08:00
2026-10-09 21:39:51 +08:00
2026-08-01 23:19:01 +08:00
2026-09-11 21:44:54 +08:00
2026-10-12 17:57:53 +08:00
2026-09-30 21:49:33 +08:00
2026-10-09 21:39:51 +08:00
2026-10-17 22:17:59 +08:00
2026-07-27 15:56:21 +08:00
2026-07-27 15:56:21 +08:00
2026-10-19 20:22:37 +08:00
2026-10-09 21:39:51 +08:00
2026-10-09 21:39:51 +08:00
2026-10-09 21:39:51 +08:00
2026-10-07 21:26:35 +08:00
2026-05-22 11:00:58 +08:00
2026-10-10 19:24:32 +08:00
2026-10-09 21:39:51 +08:00
2026-10-15 15:49:45 +08:00
2026-08-29 18:51:57 +08:00
2026-10-20 22:43:11 +08:00
2026-10-15 15:49:45 +08:00
2026-08-29 18:51:57 +08:00
2026-08-29 18:51:57 +08:00
2026-08-29 18:51:57 +08:00
2026-10-15 15:49:45 +08:00
2026-10-22 16:23:17 +08:00
2026-10-09 21:39:51 +08:00
2026-10-09 21:39:51 +08:00
2026-05-16 14:54:47 +08:00
2026-10-09 21:39:51 +08:00
2026-10-22 16:23:19 +08:00
2026-10-22 16:23:19 +08:00
2026-09-08 20:47:01 +08:00
2026-10-09 21:39:51 +08:00
2026-09-01 21:53:35 +08:00
2026-10-12 21:33:53 +08:00
2026-10-19 19:25:11 +08:00
2026-10-20 22:43:11 +08:00
2026-10-22 16:23:17 +08:00
2026-09-18 11:24:29 +08:00
2026-10-11 17:10:53 +08:00
2026-10-15 15:49:45 +08:00
2026-07-20 16:48:43 +08:00
2026-07-20 16:48:43 +08:00
2026-09-03 20:42:57 +08:00
2026-10-09 21:39:51 +08:00
2026-10-20 22:43:11 +08:00
2026-10-12 18:19:04 +08:00
2026-10-09 21:39:51 +08:00
2026-10-09 21:39:51 +08:00
2026-10-09 21:39:51 +08:00
2026-10-09 21:39:51 +08:00
2026-10-09 21:39:51 +08:00
2026-10-09 21:39:51 +08:00
2026-07-07 21:22:49 +08:00
2026-10-09 21:39:51 +08:00
2026-09-18 11:24:30 +08:00
2026-09-18 11:24:30 +08:00
2026-10-20 20:50:02 +08:00
2026-08-29 18:51:57 +08:00
2026-08-29 18:51:57 +08:00
2026-08-29 18:51:57 +08:00
2026-10-09 21:39:51 +08:00
2026-10-09 21:39:51 +08:00
2026-10-20 20:50:02 +08:00
2026-09-08 20:55:03 +08:00
2026-09-06 22:48:59 +08:00
2026-10-09 21:39:51 +08:00
2026-08-01 23:19:01 +08:00
2026-10-13 21:39:52 +08:00
2026-10-13 21:39:52 +08:00
2026-10-09 21:39:51 +08:00
2026-10-09 21:39:51 +08:00
2026-10-09 21:39:51 +08:00
2026-09-08 20:55:03 +08:00
2026-10-09 21:39:51 +08:00
2026-10-09 21:39:51 +08:00
2026-10-09 21:39:51 +08:00
2026-10-09 21:39:51 +08:00
2026-09-08 20:55:03 +08:00
2026-06-20 18:57:47 +08:00
2026-10-12 21:33:53 +08:00
2026-10-17 22:17:59 +08:00
2026-10-09 21:39:51 +08:00
2026-10-17 22:17:59 +08:00
2026-10-09 21:39:51 +08:00
2026-10-10 14:02:06 +08:00
2026-10-17 22:17:59 +08:00