Skip to content

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

chore(pricing): correct gpt-5.6-terra and gpt-5.6-luna price cuts (#15659)

langfuse-bot9ea9644a8ac1
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 85f52e00f6..29f4569e75 100644
--- a/.agents/skills/add-model-price/references/model-audit-memory.md
+++ b/.agents/skills/add-model-price/references/model-audit-memory.md
@@ -12,7 +12,7 @@ audit date.
## Latest useful snapshot
-**Audit date:** 2026-07-27
+**Audit date:** 2026-07-31
All prices listed as `$X / MTok` (per million tokens). Per-token JSON values: divide by 1,000,000.
@@ -41,8 +41,8 @@ All prices listed as `$X / MTok` (per million tokens). Per-token JSON values: di
| 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.50/MTok (2.5e-6), Cached $0.25/MTok (0.25e-6), Output $15/MTok (15e-6) | Yes | Large Context (>272K): input $5/MTok, cached $0.50/MTok, output $22.50/MTok | Yes | None | https://developers.openai.com/api/docs/pricing | Reasoning model. |
-| OpenAI | gpt-5.6-luna | Input $1/MTok (1e-6), Cached $0.10/MTok (0.1e-6), Output $6/MTok (6e-6) | Yes | Large Context (>272K): input $2/MTok, cached $0.20/MTok, output $9/MTok | Yes | None | https://developers.openai.com/api/docs/pricing | Reasoning model. |
+| 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. |
@@ -55,7 +55,7 @@ All prices listed as `$X / MTok` (per million tokens). Per-token JSON values: di
| 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) | No | No large-context tier | No | None | https://ai.google.dev/pricing | Contradictory fetch results: July 23 2026 explicit page fetch confirmed caching; July 25 and July 27 2026 summary fetches say "Not available." Per skill guidance, do not remove cache pricing based on a summary artifact alone. Cache pricing retained. Future audits should re-verify with an explicit page fetch. |
+| 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. |
@@ -65,7 +65,7 @@ All prices listed as `$X / MTok` (per million tokens). Per-token JSON values: di
| 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. |
-## Unresolved findings (updated 2026-07-27)
+## Unresolved findings (updated 2026-07-31)
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.
@@ -75,4 +75,6 @@ All prices listed as `$X / MTok` (per million tokens). Per-token JSON values: di
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.
-5. **gemini-3.1-flash-lite cache pricing** β€” Contradictory fetch results across multiple audit runs. July 23 2026 explicit page fetch confirmed caching at $0.025/MTok; subsequent summary-level fetches say "Not available". Per skill guidance, cache pricing is retained until a definitive explicit page fetch confirms its removal. Future audits should fetch the model-specific row on the AI Studio pricing page.
+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.
+
+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.
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 07c87902ea..306da80ac2 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
@@ -52,6 +52,23 @@ Always fetch pricing from the provider's official docs before editing.
10% of the base input price (e.g. Gemini 2.5 Flash: $0.30/MTok input β†’ $0.03/MTok
cached). If a cache-read price in the file diverges from this ratio, treat it as
suspicious and verify against the official page before correcting.
+- **`ai.google.dev/pricing` has separate Free-tier and Paid-tier columns β€” do not confuse
+ them (resolved July 31 2026)** β€” The official Gemini pricing table has both a "Free of
+ charge" column and a "Paid tier" column per row. A model row can legitimately read
+ "Context caching price: Not available | $0.025/MTok (paid)" β€” the "Not available" only
+ describes the free tier. Prior audits (July 23, 25, 27 2026) saw contradictory
+ "available" vs "not available" summaries for `gemini-3.1-flash-lite` context caching
+ because WebFetch's summarizer sometimes collapsed the two columns into one answer. A
+ July 31 2026 fetch that explicitly asked to quote the row verbatim confirmed: Free tier
+ = "Not available", Paid tier = "$0.025/MTok (text/image/video), $0.05/MTok (audio)",
+ plus a **storage price** of $1.00 per 1M tokens per hour for the paid tier (a
+ time-based holding cost with no equivalent usage key in Langfuse's pricing schema β€”
+ do not attempt to represent it). Langfuse prices the paid/API tier, so
+ `gemini-3.1-flash-lite`'s existing cache pricing ($0.025/MTok text/image/video,
+ $0.05/MTok audio = 2.5e-8 / 5e-8 per token) is CONFIRMED CORRECT; no change was made.
+ This resolves unresolved finding #5 from the July 27 2026 audit memory. Lesson: when a
+ provider pricing page has multiple tiers/columns per model, ask WebFetch to quote the
+ exact row verbatim (not "does caching exist") to avoid column-collapse artifacts.
- **Anthropic flat large-context models** β€” The Anthropic pricing page lists models with
"full 1M token context window at standard pricing" in a dedicated "Long context pricing"
section. As of July 2026 this list includes: Claude Fable 5, Claude Mythos 5, Claude
@@ -119,6 +136,22 @@ Always fetch pricing from the provider's official docs before editing.
file and `openAIModels` in July 27 2026 audit. Official sources:
`https://developers.openai.com/api/docs/pricing` and
`https://developers.openai.com/api/docs/models/gpt-5.3-codex`.
+- **GPT-5.6 Terra / Luna price cut (found July 31 2026)** β€” OpenAI lowered pricing for
+ `gpt-5.6-terra` and `gpt-5.6-luna` sometime between the July 27 and July 31 2026 audits;
+ `gpt-5.6-sol` was unchanged. Confirmed via 4 independent WebFetch calls (the overview
+ pricing page fetched twice plus each model's dedicated page): `gpt-5.6-terra` is now
+ $2.00/MTok input, $0.20/MTok cached input, $12.00/MTok output (previously
+ $2.50/$0.25/$15.00); `gpt-5.6-luna` is now $0.20/MTok input, $0.02/MTok cached input,
+ $1.20/MTok output (previously $1.00/$0.10/$6.00). The >272K Large Context tier still
+ applies at 2x input / 1.5x output, with cached input also doubling (preserving the 10%
+ cache-to-input ratio): terra large-context $4.00/$0.40/$18.00, luna large-context
+ $0.40/$0.04/$1.80. `gpt-5.6-sol` remains $5.00/$0.50/$30.00 standard,
+ $10.00/$1.00/$45.00 large-context β€” unchanged. Updated in the pricing file during the
+ July 31 2026 audit. Official sources: `https://developers.openai.com/api/docs/pricing`,
+ `https://developers.openai.com/api/docs/models/gpt-5.6-terra`,
+ `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.
Capture:
diff --git a/worker/src/constants/default-model-prices.json b/worker/src/constants/default-model-prices.json
index d594df4f32..54a2737fa6 100644
--- a/worker/src/constants/default-model-prices.json
+++ b/worker/src/constants/default-model-prices.json
@@ -4243,7 +4243,7 @@
"modelName": "gpt-5.6-terra",
"matchPattern": "(?i)^(openai/)?(gpt-5.6-terra)$",
"createdAt": "2026-07-09T00:00:00.000Z",
- "updatedAt": "2026-07-09T00:00:00.000Z",
+ "updatedAt": "2026-07-31T00:00:00.000Z",
"tokenizerConfig": {
"tokensPerName": 1,
"tokenizerModel": "gpt-4",
@@ -4258,12 +4258,12 @@
"priority": 0,
"conditions": [],
"prices": {
- "input": 2.5e-6,
- "input_cached_tokens": 0.25e-6,
- "input_cache_read": 0.25e-6,
- "output": 15e-6,
- "output_reasoning_tokens": 15e-6,
- "output_reasoning": 15e-6
+ "input": 2e-6,
+ "input_cached_tokens": 0.2e-6,
+ "input_cache_read": 0.2e-6,
+ "output": 12e-6,
+ "output_reasoning_tokens": 12e-6,
+ "output_reasoning": 12e-6
}
},
{
@@ -4280,12 +4280,12 @@
}
],
"prices": {
- "input": 5e-6,
- "input_cached_tokens": 0.5e-6,
- "input_cache_read": 0.5e-6,
- "output": 22.5e-6,
- "output_reasoning_tokens": 22.5e-6,
- "output_reasoning": 22.5e-6
+ "input": 4e-6,
+ "input_cached_tokens": 0.4e-6,
+ "input_cache_read": 0.4e-6,
+ "output": 18e-6,
+ "output_reasoning_tokens": 18e-6,
+ "output_reasoning": 18e-6
}
}
]
@@ -4295,7 +4295,7 @@
"modelName": "gpt-5.6-luna",
"matchPattern": "(?i)^(openai/)?(gpt-5.6-luna)$",
"createdAt": "2026-07-09T00:00:00.000Z",
- "updatedAt": "2026-07-09T00:00:00.000Z",
+ "updatedAt": "2026-07-31T00:00:00.000Z",
"tokenizerConfig": {
"tokensPerName": 1,
"tokenizerModel": "gpt-4",
@@ -4310,12 +4310,12 @@
"priority": 0,
"conditions": [],
"prices": {
- "input": 1e-6,
- "input_cached_tokens": 0.1e-6,
- "input_cache_read": 0.1e-6,
- "output": 6e-6,
- "output_reasoning_tokens": 6e-6,
- "output_reasoning": 6e-6
+ "input": 0.2e-6,
+ "input_cached_tokens": 0.02e-6,
+ "input_cache_read": 0.02e-6,
+ "output": 1.2e-6,
+ "output_reasoning_tokens": 1.2e-6,
+ "output_reasoning": 1.2e-6
}
},
{
@@ -4332,12 +4332,12 @@
}
],
"prices": {
- "input": 2e-6,
- "input_cached_tokens": 0.2e-6,
- "input_cache_read": 0.2e-6,
- "output": 9e-6,
- "output_reasoning_tokens": 9e-6,
- "output_reasoning": 9e-6
+ "input": 0.4e-6,
+ "input_cached_tokens": 0.04e-6,
+ "input_cache_read": 0.04e-6,
+ "output": 1.8e-6,
+ "output_reasoning_tokens": 1.8e-6,
+ "output_reasoning": 1.8e-6
}
}
]