Skip to content

πŸͺ’ Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore(pricing): gpt-5.4/5.5 large-context tiers, sonnet-4.5 and gemini-3.5-flash-lite fixes (#15722)

langfuse-botf06126ddc426
diff --git a/.agents/skills/add-model-price/references/model-audit-memory.md b/.agents/skills/add-model-price/references/model-audit-memory.md
index 29f4569e75..b16c631e42 100644
--- a/.agents/skills/add-model-price/references/model-audit-memory.md
+++ b/.agents/skills/add-model-price/references/model-audit-memory.md
@@ -12,69 +12,109 @@ audit date.
## Latest useful snapshot
-**Audit date:** 2026-07-31
+**Audit date:** 2026-08-04
All prices listed as `$X / MTok` (per million tokens). Per-token JSON values: divide by 1,000,000.
| Provider | Model / pricing entry | Pricing checked | Price confirmed | Tiering checked | Tiering correct | Change | Official source(s) | Comments |
| -------- | --------------------- | --------------- | --------------- | --------------- | --------------- | ------ | ------------------ | -------- |
-| Anthropic | claude-fable-5 | Input $10/MTok (10e-6), Output $50/MTok (50e-6), 5m cache write $12.5/MTok (12.5e-6), 1h cache write $20/MTok (20e-6), cache read $1/MTok (1e-6) | Yes | Flat 1M context at standard pricing β€” no large-context tier | Yes | None | https://platform.claude.com/docs/en/about-claude/pricing | Confirmed. In flat long-context list. |
-| Anthropic | claude-mythos-5 | Input $10/MTok (10e-6), Output $50/MTok (50e-6), 5m $12.5/MTok, 1h $20/MTok, read $1/MTok | Yes | Flat 1M context β€” no large-context tier | Yes | None | https://platform.claude.com/docs/en/about-claude/pricing | Limited availability (Project Glasswing). Same prices as Fable 5. |
-| Anthropic | claude-opus-5 | Input $5/MTok (5e-6), Output $25/MTok (25e-6), 5m $6.25/MTok (6.25e-6), 1h $10/MTok (10e-6), read $0.50/MTok (0.5e-6) | Yes | Flat 1M context at standard pricing β€” no large-context tier | Yes | None | https://platform.claude.com/docs/en/about-claude/pricing https://platform.claude.com/docs/en/about-claude/models/overview | Added July 25 2026. API ID: `claude-opus-5`. Bedrock ID: `anthropic.claude-opus-5`. Google Cloud ID: `claude-opus-5`. In flat long-context list. Fast mode at $10/$50 MTok (shared with Opus 4.8). |
-| Anthropic | claude-opus-4-8 | Input $5/MTok (5e-6), Output $25/MTok (25e-6), 5m $6.25/MTok (6.25e-6), 1h $10/MTok (10e-6), read $0.50/MTok (0.5e-6) | Yes | Flat 1M context β€” no large-context tier | Yes | None | https://platform.claude.com/docs/en/about-claude/pricing | Fast mode at $10/$50 per input/output MTok (additional SKU). |
-| Anthropic | claude-opus-4-7 | Input $5/MTok (5e-6), Output $25/MTok (25e-6), 5m $6.25/MTok, 1h $10/MTok, read $0.50/MTok | Yes | Flat 1M context β€” no large-context tier | Yes | None | https://platform.claude.com/docs/en/about-claude/pricing | Confirmed. |
-| Anthropic | claude-opus-4-6 | Input $5/MTok (5e-6), Output $25/MTok (25e-6), 5m $6.25/MTok, 1h $10/MTok, read $0.50/MTok | Yes | Flat 1M context β€” no large-context tier | Yes | None | https://platform.claude.com/docs/en/about-claude/pricing | `inference_geo: "us"` adds 1.1Γ— multiplier for this and later models. |
-| Anthropic | claude-opus-4-5-20251101 | Input $5/MTok (5e-6), Output $25/MTok (25e-6), 5m $6.25/MTok, 1h $10/MTok, read $0.50/MTok | Yes | Flat 1M context at standard pricing per official page | Yes | None | https://platform.claude.com/docs/en/about-claude/pricing https://platform.claude.com/docs/en/about-claude/models/overview | "Claude Opus 4.5" now explicitly listed on official pricing page (confirmed July 27 2026). API ID: `claude-opus-4-5-20251101`, alias `claude-opus-4-5`. matchPattern covers both. |
-| Anthropic | claude-opus-4-1-20250805 | Input $15/MTok (15e-6), Output $75/MTok (75e-6), 5m $18.75/MTok, 1h $30/MTok, read $1.50/MTok | Yes | Deprecated model β€” no tiering | Not applicable | None | https://platform.claude.com/docs/en/about-claude/pricing | Deprecated. Retires August 5, 2026. Retained for backward pricing compatibility. |
-| Anthropic | claude-opus-4-20250514 | Input $15/MTok (15e-6), Output $75/MTok (75e-6), 5m $18.75/MTok, 1h $30/MTok, read $1.50/MTok | No | Retired model | Not applicable | None | https://platform.claude.com/docs/en/about-claude/pricing | Retired except on Google Cloud. Not on current pricing page main table. |
-| Anthropic | claude-sonnet-5 | Input $2/MTok (2e-6), Output $10/MTok (10e-6), 5m $2.50/MTok, 1h $4/MTok, read $0.20/MTok | Yes | Flat 1M context; introductory pricing through August 31 2026 | Yes | None | https://platform.claude.com/docs/en/about-claude/pricing | Introductory pricing confirmed through Aug 31 2026. Standard from Sep 1 2026: $3/$15, cache $3.75/$6/$0.30. File must be updated after Aug 31 2026. |
-| Anthropic | claude-sonnet-4-6 | Input $3/MTok (3e-6), Output $15/MTok (15e-6), 5m $3.75/MTok, 1h $6/MTok, read $0.30/MTok | Yes | Flat 1M context β€” no large-context tier | Yes | None | https://platform.claude.com/docs/en/about-claude/pricing | Confirmed. |
-| Anthropic | claude-sonnet-4-5-20250929 | Input $3/MTok (3e-6), Output $15/MTok (15e-6), 5m $3.75/MTok, 1h $6/MTok, read $0.30/MTok | Yes | Large Context >200K: 2Γ— input / 1.5Γ— output β€” tier in file, not explicitly published by Anthropic | No | None | https://platform.claude.com/docs/en/about-claude/pricing | Sonnet 4.5 NOT on flat long-context list. Anthropic page does not publish per-tier pricing for this model. The Large Context tier was set when model was first added. Unresolved. |
-| Anthropic | claude-sonnet-4-20250514 | Input $3/MTok (3e-6), Output $15/MTok (15e-6), 5m $3.75/MTok, 1h $6/MTok, read $0.30/MTok | Yes | Retired model | Not applicable | None | https://platform.claude.com/docs/en/about-claude/pricing | Retired except on Bedrock and Google Cloud. |
-| Anthropic | claude-haiku-4-5-20251001 | Input $1/MTok (1e-6), Output $5/MTok (5e-6), 5m $1.25/MTok (1.25e-6), 1h $2/MTok (2e-6), read $0.10/MTok (1e-7) | Yes | No large-context tier | Not applicable | None | https://platform.claude.com/docs/en/about-claude/pricing | Confirmed. Haiku 4.5 NOT on flat long-context list. |
-| Anthropic | claude-3-5-haiku-20241022 | Input $0.80/MTok (8e-7), Output $4/MTok (4e-6), 5m $1/MTok, 1h $1.60/MTok, read $0.08/MTok | Yes | Retired model | Not applicable | None | https://platform.claude.com/docs/en/about-claude/pricing | Retired except on Bedrock and Google Cloud. |
-| Anthropic | claude-3.7-sonnet-20250219 | Input $3/MTok, Output $15/MTok, cache $3.75/$6/$0.30 per MTok | No | Not on current page | Not applicable | None | https://platform.claude.com/docs/en/about-claude/pricing | Not listed on current official pricing page. Legacy prices retained. |
-| Anthropic | claude-3.5-sonnet-20241022 | Input $3/MTok, Output $15/MTok, cache $3.75/$6/$0.30 per MTok | No | Not on current page | Not applicable | None | https://platform.claude.com/docs/en/about-claude/pricing | Not listed on current official pricing page. Legacy prices retained. |
-| Anthropic | claude-3-5-sonnet-20240620 | Input $3/MTok, Output $15/MTok, cache $3.75/$6/$0.30 per MTok | No | Not on current page | Not applicable | None | https://platform.claude.com/docs/en/about-claude/pricing | Not listed on current official pricing page. Legacy prices retained. |
-| Anthropic | claude-3-opus-20240229 | Input $15/MTok, Output $75/MTok | No | Not on current page | Not applicable | None | https://platform.claude.com/docs/en/about-claude/pricing | Legacy. Not on current pricing page. |
-| Anthropic | claude-3-sonnet-20240229 | Input $3/MTok, Output $15/MTok, cache set | No | Not on current page | Not applicable | None | https://platform.claude.com/docs/en/about-claude/pricing | Legacy. Not on current pricing page. |
-| Anthropic | claude-3-haiku-20240307 | Input $0.25/MTok, Output $1.25/MTok | No | Not on current page | Not applicable | None | https://platform.claude.com/docs/en/about-claude/pricing | Legacy. Not on current pricing page. |
-| OpenAI | gpt-5.3-codex | Input $1.75/MTok (1.75e-6), Cached $0.175/MTok (0.175e-6), Output $14.00/MTok (14e-6) | Yes | No large-context tier; 400k context window (single tier) | Yes | Added | https://developers.openai.com/api/docs/pricing https://developers.openai.com/api/docs/models/gpt-5.3-codex | "Most capable agentic coding model." 400k context window, 128k max output. No date-stamped snapshot at launch. Added to pricing file and openAIModels in July 27 2026 audit. |
-| OpenAI | gpt-5.6-sol | Input $5/MTok (5e-6), Cached $0.50/MTok (0.5e-6), Output $30/MTok (30e-6) | Yes | Large Context (>272K): input $10/MTok, cached $1/MTok, output $45/MTok | Yes | None | https://developers.openai.com/api/docs/pricing | Reasoning model. 272K threshold unique to gpt-5.6 family. |
-| OpenAI | gpt-5.6-terra | Input $2.00/MTok (2e-6), Cached $0.20/MTok (0.2e-6), Output $12.00/MTok (12e-6) | Yes | Large Context (>272K): input $4/MTok, cached $0.40/MTok, output $18/MTok | Yes | Updated | https://developers.openai.com/api/docs/pricing https://developers.openai.com/api/docs/models/gpt-5.6-terra | Reasoning model. Price cut confirmed July 31 2026 (previously $2.50/$0.25/$15.00); 4 independent WebFetch calls agreed. gpt-5.6-sol unchanged. |
-| OpenAI | gpt-5.6-luna | Input $0.20/MTok (0.2e-6), Cached $0.02/MTok (0.02e-6), Output $1.20/MTok (1.2e-6) | Yes | Large Context (>272K): input $0.40/MTok, cached $0.04/MTok, output $1.80/MTok | Yes | Updated | https://developers.openai.com/api/docs/pricing https://developers.openai.com/api/docs/models/gpt-5.6-luna | Reasoning model. Price cut confirmed July 31 2026 (previously $1.00/$0.10/$6.00); 4 independent WebFetch calls agreed. gpt-5.6-sol unchanged. |
-| OpenAI | gpt-5.5-2026-04-23 (also matches gpt-5.5) | Input $5/MTok (5e-6), Cached $0.50/MTok (0.5e-6), Output $30/MTok (30e-6) | Yes | No large-context tier in file; large context mentioned by OpenAI but threshold not confirmed | No | None | https://developers.openai.com/api/docs/pricing | Reasoning model. matchPattern covers plain gpt-5.5 (dated suffix is optional). Large-context threshold unresolved. |
-| OpenAI | gpt-5.5-pro-2026-04-23 (also matches gpt-5.5-pro) | Input $30/MTok (30e-6), Output $180/MTok (180e-6); no cache | Yes | No tiering in file | Not applicable | None | https://developers.openai.com/api/docs/pricing | Reasoning model; no cached input pricing. matchPattern covers plain gpt-5.5-pro. |
-| OpenAI | gpt-5.4 | Input $2.50/MTok (2.5e-6), Cached $0.25/MTok (0.25e-6), Output $15/MTok (15e-6) | Yes | No large-context tier confirmed | No | None | https://developers.openai.com/api/docs/pricing | Reasoning model. Large-context threshold unresolved. |
-| OpenAI | gpt-5.4-2026-03-05 | Input $2.50/MTok, Cached $0.25/MTok, Output $15/MTok | Yes | No tiering | Not applicable | None | https://developers.openai.com/api/docs/pricing | Dated snapshot for gpt-5.4. |
-| OpenAI | gpt-5.4-pro | Input $30/MTok (30e-6), Output $180/MTok (180e-6); no cache | Yes | No tiering | Not applicable | None | https://developers.openai.com/api/docs/pricing | Reasoning model; no cached input pricing. |
-| OpenAI | gpt-5.4-mini | Input $0.75/MTok (0.75e-6), Cached $0.075/MTok (0.075e-6), Output $4.50/MTok (4.5e-6) | Yes | No tiering | Not applicable | None | https://developers.openai.com/api/docs/pricing | Non-reasoning model. Confirmed. |
-| OpenAI | gpt-5.4-nano | Input $0.20/MTok (0.2e-6), Cached $0.02/MTok (0.02e-6), Output $1.25/MTok (1.25e-6) | Yes | No tiering | Not applicable | None | https://developers.openai.com/api/docs/pricing | Non-reasoning model. Confirmed. |
-| OpenAI | gpt-5-chat-latest | Input $1.25/MTok (1.25e-6), Cached $0.125/MTok (1.25e-7), Output $10/MTok (10e-6) | No | No provider tiering | Not applicable | None | https://developers.openai.com/api/docs/pricing | Prices match the file. Not re-verified directly this run (page did not list it in the summary). Retained from July 25 audit. |
-| Google | gemini-2.5-flash | Input $0.30/MTok (3e-7), Audio $1/MTok (1e-6), Output $2.50/MTok (2.5e-6), Cache read $0.03/MTok (3e-8) | Yes | No large-context tier; single tier confirmed | Yes | None | https://ai.google.dev/pricing | Cache read = 10% of standard input. Confirmed. |
-| Google | gemini-2.5-flash-lite | Input $0.10/MTok (1e-7), Audio $0.30/MTok (3e-7), Output $0.40/MTok (4e-7), Cache read $0.01/MTok (1e-8) | Yes | No large-context tier | Yes | None | https://ai.google.dev/pricing | Cache read = 10% of input. Confirmed. |
-| Google | gemini-2.5-pro | Input $1.25/MTok (1.25e-6) ≀200K, $2.50/MTok >200K; Output $10/MTok ≀200K, $15/MTok >200K; Cache read $0.125/MTok ≀200K | Yes | Large Context (>200K) confirmed | Yes | None | https://ai.google.dev/pricing | Two tiers confirmed. Cache = 10% of input at each tier. |
-| Google | gemini-3.5-flash | Input $1.50/MTok (1.5e-6), Output $9.00/MTok (9e-6), Cache read $0.15/MTok (1.5e-7) | Yes | No large-context tier | Yes | None | https://ai.google.dev/pricing | Cache = 10% of input. Confirmed. |
-| Google | gemini-3.1-flash-lite | Input $0.25/MTok (2.5e-7), Audio $0.50/MTok (5e-7), Output $1.50/MTok (1.5e-6), Cache read $0.025/MTok (2.5e-8, text/image/video) / $0.05/MTok (5e-8, audio) | Yes | No large-context tier | Yes | None | https://ai.google.dev/pricing | RESOLVED July 31 2026: the pricing table has separate Free-tier and Paid-tier columns; "Not available" seen in prior audits described the Free tier only. A verbatim-quote fetch confirmed Paid-tier caching at $0.025/MTok (text/image/video), $0.05/MTok (audio), plus a $1.00/MTok/hour storage price (time-based, no equivalent Langfuse usage key β€” not represented). File's existing cache pricing is correct; no change made. |
-| Google | gemini-3.1-flash-lite-preview | Input $0.25/MTok, Output $1.50/MTok (same as GA) | No | No large-context tier | Not applicable | None | https://ai.google.dev/pricing | Preview variant; same prices as GA version in file; not separately listed on official page. |
-| Google | gemini-3.1-pro-preview | Input $2/MTok (2e-6) ≀200K, $4/MTok >200K; Output $12/MTok ≀200K, $18/MTok >200K | Yes | Large Context (>200K) confirmed | Yes | None | https://ai.google.dev/pricing | Two tiers confirmed on AI Studio page. |
-| Google | gemini-3-flash-preview | Input $0.50/MTok (5e-7), Audio $1/MTok (1e-6), Output $3/MTok (3e-6), Cache read $0.05/MTok (5e-8) | Yes | No large-context tier | Yes | None | https://ai.google.dev/pricing | Confirmed on AI Studio page. |
-| Google | gemini-3-pro-preview | Input $2/MTok (2e-6) ≀200K, $4/MTok >200K; Output $12/MTok ≀200K, $18/MTok >200K | No | Large Context (>200K) set in file | Not applicable | None | https://ai.google.dev/pricing | Not listed on current AI Studio pricing page. Existing prices retained. |
-| Google | gemini-2.0-flash | Input $0.10/MTok (1e-7), Output $0.40/MTok (4e-7) | No | Deprecated (shut down June 1, 2026) | Not applicable | None | https://ai.google.dev/pricing | Officially shut down June 1 2026. Existing prices retained for backward compatibility. |
-| Google | gemini-2.0-flash-001 | Same as gemini-2.0-flash | No | Deprecated (shut down June 1, 2026) | Not applicable | None | https://ai.google.dev/pricing | Officially shut down. Existing prices retained for backward compatibility. |
-| Google | gemini-3.6-flash | Input $1.50/MTok (1.5e-6), Output $7.50/MTok (7.5e-6), Cache read $0.15/MTok (1.5e-7) | Yes | No large-context tier on official page | Yes | None | https://ai.google.dev/pricing | Confirmed on official AI Studio pricing page. Output ($7.50) is lower than gemini-3.5-flash ($9.00) β€” correct per official page. |
-| Google | gemini-3.5-flash-lite | Input $0.30/MTok (3e-7), Output $2.50/MTok (2.5e-6) | Yes | No large-context tier | Yes | None | https://ai.google.dev/pricing | Context caching is "Not available" per official page (all tiers: Standard, Batch, Flex, Priority). Confirmed by both July 25 audit and July 27 2026 fetch. Cache keys absent from pricing entry. Do NOT add cache pricing for this model without explicit official evidence. |
+| Anthropic | claude-fable-5 | Input $10/MTok, Output $50/MTok, 5m $12.50/MTok, 1h $20/MTok, read $1/MTok | Yes | Flat 1M context at standard pricing | Yes | None | https://platform.claude.com/docs/en/about-claude/pricing | Confirmed via full pricing table fetch. |
+| Anthropic | claude-mythos-5 | Same as Fable 5 | Yes | Flat 1M context | Yes | None | https://platform.claude.com/docs/en/about-claude/pricing | Limited availability (Project Glasswing). Confirmed. |
+| Anthropic | claude-opus-5 | Input $5/MTok, Output $25/MTok, 5m $6.25/MTok, 1h $10/MTok, read $0.50/MTok | Yes | Flat 1M context | Yes | None | https://platform.claude.com/docs/en/about-claude/pricing | Confirmed. Fast mode $10/$50 MTok. |
+| Anthropic | claude-opus-4-8 | Same as Opus 5 | Yes | Flat 1M context | Yes | None | https://platform.claude.com/docs/en/about-claude/pricing | Confirmed. |
+| Anthropic | claude-opus-4-7 | Same as Opus 5 | Yes | Flat 1M context | Yes | None | https://platform.claude.com/docs/en/about-claude/pricing | Confirmed. |
+| Anthropic | claude-opus-4-6 | Same as Opus 5 | Yes | Flat 1M context | Yes | None | https://platform.claude.com/docs/en/about-claude/pricing | Confirmed. `inference_geo: "us"` adds 1.1x. |
+| Anthropic | claude-opus-4-5-20251101 | Same as Opus 5 | Yes | Flat 1M context | Yes | None | https://platform.claude.com/docs/en/about-claude/pricing | Confirmed. |
+| Anthropic | claude-opus-4-1-20250805 | Input $15/MTok, Output $75/MTok, 5m $18.75/MTok, 1h $30/MTok, read $1.50/MTok | Yes | Deprecated β€” no tiering | Not applicable | None | https://platform.claude.com/docs/en/about-claude/pricing | Deprecated, retires August 5, 2026 (tomorrow as of this audit). Still listed on official page; entry retained. |
+| Anthropic | claude-opus-4-20250514 | Input $15/MTok, Output $75/MTok, 5m $18.75/MTok, 1h $30/MTok, read $1.50/MTok | Yes | Retired except Google Cloud β€” no tiering | Not applicable | None | https://platform.claude.com/docs/en/about-claude/pricing | Confirmed present on current page's main table this run (row: "Claude Opus 4 (retired, except on Google Cloud)"), correcting a prior audit's belief it was absent from the page. |
+| Anthropic | claude-sonnet-5 | Input $2/MTok, Output $10/MTok (through Aug 31, 2026); 5m $2.50/MTok, 1h $4/MTok, read $0.20/MTok | Yes | Flat 1M context; introductory pricing through Aug 31 2026 | Yes | None | https://platform.claude.com/docs/en/about-claude/pricing | Standard pricing $3/$15 (cache $3.75/$6/$0.30) takes effect Sep 1, 2026 β€” update the file then. |
+| Anthropic | claude-sonnet-4-6 | Input $3/MTok, Output $15/MTok, 5m $3.75/MTok, 1h $6/MTok, read $0.30/MTok | Yes | Flat 1M context | Yes | None | https://platform.claude.com/docs/en/about-claude/pricing | Confirmed. |
+| Anthropic | claude-sonnet-4-5-20250929 | Input $3/MTok, Output $15/MTok, 5m $3.75/MTok, 1h $6/MTok, read $0.30/MTok | Yes | No large-context tier (200k hard context-window cap) | Yes | Updated | https://platform.claude.com/docs/en/about-claude/pricing https://platform.claude.com/docs/en/build-with-claude/context-windows | Removed an incorrect "Large Context (>200K)" tier. The context-windows page confirms Sonnet 4.5 has a hard 200k-token context window (not on the 1M list) and that exceeding it returns a 400 error rather than being billed at a premium, so the tier's condition could never legitimately fire. Resolves a finding left unresolved since at least the June 2026 audit. |
+| Anthropic | claude-sonnet-4-20250514 | Input $3/MTok, Output $15/MTok, 5m $3.75/MTok, 1h $6/MTok, read $0.30/MTok | Yes | Retired except Bedrock/Google Cloud β€” no tiering | Not applicable | None | https://platform.claude.com/docs/en/about-claude/pricing | Confirmed present on current page's main table this run. |
+| Anthropic | claude-haiku-4-5-20251001 | Input $1/MTok, Output $5/MTok, 5m $1.25/MTok, 1h $2/MTok, read $0.10/MTok | Yes | No large-context tier (200k context window, not on flat 1M list) | Not applicable | None | https://platform.claude.com/docs/en/about-claude/pricing | Confirmed. |
+| Anthropic | claude-3-5-haiku-20241022 | Input $0.80/MTok, Output $4/MTok, 5m $1/MTok, 1h $1.60/MTok, read $0.08/MTok | Yes | Retired except Bedrock/Google Cloud | Not applicable | None | https://platform.claude.com/docs/en/about-claude/pricing | Confirmed present on current page's main table this run ("Claude Haiku 3.5"). |
+| Anthropic | claude-3.7-sonnet-20250219 | Input $3/MTok, Output $15/MTok, cache $3.75/$6/$0.30 | No | Not on current page | Not applicable | None | https://platform.claude.com/docs/en/about-claude/pricing | Not on current page this run either. Legacy prices retained, not re-verified. |
+| Anthropic | claude-3.5-sonnet-20241022 | Input $3/MTok, Output $15/MTok, cache $3.75/$6/$0.30 | No | Not on current page | Not applicable | None | https://platform.claude.com/docs/en/about-claude/pricing | Not re-verified this run. Legacy prices retained. Bedrock has a separate, higher "Public Extended Access" SKU β€” see comments on Bedrock below; not representable in the schema. |
+| Anthropic | claude-3-5-sonnet-20240620 | Input $3/MTok, Output $15/MTok, cache $3.75/$6/$0.30 | No | Not on current page | Not applicable | None | https://platform.claude.com/docs/en/about-claude/pricing | Not re-verified this run. Legacy prices retained. Same Bedrock Public Extended Access caveat as v2 above. |
+| Anthropic | claude-3-opus-20240229 | Input $15/MTok, Output $75/MTok | No | Not on current page | Not applicable | None | https://platform.claude.com/docs/en/about-claude/pricing | Not re-verified this run. Legacy. |
+| Anthropic | claude-3-sonnet-20240229 | Input $3/MTok, Output $15/MTok | No | Not on current page | Not applicable | None | https://platform.claude.com/docs/en/about-claude/pricing | Not re-verified this run. Legacy. |
+| Anthropic | claude-3-haiku-20240307 | Input $0.25/MTok, Output $1.25/MTok | No | Not on current page | Not applicable | None | https://platform.claude.com/docs/en/about-claude/pricing | Not re-verified this run. Legacy. |
+| AWS Bedrock | claude-3-5-sonnet-20240620 / claude-3.5-sonnet-20241022 (Public Extended Access SKU) | $6.00/MTok input, $30.00/MTok output, $7.50/MTok cache write, $0.60/MTok cache read | Yes (SKU confirmed real) | Distinct dated SKU, not a context-length tier | Not applicable | Unresolved | https://aws.amazon.com/bedrock/pricing/ | Confirmed via targeted verbatim fetch that this is a real, distinct "Public Extended Access, Effective 1 Dec 2025" Bedrock SKU at double the standard $3/$15 rate for the same model IDs. Not actionable: Langfuse's schema matches by model-ID string only and cannot distinguish which Bedrock billing tier a given request used, so no file change was made. Documented as a permanent, confirmed limitation β€” see provider-sources-and-price-keys.md. |
+| OpenAI | gpt-5.6-sol | Input $5/MTok, Cached $0.50/MTok, Cache write $6.25/MTok, Output $30/MTok | Yes | Large Context (>272K): $10/$1.00/$12.50/$45 | Yes | None | https://developers.openai.com/api/docs/pricing https://developers.openai.com/api/docs/models/gpt-5.6-sol | Confirmed cache-write pricing (1.25x input) already correctly present in file. |
+| OpenAI | gpt-5.6-terra | Input $2/MTok, Cached $0.20/MTok, Cache write $2.50/MTok, Output $12/MTok | Yes | Large Context (>272K): $4/$0.40/$5.00/$18 | Yes | None | https://developers.openai.com/api/docs/pricing https://developers.openai.com/api/docs/models/gpt-5.6-terra | Confirmed stable since July 31 2026 price cut. |
+| OpenAI | gpt-5.6-luna | Input $0.20/MTok, Cached $0.02/MTok, Cache write $0.25/MTok, Output $1.20/MTok | Yes | Large Context (>272K): $0.40/$0.04/$0.50/$1.80 | Yes | None | https://developers.openai.com/api/docs/pricing https://developers.openai.com/api/docs/models/gpt-5.6-luna | Confirmed stable since July 31 2026 price cut. |
+| OpenAI | gpt-5.5-2026-04-23 (alias gpt-5.5) | Input $5/MTok, Cached $0.50/MTok, Output $30/MTok | Yes | Large Context (>272K): $10/$1.00/$45 | Yes | Updated | https://developers.openai.com/api/docs/pricing https://developers.openai.com/api/docs/models/gpt-5.5 | Added Large Context tier (272K threshold now confirmed, resolving a long-standing unresolved finding) plus missing `cache_read_input_tokens`/`reasoning_tokens` aliases. No cache-write pricing for this model (confirmed). |
+| OpenAI | gpt-5.5-pro-2026-04-23 (alias gpt-5.5-pro) | Input $30/MTok, Output $180/MTok; no cache | Yes | Large Context (>272K): $60/$270 | Yes | Updated | https://developers.openai.com/api/docs/pricing https://developers.openai.com/api/docs/models/gpt-5.5-pro | Added Large Context tier plus missing `reasoning_tokens` alias. |
+| OpenAI | gpt-5.4 | Input $2.50/MTok, Cached $0.25/MTok, Output $15/MTok | Yes | Large Context (>272K): $5.00/$0.50/$22.50 | Yes | Updated | https://developers.openai.com/api/docs/pricing https://developers.openai.com/api/docs/models/gpt-5.4 | Added Large Context tier plus missing `cache_read_input_tokens`/`reasoning_tokens` aliases. |
+| OpenAI | gpt-5.4-2026-03-05 | Same as gpt-5.4 | Yes | Large Context (>272K): $5.00/$0.50/$22.50 | Yes | Updated | https://developers.openai.com/api/docs/pricing https://developers.openai.com/api/docs/models/gpt-5.4 | Dated snapshot sibling of gpt-5.4; same fix applied. |
+| OpenAI | gpt-5.4-pro | Input $30/MTok, Output $180/MTok; no cache | Yes | Large Context (>272K): $60/$270 | Yes | Updated | https://developers.openai.com/api/docs/pricing https://developers.openai.com/api/docs/models/gpt-5.4 | Added Large Context tier plus missing `reasoning_tokens` alias. |
+| OpenAI | gpt-5.4-pro-2026-03-05 | Same as gpt-5.4-pro | Yes | Large Context (>272K): $60/$270 | Yes | Updated | https://developers.openai.com/api/docs/pricing https://developers.openai.com/api/docs/models/gpt-5.4 | Dated snapshot sibling; same fix applied. |
+| OpenAI | gpt-5.4-mini | Input $0.75/MTok, Cached $0.075/MTok, Output $4.50/MTok | Yes | No large-context tier (dashes confirmed in official table) | Yes | None | https://developers.openai.com/api/docs/pricing | Confirmed no large-context tier applies; left unchanged. |
+| OpenAI | gpt-5.4-mini-2026-03-17 | Same as gpt-5.4-mini | Yes | No large-context tier | Yes | None | https://developers.openai.com/api/docs/pricing | Dated snapshot sibling; confirmed unchanged. |
+| OpenAI | gpt-5.4-nano | Input $0.20/MTok, Cached $0.02/MTok, Output $1.25/MTok | Yes | No large-context tier | Yes | None | https://developers.openai.com/api/docs/pricing | Confirmed unchanged. |
+| OpenAI | gpt-5.4-nano-2026-03-17 | Same as gpt-5.4-nano | Yes | No large-context tier | Yes | None | https://developers.openai.com/api/docs/pricing | Dated snapshot sibling; confirmed unchanged. |
+| OpenAI | gpt-5.3-codex | Input $1.75/MTok, Cached $0.175/MTok, Output $14.00/MTok | Yes | No large-context tier (400k context window, single tier) | Yes | None | https://developers.openai.com/api/docs/pricing | Confirmed unchanged. |
+| OpenAI | gpt-5.2-2025-12-11 | Input $1.75/MTok, Cached $0.175/MTok, Output $14.00/MTok | Yes | No large-context tier | Yes | None | https://developers.openai.com/api/docs/pricing | Confirmed unchanged. |
+| OpenAI | gpt-5.1-2025-11-13 | Input $1.25/MTok, Cached $0.125/MTok, Output $10/MTok | Yes | No large-context tier | Yes | None | https://developers.openai.com/api/docs/pricing | Confirmed unchanged. |
+| OpenAI | gpt-5-2025-08-07 | Input $1.25/MTok, Cached $0.125/MTok, Output $10/MTok | Yes | No large-context tier | Yes | None | https://developers.openai.com/api/docs/pricing | Confirmed unchanged. |
+| OpenAI | gpt-5-mini-2025-08-07 | Input $0.25/MTok, Cached $0.025/MTok, Output $2/MTok | Yes | No large-context tier | Yes | None | https://developers.openai.com/api/docs/pricing | Confirmed unchanged. |
+| OpenAI | gpt-5-nano-2025-08-07 | Input $0.05/MTok, Cached $0.005/MTok, Output $0.40/MTok | Yes | No large-context tier | Yes | None | https://developers.openai.com/api/docs/pricing | Confirmed unchanged. |
+| OpenAI | gpt-5-pro-2025-10-06 | Input $15/MTok, Output $120/MTok; no cache | Yes | No large-context tier | Yes | None | https://developers.openai.com/api/docs/models/gpt-5-pro | Confirmed unchanged via dedicated model page. |
+| OpenAI | gpt-5.2-pro-2025-12-11 | Input $21/MTok, Output $168/MTok; no cache | Yes | No large-context tier | Yes | None | https://developers.openai.com/api/docs/models/gpt-5.2-pro | Confirmed unchanged via dedicated model page. |
+| OpenAI | gpt-4.1-2025-04-14 | Input $2/MTok, Cached $0.50/MTok, Output $8/MTok | Yes | No large-context tier | Yes | None | https://developers.openai.com/api/docs/pricing | Confirmed unchanged. |
+| OpenAI | gpt-4.1-mini-2025-04-14 | Input $0.40/MTok, Cached $0.10/MTok, Output $1.60/MTok | Yes | No large-context tier | Yes | None | https://developers.openai.com/api/docs/pricing | Confirmed unchanged. |
+| OpenAI | gpt-4.1-nano-2025-04-14 | Input $0.10/MTok, Cached $0.025/MTok, Output $0.40/MTok | Yes | No large-context tier | Yes | None | https://developers.openai.com/api/docs/pricing | Confirmed unchanged. |
+| OpenAI | gpt-4o-2024-08-06 | Input $2.50/MTok, Cached $1.25/MTok, Output $10/MTok | Yes | No large-context tier | Yes | None | https://developers.openai.com/api/docs/pricing | Confirmed unchanged. |
+| OpenAI | gpt-4o-mini-2024-07-18 | Input $0.15/MTok, Cached $0.075/MTok, Output $0.60/MTok | Yes | No large-context tier | Yes | None | https://developers.openai.com/api/docs/pricing | Confirmed unchanged. |
+| OpenAI | o3-2025-04-16 | Input $2/MTok, Cached $0.50/MTok, Output $8/MTok | Yes | No large-context tier | Yes | None | https://developers.openai.com/api/docs/pricing | Confirmed unchanged. |
+| OpenAI | o3-mini-2025-01-31 | Input $1.10/MTok, Cached $0.55/MTok, Output $4.40/MTok | Yes | No large-context tier | Yes | None | https://developers.openai.com/api/docs/pricing | Confirmed unchanged. |
+| OpenAI | o4-mini-2025-04-16 | Input $1.10/MTok, Cached $0.275/MTok, Output $4.40/MTok | Yes | No large-context tier | Yes | None | https://developers.openai.com/api/docs/pricing | Confirmed unchanged. |
+| OpenAI | gpt-3.5-turbo | Input $0.50/MTok, Output $1.50/MTok; no cache | Yes | No large-context tier | Yes | None | https://developers.openai.com/api/docs/pricing | Confirmed unchanged. |
+| OpenAI | gpt-5-chat-latest | Input $1.25/MTok, Cached $0.125/MTok, Output $10/MTok | No | No provider tiering | Not applicable | None | https://developers.openai.com/api/docs/models/gpt-5-chat-latest | Not re-verified this run; retained from July 2026 audit. |
+| Google | gemini-2.5-flash | Input $0.30/MTok, Audio $1/MTok, Output $2.50/MTok, Cache read $0.03/MTok (audio $0.10/MTok) | Yes | No large-context tier | Yes | None | https://ai.google.dev/pricing | Confirmed unchanged. |
+| Google | gemini-2.5-flash-lite | Input $0.10/MTok, Audio $0.30/MTok, Output $0.40/MTok, Cache read $0.01/MTok (audio $0.03/MTok) | Yes | No large-context tier | Yes | None | https://ai.google.dev/pricing | Confirmed unchanged. |
+| Google | gemini-2.5-pro | Input $1.25/$2.50 MTok (≀200K/>200K), Output $10/$15, Cache read $0.125/$0.25 | Yes | Large Context (>200K) confirmed | Yes | None | https://ai.google.dev/pricing | Confirmed unchanged. |
+| Google | gemini-3.5-flash | Input $1.50/MTok, Output $9.00/MTok, Cache read $0.15/MTok | Yes | No large-context tier | Yes | None | https://ai.google.dev/pricing | Confirmed unchanged. |
+| Google | gemini-3.5-flash-lite | Input $0.30/MTok, Output $2.50/MTok, Cache read $0.03/MTok | Yes | No large-context tier | Yes | Updated | https://ai.google.dev/pricing https://ai.google.dev/gemini-api/docs/pricing | Re-added cache-read pricing after two independent verbatim, column-explicit fetches confirmed the Paid tier has context caching at $0.03/MTok (10% of input, matching Google's universal ratio); only the Free tier says "Not available". Reverses the July 22-31 2026 audits' conclusion that caching was unavailable on all tiers β€” see provider-sources-and-price-keys.md for the full flip-flop history and the lesson learned. |
+| Google | gemini-3.1-flash-lite | Input $0.25/$0.50 (text/audio), Output $1.50, Cache read $0.025/$0.05 | Yes | No large-context tier | Yes | None | https://ai.google.dev/pricing | Confirmed unchanged. |
+| Google | gemini-3.1-flash-lite-preview | Same as GA gemini-3.1-flash-lite | No | No large-context tier | Not applicable | None | https://ai.google.dev/pricing | Not separately listed on official page this run either; not re-verified. |
+| Google | gemini-3.1-pro-preview | Input $2/$4 MTok (≀200K/>200K), Output $12/$18 | Yes | Large Context (>200K) confirmed | Yes | None | https://ai.google.dev/pricing | Confirmed unchanged. |
+| Google | gemini-3-flash-preview | Input $0.50/$1.00 (text/audio), Output $3.00, Cache read $0.05/$0.10 | Yes | No large-context tier | Yes | None | https://ai.google.dev/pricing | Confirmed unchanged. |
+| Google | gemini-3-pro-preview | Input $2/$4 MTok (≀200K/>200K), Output $12/$18 | No | Large Context (>200K) set in file | Not applicable | None | https://ai.google.dev/pricing | Still not listed on official AI Studio page this run; existing prices retained, not re-verified. |
+| Google | gemini-3.6-flash | Input $1.50/MTok, Output $7.50/MTok, Cache read $0.15/MTok | Yes | No large-context tier | Yes | None | https://ai.google.dev/pricing | Confirmed unchanged. |
+| Google | gemini-2.0-flash | Input $0.10/MTok, Output $0.40/MTok | No | Deprecated (shut down June 1, 2026) | Not applicable | None | https://ai.google.dev/pricing | Not re-verified this run; retained for backward compatibility. |
+| Google | gemini-2.0-flash-001 | Same as gemini-2.0-flash | No | Deprecated (shut down June 1, 2026) | Not applicable | None | https://ai.google.dev/pricing | Not re-verified this run; retained for backward compatibility. |
-## Unresolved findings (updated 2026-07-31)
+## Unresolved findings (updated 2026-08-04)
-1. **gpt-5.5 / gpt-5.4 large-context tiers** β€” OpenAI page mentions extended context with doubled rates for these models, but the exact tier threshold (possibly 200K) is not confirmed. No Large Context tiers in the file for these models. Future audits should verify.
+1. **claude-sonnet-5 introductory pricing** β€” Introductory pricing ($2/$10/MTok) expires
+ August 31, 2026. Standard pricing ($3/$15/MTok, cache $3.75/$6/$0.30) takes effect
+ September 1, 2026. The pricing file must be updated before or on that date.
-2. **claude-sonnet-4-5-20250929 Large Context tier** β€” The file has a Large Context (>200K) tier for this model. The official Anthropic page does not explicitly publish per-tier pricing for this model separately. Future audits should verify.
+2. **claude-opus-4-1-20250805 retirement** β€” Deprecated, retiring August 5, 2026 (i.e. the
+ day after this audit). Still listed on the official pricing page as of this run. File
+ entry retained for backward pricing compatibility; no action required now, but check
+ whether the model is fully removed from the official page in the next audit.
-3. **claude-sonnet-5 introductory pricing** β€” Introductory pricing ($2/$10/MTok) expires August 31, 2026. Standard pricing ($3/$15/MTok, cache $3.75/$6/$0.30) takes effect September 1, 2026. The pricing file must be updated before or on September 1, 2026.
+3. **AWS Bedrock "Claude 3.5 Sonnet (Public Extended Access)" pricing** β€” Confirmed real
+ this run (see the dedicated row above and provider-sources-and-price-keys.md), but not
+ representable in Langfuse's schema because it matches by model-ID string only. No file
+ change should be made for this; treat it as a permanent, documented limitation rather
+ than something to re-investigate each run.
-4. **claude-opus-4-1-20250805 retirement** β€” Deprecated and retiring August 5, 2026. File entry retained for backward pricing compatibility. No action required; the entry stays so historical traces can still be priced.
+4. **Legacy Claude 3.x / 3.5 / 3.7 models not on the current pricing page** β€” Not
+ re-verified this run (`claude-3.7-sonnet-20250219`, `claude-3.5-sonnet-20241022`,
+ `claude-3-5-sonnet-20240620`, `claude-3-opus-20240229`, `claude-3-sonnet-20240229`,
+ `claude-3-haiku-20240307`). Existing prices retained. Low priority since these are
+ retired/legacy, but a future audit could check the model-deprecations page directly if
+ there is reason to believe pricing changed.
-5. **gpt-5.6-terra / gpt-5.6-luna price volatility** β€” Prices dropped between July 27 and July 31 2026 audits while gpt-5.6-sol stayed flat (see provider-sources-and-price-keys.md for full detail). Not itself unresolved (corrected this run), but a reminder that this family's non-flagship variants have moved independently before; re-verify each gpt-5.6 model ID's own page every run rather than assuming family-wide stability.
+5. **gemini-3.1-flash-lite-preview and gemini-3-pro-preview** β€” Still not separately listed
+ on the official AI Studio pricing page. Existing prices retained without fresh
+ confirmation. Re-verify if these move from preview to GA or gain their own pricing row.
-6. **AWS Bedrock "Claude 3.5 Sonnet (Public Extended Access)" pricing anomaly** β€” A July 31 2026 Bedrock pricing page fetch summary reported $6.00/MTok input, $30.00/MTok output for "Claude 3.5 Sonnet (Public Extended Access)" and "Claude 3.5 Sonnet v2 (Public Extended Access)" β€” double the $3/$15 standard API rate the file uses for `claude-3-5-sonnet-20240620` / `claude-3.5-sonnet-20241022`. This came from a broad summarized fetch, not a targeted row-by-row read, and may reflect a distinct Bedrock-only SKU, a stale/legacy listing, or a summarization artifact. Not acted on this run β€” no change made to the file. Future audits should fetch the Bedrock pricing page directly (not summarized) and confirm whether this Public Extended Access SKU is real and whether Langfuse should represent it separately, before making any change.
+6. **OpenAI "cache writes" may expand beyond the gpt-5.6 family** β€” As of this audit, the
+ distinct 1.25x-of-input cache-write billing dimension applies only to `gpt-5.6-sol`,
+ `gpt-5.6-terra`, and `gpt-5.6-luna`. Future audits should re-check the OpenAI pricing
+ table's "cache writes" column whenever a new reasoning model is added, since this could
+ spread to other model families.
diff --git a/.agents/skills/add-model-price/references/provider-sources-and-price-keys.md b/.agents/skills/add-model-price/references/provider-sources-and-price-keys.md
index 25df7c9ec6..5e5df3ec17 100644
--- a/.agents/skills/add-model-price/references/provider-sources-and-price-keys.md
+++ b/.agents/skills/add-model-price/references/provider-sources-and-price-keys.md
@@ -112,14 +112,25 @@ Always fetch pricing from the provider's official docs before editing.
(`vertexAIModels`, `googleAIStudioModels`) in the July 22 2026 audit. Note: despite the higher
version number, output price ($7.50) is lower than gemini-3.5-flash ($9.00); this is correct
per the official page (improved efficiency at same input price).
-- **Gemini 3.5 Flash-Lite (added July 2026)** β€” `gemini-3.5-flash-lite` appeared on the official
- AI Studio pricing page in July 2026 at $0.30/MTok input, $2.50/MTok output. No large-context
- tier. **Context caching is NOT available** for this model (explicitly listed as "Not available"
- on the official AI Studio pricing page for all tiers β€” Standard, Batch, Flex, Priority).
- The entry was initially added on July 22 2026 with cache pricing; the cache keys were
- removed on July 23 2026 after official confirmation. Do NOT add cache pricing for this model
- unless the official page explicitly adds it. Follows the same selectable-model pattern as
- gemini-3.1-flash-lite.
+- **Gemini 3.5 Flash-Lite (added July 2026; cache pricing corrected August 2026)** β€”
+ `gemini-3.5-flash-lite` appeared on the official AI Studio pricing page in July 2026 at
+ $0.30/MTok input, $2.50/MTok output. No large-context tier. The entry was initially added
+ on July 22 2026 with cache pricing; the cache keys were removed on July 23 2026 after the
+ page appeared to show "Not available" for context caching on this model. Two independent
+ verbatim-quote fetches on August 4 2026 (of both `ai.google.dev/pricing` and
+ `ai.google.dev/gemini-api/docs/pricing`, each explicitly asked to separate the Free-tier
+ column from the Paid-tier column) found the **Paid tier** context-caching read price is
+ **$0.03/MTok** (exactly 10% of the $0.30 input price, matching Google's universal Gemini
+ cache-read ratio), plus a $1.00/MTok/hour storage price (time-based, not representable β€”
+ see the `gemini-3.1-flash-lite` storage-price note above). Only the **Free tier** says "Not
+ available". Cache-read pricing (`input_cached_tokens` / `cached_content_token_count` at
+ 0.03e-6) was re-added to the pricing file on August 4 2026. Lesson: this model's context-
+ caching availability has flip-flopped across at least 4 audit runs (Jul 22 add, Jul 23
+ remove, Jul 25/27/31 confirm-removed, Aug 4 re-add) purely due to free/paid column
+ collapsing in WebFetch summaries β€” always request a verbatim quote that explicitly names
+ both columns for this specific page, and prefer cross-checking both
+ `ai.google.dev/pricing` and `ai.google.dev/gemini-api/docs/pricing` when the two prior
+ answers disagree.
- **Claude Opus 5 (added July 2026)** β€” `claude-opus-5` appeared on the official Anthropic pricing and models pages in July 2026. API ID: `claude-opus-5` (no date suffix, pinned snapshot). Bedrock ID: `anthropic.claude-opus-5`. Google Cloud ID: `claude-opus-5`. Pricing: $5/$25 MTok input/output, 5m cache $6.25/MTok, 1h cache $10/MTok, cache read $0.50/MTok β€” same as Opus 4.8/4.7/4.6. The model is in the flat long-context list (1M token context at standard pricing; no Large Context tier). Fast mode is available at $10/$50 MTok (shared price point with Opus 4.8). Added to pricing file and `anthropicModels` in the July 25 2026 audit. matchPattern: `(?i)^((anthropic\/)?claude-opus-5|(eu\.|us\.|apac\.|global\.)?anthropic\.claude-opus-5(-v1(:0)?)?)$`.
- **gpt-5-chat-latest confirmed pricing** β€” This alias has confirmed pricing at $1.25/MTok
input, $0.125/MTok cached input, $10.00/MTok output, verified via its specific model page
@@ -152,6 +163,72 @@ Always fetch pricing from the provider's official docs before editing.
`https://developers.openai.com/api/docs/models/gpt-5.6-luna`. Lesson: do not assume a
model family's siblings keep moving in lockstep β€” verify each model ID's own page even
when the whole family was fully priced in a recent prior audit.
+- **GPT-5.4 / GPT-5.5 Large Context (>272K) tier resolved (August 4 2026)** β€” Prior audits
+ (through July 31 2026) left the exact large-context threshold and rates for `gpt-5.4`,
+ `gpt-5.4-pro`, `gpt-5.5`, and `gpt-5.5-pro` as an unresolved finding. A row-by-row verbatim
+ dump of the OpenAI pricing page's Standard/Batch/Flex tables (asking explicitly for every
+ column, including any row literally labeled "cache writes") plus each model's own page
+ confirmed the **272,000-token threshold already used for the gpt-5.6 family applies to
+ these models too**, at the same 2x input / 1.5x output multiplier (cached input also 2x,
+ preserving the 10% cache-to-input ratio): `gpt-5.4` large-context $5.00/$0.50/$22.50,
+ `gpt-5.4-pro` large-context $60.00/β€”/$270.00 (no caching), `gpt-5.5` large-context
+ $10.00/$1.00/$45.00, `gpt-5.5-pro` large-context $60.00/β€”/$270.00. None of these four
+ have a cache-write price (confirmed via both the aggregate table, which shows "β€”" for
+ their cache-writes columns, and each model's own page, which states cache reads have "no
+ separate write fee"). Added Large Context tiers to all four pricing-file entries (and
+ their dated-snapshot siblings `gpt-5.4-2026-03-05`, `gpt-5.4-pro-2026-03-05`) in the
+ August 4 2026 audit; `gpt-5.4-mini`/`gpt-5.4-nano` (and dated siblings) confirmed to have
+ no large-context tier (dashes in both columns) and were left unchanged. Official sources:
+ `https://developers.openai.com/api/docs/pricing`,
+ `https://developers.openai.com/api/docs/models/gpt-5.4`,
+ `https://developers.openai.com/api/docs/models/gpt-5.5`.
+- **OpenAI "cache writes" is a real, distinct billing dimension β€” currently gpt-5.6 family
+ only (confirmed August 4 2026)** β€” The OpenAI pricing page's Standard/Batch/Flex tables
+ have a literal "Short context cache writes" / "Long context cache writes" column,
+ separate from "cached input" (cache reads). It is priced at 1.25x the base input rate for
+ that context tier and is documented per-model ("Cache writes are billed at 1.25x the
+ uncached input token rate."). As of August 4 2026 this column is populated (non-dash)
+ **only** for `gpt-5.6-sol`, `gpt-5.6-terra`, and `gpt-5.6-luna` β€” every other checked
+ OpenAI model (`gpt-5.5`, `gpt-5.5-pro`, `gpt-5.4`, `gpt-5.4-pro`, `gpt-5.4-mini`,
+ `gpt-5.4-nano`, `gpt-5.2`, `gpt-5.1`, `gpt-5`, `gpt-5-mini`, `gpt-5-nano`, `o3`, `o4-mini`,
+ `gpt-4o`, `gpt-4.1`) shows "β€”" for cache writes and only bills the standard discounted
+ cache-read rate. The gpt-5.6 family's pricing-file entries already carry
+ `input_cache_creation` / `cache_write_tokens` at the correct 1.25x rate from an earlier
+ audit β€” no change needed there. Future audits should re-check this column whenever a new
+ OpenAI reasoning model is added, since this is apparently expanding beyond a single
+ family and is easy to miss if only "cached input" is checked.
+- **Claude Sonnet 4.5 Large Context tier removed as incorrect (August 4 2026)** β€” The
+ pricing file previously had a "Large Context" tier (>200K input, 2x input / 1.5x output)
+ for `claude-sonnet-4-5-20250929`, flagged unresolved across several prior audits because
+ Anthropic's pricing page does not publish a separate rate for it. The official
+ `context-windows` page (`https://platform.claude.com/docs/en/build-with-claude/context-windows`)
+ confirms Claude Sonnet 4.5 has a **hard 200k-token context window** (not on the 1M-token
+ list with Sonnet 5/4.6/Opus 4.5+/Fable 5/Mythos 5) and that exceeding a model's context
+ window returns a 400 error rather than being billed at a premium β€” so an "input > 200,000"
+ condition can never legitimately fire for this model. The tier was removed; the model now
+ has only the Standard tier, matching the precedent set by `claude-haiku-4-5-20251001`
+ (also a 200k-context model with no Large Context tier). If a future model is documented
+ with a *soft* extended-context cap that bills at a premium rate past a threshold below its
+ hard context-window limit, that would justify a real tier β€” verify the hard context-window
+ size first before trusting an existing Large Context tier on a non-1M-context Claude model.
+- **AWS Bedrock "Claude 3.5 Sonnet (Public Extended Access)" pricing confirmed real but not
+ representable (updated August 4 2026)** β€” A targeted, non-aggregated fetch of
+ `https://aws.amazon.com/bedrock/pricing/` asking specifically for every Claude 3.5 Sonnet
+ row verbatim confirms this is a real, distinct SKU (not a summarization artifact as
+ suspected in the July 31 2026 audit): "Claude 3.5 Sonnet (Public Extended Access,
+ Effective 1 Dec 2025)" and "Claude 3.5 Sonnet v2 (Public Extended Access, Effective 1 Dec
+ 2025)" are both billed at $6.00/MTok input, $30.00/MTok output β€” double the $3/$15
+ standard API rate the pricing file uses for `claude-3-5-sonnet-20240620` /
+ `claude-3.5-sonnet-20241022` β€” with cache write $7.50/MTok and cache read $0.60/MTok
+ (same 1.25x/0.1x multipliers as standard pricing, just on the doubled base rate). This
+ applies only on specific Bedrock regions. **Still not actionable**: Langfuse's pricing
+ schema matches a `matchPattern` against the model-ID string alone and has no dimension for
+ "which cloud/tier is this specific Bedrock request billed under" β€” the same Bedrock model
+ ID string (`anthropic.claude-3-5-sonnet-20240620-v1:0` etc.) is used for both the standard
+ and the Public Extended Access rate, and Langfuse cannot tell them apart from usage data
+ alone. Do not add a second pricing entry for this SKU; it would create an unresolvable
+ matchPattern collision with the existing entry. Leave as a documented, confirmed
+ limitation rather than an open question in future audits.
Capture:
diff --git a/worker/src/__tests__/pricing-tier-matcher.test.ts b/worker/src/__tests__/pricing-tier-matcher.test.ts
index f8ff70a054..45585029ef 100644
--- a/worker/src/__tests__/pricing-tier-matcher.test.ts
+++ b/worker/src/__tests__/pricing-tier-matcher.test.ts
@@ -235,13 +235,13 @@ describe("default-model-prices.json", () => {
}
});
- it("should correctly match claude-sonnet-4-5 model with tiered pricing", () => {
+ it("should correctly match claude-sonnet-4-5 with standard pricing", () => {
const claudeModel = defaultModelPrices.find(
(m) => m.id === "c5qmrqolku82tra3vgdixmys",
);
expect(claudeModel).toBeDefined();
expect(claudeModel!.modelName).toBe("claude-sonnet-4-5-20250929");
- expect(claudeModel!.pricingTiers.length).toBe(2);
+ expect(claudeModel!.pricingTiers.length).toBe(1);
// Convert to PricingTierWithPrices format
const tiers: PricingTierWithPrices[] = claudeModel!.pricingTiers.map(
@@ -258,7 +258,6 @@ describe("default-model-prices.json", () => {
}),
);
- // Test standard pricing (input <= 200K)
const standardResult = matchPricingTier(tiers, {
input: 150000,
output: 5000,
@@ -266,15 +265,6 @@ describe("default-model-prices.json", () => {
expect(standardResult).not.toBeNull();
expect(standardResult?.pricingTierName).toBe("Standard");
expect(standardResult?.prices.input.toNumber()).toBe(0.000003);
-
- // Test large context pricing (input > 200K)
- const largeContextResult = matchPricingTier(tiers, {
- input: 250000,
- output: 5000,
- });
- expect(largeContextResult).not.toBeNull();
- expect(largeContextResult?.pricingTierName).toBe("Large Context");
- expect(largeContextResult?.prices.input.toNumber()).toBe(0.000006);
});
it("should price Gemini 3 Google Search grounding queries", () => {
diff --git a/worker/src/constants/default-model-prices.json b/worker/src/constants/default-model-prices.json
index c31df86bec..0d94f1937f 100644
--- a/worker/src/constants/default-model-prices.json
+++ b/worker/src/constants/default-model-prices.json
@@ -2575,7 +2575,7 @@
"modelName": "claude-sonnet-4-5-20250929",
"matchPattern": "(?i)^(anthropic\/)?(claude-sonnet-4-5(-20250929)?|(eu\\.|us\\.|apac\\.|au\\.|jp\\.|global\\.)?anthropic\\.claude-sonnet-4-5(-20250929)?-v1(:0)?|claude-sonnet-4-5-V1(@20250929)?|claude-sonnet-4-5(@20250929)?)$",
"createdAt": "2025-09-29T00:00:00.000Z",
- "updatedAt": "2026-07-28T00:00:00.000Z",
+ "updatedAt": "2026-08-04T00:00:00.000Z",
"tokenizerId": "claude",
"pricingTiers": [
{
@@ -2597,33 +2597,6 @@
"input_cached_tokens": 3e-7,
"input_cache_read": 3e-7
}
- },
- {
- "id": "00b65240-047b-4722-9590-808edbc2067f",
- "name": "Large Context",
- "isDefault": false,
- "priority": 1,
- "conditions": [
- {
- "usageDetailPattern": "input",
- "operator": "gt",
- "value": 200000,
- "caseSensitive": false
- }
- ],
- "prices": {
- "input": 0.000006,
- "input_tokens": 0.000006,
- "output": 0.0000225,
- "output_tokens": 0.0000225,
- "cache_creation_input_tokens": 0.0000075,
- "input_cache_creation": 0.0000075,
- "input_cache_creation_5m": 0.0000075,
- "input_cache_creation_1h": 0.000012,
- "cache_read_input_tokens": 6e-7,
- "input_cached_tokens": 6e-7,
- "input_cache_read": 6e-7
- }
}
]
},
@@ -3905,7 +3878,7 @@
"modelName": "gpt-5.4",
"matchPattern": "(?i)^(openai\/)?(gpt-5.4)$",
"createdAt": "2026-03-05T00:00:00.000Z",
- "updatedAt": "2026-03-05T00:00:00.000Z",
+ "updatedAt": "2026-08-04T00:00:00.000Z",
"tokenizerConfig": {
"tokensPerName": 1,
"tokenizerModel": "gpt-4",
@@ -3923,9 +3896,35 @@
"input": 2.5e-6,
"input_cached_tokens": 0.25e-6,
"input_cache_read": 0.25e-6,
+ "cache_read_input_tokens": 0.25e-6,
"output": 15e-6,
"output_reasoning_tokens": 15e-6,
- "output_reasoning": 15e-6
+ "output_reasoning": 15e-6,
+ "reasoning_tokens": 15e-6
+ }
+ },
+ {
+ "id": "8f7d2163-197d-4bb2-a403-957c1f9f7244",
+ "name": "Large Context (>272K)",
+ "isDefault": false,
+ "priority": 1,
+ "conditions": [
+ {
+ "usageDetailPattern": "(input)",
+ "operator": "gt",
+ "value": 272000,
+ "caseSensitive": false
+ }
+ ],
+ "prices": {
+ "input": 5e-6,
+ "input_cached_tokens": 0.5e-6,
+ "input_cache_read": 0.5e-6,
+ "cache_read_input_tokens": 0.5e-6,
+ "output": 22.5e-6,
+ "output_reasoning_tokens": 22.5e-6,
+ "output_reasoning": 22.5e-6,
+ "reasoning_tokens": 22.5e-6
}
}
]
@@ -3935,7 +3934,7 @@
"modelName": "gpt-5.4-pro",
"matchPattern": "(?i)^(openai\/)?(gpt-5.4-pro)$",
"createdAt": "2026-03-05T00:00:00.000Z",
- "updatedAt": "2026-03-05T00:00:00.000Z",
+ "updatedAt": "2026-08-04T00:00:00.000Z",
"tokenizerConfig": {
"tokensPerName": 1,
"tokenizerModel": "gpt-4",
@@ -3953,7 +3952,29 @@
"input": 30e-6,
"output": 180e-6,
"output_reasoning_tokens": 180e-6,
- "output_reasoning": 180e-6
+ "output_reasoning": 180e-6,
+ "reasoning_tokens": 180e-6
+ }
+ },
+ {
+ "id": "3c335f8e-6594-4b8b-abde-f3be0bcf0349",
+ "name": "Large Context (>272K)",
+ "isDefault": false,
+ "priority": 1,
+ "conditions": [
+ {
+ "usageDetailPattern": "(input)",
+ "operator": "gt",
+ "value": 272000,
+ "caseSensitive": false
+ }
+ ],
+ "prices": {
+ "input": 60e-6,
+ "output": 270e-6,
+ "output_reasoning_tokens": 270e-6,
+ "output_reasoning": 270e-6,
+ "reasoning_tokens": 270e-6
}
}
]
@@ -3963,7 +3984,7 @@
"modelName": "gpt-5.4-2026-03-05",
"matchPattern": "(?i)^(openai\/)?(gpt-5.4-2026-03-05)$",
"createdAt": "2026-03-05T00:00:00.000Z",
- "updatedAt": "2026-03-05T00:00:00.000Z",
+ "updatedAt": "2026-08-04T00:00:00.000Z",
"tokenizerConfig": {
"tokensPerName": 1,
"tokenizerModel": "gpt-4",
@@ -3981,9 +4002,35 @@
"input": 2.5e-6,
"input_cached_tokens": 0.25e-6,
"input_cache_read": 0.25e-6,
+ "cache_read_input_tokens": 0.25e-6,
"output": 15e-6,
"output_reasoning_tokens": 15e-6,
- "output_reasoning": 15e-6
+ "output_reasoning": 15e-6,
+ "reasoning_tokens": 15e-6
+ }
+ },
+ {
+ "id": "596cb5e9-ba20-4fcf-aa07-fa8c557b643c",
+ "name": "Large Context (>272K)",
+ "isDefault": false,
+ "priority": 1,
+ "conditions": [
+ {
+ "usageDetailPattern": "(input)",
+ "operator": "gt",
+ "value": 272000,
+ "caseSensitive": false
+ }
+ ],
+ "prices": {
+ "input": 5e-6,
+ "input_cached_tokens": 0.5e-6,
+ "input_cache_read": 0.5e-6,
+ "cache_read_input_tokens": 0.5e-6,
+ "output": 22.5e-6,
+ "output_reasoning_tokens": 22.5e-6,
+ "output_reasoning": 22.5e-6,
+ "reasoning_tokens": 22.5e-6
}
}
]
@@ -3993,7 +4040,7 @@
"modelName": "gpt-5.4-pro-2026-03-05",
"matchPattern": "(?i)^(openai\/)?(gpt-5.4-pro-2026-03-05)$",
"createdAt": "2026-03-05T00:00:00.000Z",
- "updatedAt": "2026-03-05T00:00:00.000Z",
+ "updatedAt": "2026-08-04T00:00:00.000Z",
"tokenizerConfig": {
"tokensPerName": 1,
"tokenizerModel": "gpt-4",
@@ -4011,7 +4058,29 @@
"input": 30e-6,
"output": 180e-6,
"output_reasoning_tokens": 180e-6,
- "output_reasoning": 180e-6
+ "output_reasoning": 180e-6,
+ "reasoning_tokens": 180e-6
+ }
+ },
+ {
+ "id": "a5aec834-b2a6-4d42-addc-c9c424034cb4",
+ "name": "Large Context (>272K)",
+ "isDefault": false,
+ "priority": 1,
+ "conditions": [
+ {
+ "usageDetailPattern": "(input)",
+ "operator": "gt",
+ "value": 272000,
+ "caseSensitive": false
+ }
+ ],
+ "prices": {
+ "input": 60e-6,
+ "output": 270e-6,
+ "output_reasoning_tokens": 270e-6,
+ "output_reasoning": 270e-6,
+ "reasoning_tokens": 270e-6
}
}
]
@@ -4133,7 +4202,7 @@
"modelName": "gpt-5.5-2026-04-23",
"matchPattern": "(?i)^(openai\/)?(gpt-5.5(-2026-04-23)?)$",
"createdAt": "2026-04-25T00:00:00.000Z",
- "updatedAt": "2026-04-25T00:00:00.000Z",
+ "updatedAt": "2026-08-04T00:00:00.000Z",
"tokenizerConfig": {
"tokensPerName": 1,
"tokenizerModel": "gpt-4",
@@ -4151,9 +4220,35 @@
"input": 5e-6,
"input_cached_tokens": 0.5e-6,
"input_cache_read": 0.5e-6,
+ "cache_read_input_tokens": 0.5e-6,
"output": 30e-6,
"output_reasoning_tokens": 30e-6,
- "output_reasoning": 30e-6
+ "output_reasoning": 30e-6,
+ "reasoning_tokens": 30e-6
+ }
+ },
+ {
+ "id": "a3ad657c-fff1-44dd-a51b-20d9845a112a",
+ "name": "Large Context (>272K)",
+ "isDefault": false,
+ "priority": 1,
+ "conditions": [
+ {
+ "usageDetailPattern": "(input)",
+ "operator": "gt",
+ "value": 272000,
+ "caseSensitive": false
+ }
+ ],
+ "prices": {
+ "input": 10e-6,
+ "input_cached_tokens": 1e-6,
+ "input_cache_read": 1e-6,
+ "cache_read_input_tokens": 1e-6,
+ "output": 45e-6,
+ "output_reasoning_tokens": 45e-6,
+ "output_reasoning": 45e-6,
+ "reasoning_tokens": 45e-6
}
}
]
@@ -4163,7 +4258,7 @@
"modelName": "gpt-5.5-pro-2026-04-23",
"matchPattern": "(?i)^(openai\/)?(gpt-5.5-pro(-2026-04-23)?)$",
"createdAt": "2026-04-25T00:00:00.000Z",
- "updatedAt": "2026-04-25T00:00:00.000Z",
+ "updatedAt": "2026-08-04T00:00:00.000Z",
"tokenizerConfig": {
"tokensPerName": 1,
"tokenizerModel": "gpt-4",
@@ -4181,7 +4276,29 @@
"input": 30e-6,
"output": 180e-6,
"output_reasoning_tokens": 180e-6,
- "output_reasoning": 180e-6
+ "output_reasoning": 180e-6,
+ "reasoning_tokens": 180e-6
+ }
+ },
+ {
+ "id": "56beb248-e8af-4d42-a861-1f921e81cfb2",
+ "name": "Large Context (>272K)",
+ "isDefault": false,
+ "priority": 1,
+ "conditions": [
+ {
+ "usageDetailPattern": "(input)",
+ "operator": "gt",
+ "value": 272000,
+ "caseSensitive": false
+ }
+ ],
+ "prices": {
+ "input": 60e-6,
+ "output": 270e-6,
+ "output_reasoning_tokens": 270e-6,
+ "output_reasoning": 270e-6,
+ "reasoning_tokens": 270e-6
}
}
]
@@ -4588,7 +4705,7 @@
"modelName": "gemini-3.5-flash-lite",
"matchPattern": "(?i)^(google(ai)?\/)?(gemini-3.5-flash-lite)$",
"createdAt": "2026-07-22T00:00:00.000Z",
- "updatedAt": "2026-07-23T00:00:00.000Z",
+ "updatedAt": "2026-08-04T00:00:00.000Z",
"pricingTiers": [
{
"id": "b2c3d4e5-f6a7-4b8c-9d0e-1f2a3b4c5d6e_tier_default",
@@ -4602,6 +4719,8 @@
"input_modality_1": 0.3e-6,
"prompt_token_count": 0.3e-6,
"promptTokenCount": 0.3e-6,
+ "input_cached_tokens": 0.03e-6,
+ "cached_content_token_count": 0.03e-6,
"output": 2.5e-6,
"output_text": 2.5e-6,
"output_modality_1": 2.5e-6,