Skip to content

Open-source Python library for AI browser agents, plus Browser Use Cloud: stealth browsers and a hosted agent API.

fix(tokens): bill bu-1-0 at bu-2-0 rates

Saurav Pandab1d1794a9303
diff --git a/browser_use/llm/browser_use/chat.py b/browser_use/llm/browser_use/chat.py
index 25e108f8b..b014b0f32 100644
--- a/browser_use/llm/browser_use/chat.py
+++ b/browser_use/llm/browser_use/chat.py
@@ -60,7 +60,7 @@ class ChatBrowserUse(BaseChatModel):
model: Model name to use. Options:
- 'bu-2-0-mini-preview': Default model (fast + cheap, preview)
- 'bu-2-0' or 'bu-latest': Premium model
- - 'bu-1-0': Previous generation model
+ - 'bu-1-0': Previous generation model, redirected to bu-2-0 at the gateway
- 'bu-qa-1': Website QA model (tests a site and scores functionality/aesthetics)
- 'browser-use/bu-30b-a3b-preview': Browser Use Open Source Model
- Provider-prefixed ids resolved by the gateway, e.g. 'anthropic/claude-sonnet-4-6',
diff --git a/browser_use/tokens/custom_pricing.py b/browser_use/tokens/custom_pricing.py
index b625ea758..c053a8748 100644
--- a/browser_use/tokens/custom_pricing.py
+++ b/browser_use/tokens/custom_pricing.py
@@ -9,15 +9,6 @@ from typing import Any
# Custom model pricing data
# Format matches LiteLLM's model_prices_and_context_window.json structure
CUSTOM_MODEL_PRICING: dict[str, dict[str, Any]] = {
- 'bu-1-0': {
- 'input_cost_per_token': 0.2 / 1_000_000, # $0.20 per 1M tokens
- 'output_cost_per_token': 2.00 / 1_000_000, # $2.00 per 1M tokens
- 'cache_read_input_token_cost': 0.02 / 1_000_000, # $0.02 per 1M tokens
- 'cache_creation_input_token_cost': None, # Not specified
- 'max_tokens': None, # Not specified
- 'max_input_tokens': None, # Not specified
- 'max_output_tokens': None, # Not specified
- },
'bu-2-0': {
'input_cost_per_token': 0.60 / 1_000_000, # $0.60 per 1M tokens
'output_cost_per_token': 3.50 / 1_000_000, # $3.50 per 1M tokens
@@ -100,4 +91,7 @@ CUSTOM_MODEL_PRICING: dict[str, dict[str, Any]] = {
}
CUSTOM_MODEL_PRICING['bu-latest'] = CUSTOM_MODEL_PRICING['bu-2-0']
+# bu-1-0 is redirected to bu-2-0 at the gateway, so it bills at bu-2-0 rates.
+CUSTOM_MODEL_PRICING['bu-1-0'] = CUSTOM_MODEL_PRICING['bu-2-0']
+
CUSTOM_MODEL_PRICING['smart'] = CUSTOM_MODEL_PRICING['bu-2-0']
diff --git a/skills/open-source/references/models.md b/skills/open-source/references/models.md
index 8193b731d..590e7df2f 100644
--- a/skills/open-source/references/models.md
+++ b/skills/open-source/references/models.md
@@ -70,8 +70,8 @@ llm = ChatBrowserUse(model='bu-2-0') # Premium model ('bu-latest'
| Model | Input | Cached | Output |
|-------|-------|--------|--------|
| bu-2-0-mini-preview (default) | $0.15 | $0.15 | $1.50 |
-| bu-1-0 | $0.20 | $0.02 | $2.00 |
| bu-2-0 (premium) | $0.60 | $0.06 | $3.50 |
+| bu-1-0 (redirects to bu-2-0) | $0.60 | $0.06 | $3.50 |
| browser-use/bu-30b-a3b-preview (OSS) | — | — | — |
## OpenAI
diff --git a/tests/ci/models/test_llm_browseruse.py b/tests/ci/models/test_llm_browseruse.py
index bf1aa8c31..e073c04a4 100644
--- a/tests/ci/models/test_llm_browseruse.py
+++ b/tests/ci/models/test_llm_browseruse.py
@@ -56,6 +56,9 @@ def test_bu_2_0_mini_preview_is_priced():
assert pricing['output_cost_per_token'] > 0
# bu-latest resolves to bu-2-0, not to the preview, so it keeps the premium pricing.
assert CUSTOM_MODEL_PRICING['bu-latest'] == CUSTOM_MODEL_PRICING['bu-2-0']
+ # bu-1-0 is redirected to bu-2-0 at the gateway, so it must be billed at bu-2-0 rates
+ # rather than the retired bu-1-0 rates.
+ assert CUSTOM_MODEL_PRICING['bu-1-0'] == CUSTOM_MODEL_PRICING['bu-2-0']
def test_llm_models_shortcut_resolves_mini_preview(monkeypatch):