Skip to main content

OpenRouter

Use Firecrawl as a tool with any model served by OpenRouter.
1 min read

Pair OpenRouter — a unified API for hundreds of LLMs — with Firecrawl to give any model live web search, scrape, and crawl.

OpenRouter's API is OpenAI-compatible, so you can use the OpenAI SDK pointed at OpenRouter's base URL plus Firecrawl's Python or JavaScript SDK as the tool.

Setup#

Scrape + Summarize with Any OpenRouter Model#

This scrapes a page with Firecrawl and summarizes it with whatever model you pick from OpenRouter — here, Claude Haiku 4.5.

Switch the model string to any OpenRouter-supported modelopenai/gpt-5, google/gemini-2.5-pro, meta-llama/llama-4-maverick, etc.

Tool Calling: Model Decides When to Scrape#

OpenRouter supports OpenAI-style tool calls, so Firecrawl plugs in as a function the model can invoke.

Python#

Notes#

  • Firecrawl is fully model-agnostic — pick any OpenRouter model without changing the scrape code.
  • Many top OpenRouter apps (Cline, Roo Code, Kilo, Cursor, Continue) are agent harnesses that can use Firecrawl MCP. Start with the MCP setup chooser to connect one.
  • For large jobs, use batch scrape to stay within LLM context budgets.