πͺ’ Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.
TypeScript analyticsautogenevaluationlangchainlarge-language-modelsllama-indexllmllm-evaluationllm-observabilityllmopsmonitoringobservabilityopen-sourceopenaiplaygroundprompt-engineeringprompt-managementself-hostedycombinator
chore(pricing): add gpt-5.3-codex default pricing and selectable model entry (#15442)
langfuse-bot7bca6177cc65
diff --git a/.agents/skills/add-model-price/references/model-audit-memory.md b/.agents/skills/add-model-price/references/model-audit-memory.mdindex de9319ac79..85f52e00f6 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-25+**Audit date:** 2026-07-27All prices listed as `$X / MTok` (per million tokens). Per-token JSON values: divide by 1,000,000.@@ -20,16 +20,16 @@ All prices listed as `$X / MTok` (per million tokens). Per-token JSON values: di| -------- | --------------------- | --------------- | --------------- | --------------- | --------------- | ------ | ------------------ | -------- || 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 | Added | https://platform.claude.com/docs/en/about-claude/pricing https://platform.claude.com/docs/en/about-claude/models/overview | New model confirmed on pricing page and models page July 25 2026. API ID: `claude-opus-5`. Bedrock ID: `anthropic.claude-opus-5`. Google Cloud ID: `claude-opus-5`. Fast mode available ($10/$50 MTok, shared pricing with Opus 4.8). Added to pricing file and anthropicModels in types.ts. |+| 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 | NOT on flat long-context list; no explicit large-context tier pricing published | Not applicable | None | https://platform.claude.com/docs/en/about-claude/pricing | "Claude Opus 4.5" is listed on the official pricing page (confirmed July 2026). matchPattern covers both claude-opus-4-5 and claude-opus-4-5-20251101. Not on flat long-context list. |+| 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. |+| 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 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-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. |@@ -39,6 +39,7 @@ All prices listed as `$X / MTok` (per million tokens). Per-token JSON values: di| 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.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. |@@ -49,12 +50,12 @@ All prices listed as `$X / MTok` (per million tokens). Per-token JSON values: di| 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 (OpenAI page summary didn't list it explicitly). Retained from July 23 audit. |+| 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) | Yes | No large-context tier | Yes | None | https://ai.google.dev/pricing | Cache = 10% of text input. Confirmed on AI Studio page (July 23 audit). A July 25 summary artifact suggested "no caching" but the July 23 explicit page fetch confirmed caching. Do not remove cache pricing based on a summary artifact alone. |+| 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-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. |@@ -62,16 +63,16 @@ All prices listed as `$X / MTok` (per million tokens). Per-token JSON values: di| 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). Cache keys absent from pricing entry. Do NOT add cache pricing for this model without explicit official evidence. |+| 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-25)+## Unresolved findings (updated 2026-07-27)-1. **gpt-5.3-codex** β Confirmed in OpenAI models list, described as "most agentic coding model". Not in selectable models or pricing file. Not adding without explicit official pricing page confirmation.+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.-2. **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.+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.-3. **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.+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.-4. **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.+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. **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.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.mdindex d6d30632ab..07c87902ea 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@@ -111,6 +111,14 @@ Always fetch pricing from the provider's official docs before editing."$5/$30", which was confusion with gpt-5.6-sol pricing. When a pricing summary for amodel alias appears inconsistent with what the file holds, always fetch the specificmodel page (`https://developers.openai.com/api/docs/models/<model-id>`) to confirm.+- **gpt-5.3-codex (added July 2026)** β `gpt-5.3-codex` appeared on the OpenAI pricing+ page and model page in July 2026, described as "the most capable agentic coding model".+ Pricing: $1.75/MTok input, $0.175/MTok cached input, $14.00/MTok output. Context window:+ 400k tokens; max output 128k tokens. No large-context tier. No date-stamped snapshot at+ launch. Standard OpenAI matchPattern: `(?i)^(openai\/)?(gpt-5.3-codex)$`. Added to pricing+ 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`.Capture:diff --git a/packages/shared/src/server/llm/types.ts b/packages/shared/src/server/llm/types.tsindex 0c0d64273f..66aa5decec 100644--- a/packages/shared/src/server/llm/types.ts+++ b/packages/shared/src/server/llm/types.ts@@ -334,6 +334,7 @@ export const openAIModels = ["gpt-5.4-mini-2026-03-17","gpt-5.4-nano","gpt-5.4-nano-2026-03-17",+ "gpt-5.3-codex","gpt-5.2-2025-12-11","gpt-5.1","gpt-5.1-2025-11-13",diff --git a/worker/src/constants/default-model-prices.json b/worker/src/constants/default-model-prices.jsonindex 56e3828d4b..fd545b36b3 100644--- a/worker/src/constants/default-model-prices.json+++ b/worker/src/constants/default-model-prices.json@@ -3870,6 +3870,34 @@}]},+ {+ "id": "f1e2d3c4-b5a6-4789-8abc-0d1e2f3a4b5c",+ "modelName": "gpt-5.3-codex",+ "matchPattern": "(?i)^(openai\/)?(gpt-5.3-codex)$",+ "createdAt": "2026-07-27T00:00:00.000Z",+ "updatedAt": "2026-07-27T00:00:00.000Z",+ "tokenizerConfig": {+ "tokensPerName": 1,+ "tokenizerModel": "gpt-4",+ "tokensPerMessage": 3+ },+ "tokenizerId": "openai",+ "pricingTiers": [+ {+ "id": "f1e2d3c4-b5a6-4789-8abc-0d1e2f3a4b5c_tier_default",+ "name": "Standard",+ "isDefault": true,+ "priority": 0,+ "conditions": [],+ "prices": {+ "input": 1.75e-6,+ "input_cached_tokens": 0.175e-6,+ "input_cache_read": 0.175e-6,+ "output": 14e-6+ }+ }+ ]+ },{"id": "bee3c111-fe6f-4641-8775-73ea33b29fca","modelName": "gpt-5.4",