Guide to using different chat models with Browsernode
import { ChatOpenAI } from "browsernode";
or import { ChatOpenAI } from "browsernode/llm";
etc. The methods should be compatible(ish).
We also made and example here to help you stay with Langchain in case your workflow requires it.
gemini-2.5-flash
(currently also the most popular model, costs ~$0.001 per step).
[!IMPORTANT]GEMINI_API_KEY
was the old environment var name, it should be calledGOOGLE_API_KEY
as of 2025-05.