Skip to content

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

put gemini above openai

Reagan Hsu12e96826ee40
diff --git a/docs/supported-models.mdx b/docs/supported-models.mdx
index b715f041e..d2161e714 100644
--- a/docs/supported-models.mdx
+++ b/docs/supported-models.mdx
@@ -30,6 +30,36 @@ BROWSER_USE_API_KEY=
Get your API key from the [Browser Use Cloud](https://cloud.browser-use.com/dashboard/api). New signups get \$10 free credit via OAuth or \$1 via email.
+### Google Gemini [example](https://github.com/browser-use/browser-use/blob/main/examples/models/gemini.py)
+
+<Warning>
+`GEMINI_API_KEY` is deprecated and should be named `GOOGLE_API_KEY` as of 2025-05.
+</Warning>
+
+```python
+from browser_use import Agent, ChatGoogle
+from dotenv import load_dotenv
+
+# Read GOOGLE_API_KEY into env
+load_dotenv()
+
+# Initialize the model
+llm = ChatGoogle(model='gemini-flash-latest')
+
+# Create agent with the model
+agent = Agent(
+ task="Your task here",
+ llm=llm
+)
+```
+
+Required environment variables:
+
+```bash .env
+GOOGLE_API_KEY=
+```
+
+
### OpenAI [example](https://github.com/browser-use/browser-use/blob/main/examples/models/gpt-4.1.py)
`O3` model is recommended for best accuracy.
@@ -110,35 +140,6 @@ AZURE_OPENAI_ENDPOINT=https://your-endpoint.openai.azure.com/
AZURE_OPENAI_API_KEY=
```
-### Gemini [example](https://github.com/browser-use/browser-use/blob/main/examples/models/gemini.py)
-
-<Warning>
-`GEMINI_API_KEY` is deprecated and should be named `GOOGLE_API_KEY` as of 2025-05.
-</Warning>
-
-```python
-from browser_use import Agent, ChatGoogle
-from dotenv import load_dotenv
-
-# Read GOOGLE_API_KEY into env
-load_dotenv()
-
-# Initialize the model
-llm = ChatGoogle(model='gemini-flash-latest')
-
-# Create agent with the model
-agent = Agent(
- task="Your task here",
- llm=llm
-)
-```
-
-Required environment variables:
-
-```bash .env
-GOOGLE_API_KEY=
-```
-
### AWS Bedrock [example](https://github.com/browser-use/browser-use/blob/main/examples/models/aws.py)
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.