Browser Use example
ChatBrowserUse() is our optimized in-house model, matching the accuracy of top models while completing tasks 3-5x faster. See our blog post→
.env
Available Models
bu-latestorbu-1-0: Default modelbu-2-0: Latest premium model with improved capabilities
Pricing
ChatBrowserUse offers competitive pricing per 1 million tokens: bu-1-0 / bu-latest (Default)
bu-2-0 (Premium)
Google Gemini example
.env
OpenAI example
O3 model is recommended for best accuracy.
.env
You can use any OpenAI compatible model by passing the model name to the
ChatOpenAI class using a custom URL (or any other parameter that would go
into the normal OpenAI API call).Anthropic example
.env
Azure OpenAI example
.env
Using the Responses API (for GPT-5.1 Codex models)
Azure OpenAI now requires
api_version >= 2025-03-01-preview for certain models like gpt-5.1-codex-mini.
These models only support the Responses API instead of the Chat Completions API.gpt-5.1-codex,gpt-5.1-codex-mini,gpt-5.1-codex-maxgpt-5-codex,codex-mini-latestcomputer-use-preview
use_responses_api parameter accepts:
'auto'(default): Automatically uses Responses API for models that require itTrue: Force use of the Responses APIFalse: Force use of the Chat Completions API
AWS Bedrock example
AWS Bedrock provides access to multiple model providers through a single API. We support both a general AWS Bedrock client and provider-specific convenience classes.General AWS Bedrock (supports all providers)
Anthropic Claude via AWS Bedrock (convenience class)
AWS Authentication
Required environment variables:.env
- Environment variables (
AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,AWS_DEFAULT_REGION) - AWS profiles and credential files
- IAM roles (when running on EC2)
- Session tokens for temporary credentials
- AWS SSO authentication (
aws_sso_auth=True)
Groq example
.env
Oracle Cloud Infrastructure (OCI) example
OCI provides access to various generative AI models including Meta Llama, Cohere, and other providers through their Generative AI service.- Set up OCI configuration file at
~/.oci/config - Have access to OCI Generative AI models in your tenancy
- Install the OCI Python SDK:
uv add ociorpip install oci
API_KEY: Uses API key authentication (default)INSTANCE_PRINCIPAL: Uses instance principal authenticationRESOURCE_PRINCIPAL: Uses resource principal authentication
Ollama
- Install Ollama: https://github.com/ollama/ollama
- Run
ollama serveto start the server - In a new terminal, install the model you want to use:
ollama pull llama3.1:8b(this has 4.9GB)
Langchain
Example on how to use Langchain with Browser Use.Qwen example
Currently, onlyqwen-vl-max is recommended for Browser Use. Other Qwen models, including qwen-max, have issues with the action schema format.
Smaller Qwen models may return incorrect action schema formats (e.g., actions: [{"navigate": "google.com"}] instead of [{"navigate": {"url": "google.com"}}]). If you want to use other models, add concrete examples of the correct action format to your prompt.
.env
ModelScope example
.env
Vercel AI Gateway example
Vercel AI Gateway provides an OpenAI-compatible API endpoint that acts as a proxy to various AI providers, with features like rate limiting, caching, and monitoring. To see all available models, visit: https://ai-gateway.vercel.sh/v1/models.env