Skip to content

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

Add custom pricing for 'bu-latest' model in custom_pricing.py

Magnus Müllerff51f1e52044
diff --git a/browser_use/tokens/custom_pricing.py b/browser_use/tokens/custom_pricing.py
index df42941dd..d0a282a26 100644
--- a/browser_use/tokens/custom_pricing.py
+++ b/browser_use/tokens/custom_pricing.py
@@ -18,6 +18,15 @@ CUSTOM_MODEL_PRICING: dict[str, dict[str, Any]] = {
'max_input_tokens': None, # Not specified
'max_output_tokens': None, # Not specified
},
+ 'bu-latest': {
+ 'input_cost_per_token': 0.50 / 1_000_000, # $0.50 per 1M tokens
+ 'output_cost_per_token': 3.00 / 1_000_000, # $3.00 per 1M tokens
+ 'cache_read_input_token_cost': 0.10 / 1_000_000, # $0.10 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
+ },
'smart': {
'input_cost_per_token': 0.50 / 1_000_000, # $0.50 per 1M tokens
'output_cost_per_token': 3.00 / 1_000_000, # $3.00 per 1M tokens