Best model for scraping and automation: the workhorses are not the flagships
The best LLM for data extraction runs on cheap, fast, low-effort tokens: DeepSeek V4.1 Flash carries a third of OpenRouter's volume for a reason. The workhorse table with prices and speeds, the planner tier, which models refuse scraper work, and the cheapest routes in.
Takeaway
Scraping and automation invert the flagship logic. The job is millions of small, well-specified calls — classify this page, extract these fields, follow this schema — so the winning models are the cheap Flash/Luna/Haiku tier run at low or non-reasoning effort, not the board-topping reasoners. The market has already voted: DeepSeek V4.1 Flash alone carries roughly a third of all token volume on OpenRouter. This page tables the workhorses with prices and speeds, names the planner tier for the multi-step jobs, and maps the one risk leaderboards never show — which models refuse to write or run scraper code at all.
All figures checked 26 November 2026. Artificial Analysis republished its index during the checking window; contested figures are flagged rather than silently picked.
Models vs scraping tools. This page compares the models that do the extraction, not the scraping tools themselves. Firecrawl, Apify, Browser Use and similar tools run the browser and fetch the pages; the model reads what they return and pulls the fields out. A tool choice and a model choice are two different decisions — this page is about the second.
The job splits three ways
- Write the scraper — code generation, site-specific parsing, maintenance when layouts change. This is ordinary coding; the coding guide governs it, with one scenario-specific exception covered in the task-boundary section below.
- Run the extraction — the high-volume tier. Price per million tokens, output speed and behaviour at low effort decide everything. This is the table below.
- Plan the multi-step job — agentic browsing, deciding what to fetch next, recovering from failures. A small number of expensive calls where a mid-price flagship earns its rate.
A fourth shape is emerging for the closed-question slice of this work — the classify/score/route calls whose possible answers are known in advance: decision models return a typed value with a calibrated probability in a single pass, at $0.01–$0.10 per million input tokens with output free, instead of generated text you parse. They cannot extract into an arbitrary schema, so they complement the workhorse table below rather than replacing it — but for pure classification and routing steps they are now the cheapest legitimate option.
Best LLM for data extraction — the workhorse table
Prices are per 1M tokens (input / output), vendor or first-party API unless a route is named. Speed and index figures are Artificial Analysis (Intelligence Index v5.0.2) unless noted.
| Model | Price in / out | Benchmark | Setting | Evaluator | Output speed | First answer, low / non-reasoning | AA Intelligence | Notes |
|---|---|---|---|---|---|---|---|---|
| DeepSeek V4.1 Flash | $0.30 / $1.20 | output speed / time to first answer token / Intelligence Index | v5.0.2; non-reasoning 1.0 s; output speed rolling average | Artificial Analysis | ~173 tok/s | 1.0 s (non-reasoning) | 32 (max); 19 non-reasoning | OpenRouter’s #1 by tokens (~31%). 1M context swallows whole HTML dumps. Peak/off-peak pricing on some routes. |
| GPT-6 Luna | $0.10 / $0.50 | output speed / time to first answer token / Intelligence Index | v5.0.2; non-reasoning 1.3 s; output speed rolling average | Artificial Analysis | ~100–109 tok/s | 1.3 s (non-reasoning) | 28 (max); 9 non-reasoning | Joint-cheapest proprietary API. Batch and Flex halve the rate again — the offline-pipeline default. |
| GLM 5.3 Flash | $0.15 / $0.50 | output speed / Intelligence Index | v5.0.2; output speed rolling average; first answer endpoint-dependent | Artificial Analysis | ~96 tok/s (OpenRouter routes) | endpoint-dependent | 28 | Cheapest credible tier; OpenRouter routes run as low as $0.036 in — publish the Z.ai list price, expect route variance. Slow on Z.ai’s own endpoint at max effort; routes are faster. |
| Claude Haiku 5.5 | $0.10 / $0.50 (≤100K prompts) | output speed / time to first answer token / Intelligence Index | v5.0.2; low effort 7.0 s; output speed snapshot at low effort | Artificial Analysis | ~239 tok/s at low effort (snapshot) | 7.0 s (low) | 37 (max, v5.0.2) | Positioned by Anthropic for classification, extraction and routing. Price cliff: prompts over 100K tokens cost 5× ($0.50 / $2.50) — HTML-heavy prompts hit this fast. See the refusal section before choosing it. |
| MiniMax M3.1 Flash | $0.15 / $0.60 list; $0.075 / $0.30 route | output speed / Intelligence Index | v5.x; OpenRouter p50 speed | Artificial Analysis | 205 tok/s (OpenRouter p50) | — | 29 (v5.x) | Agentic-work-tuned Flash tier; among the fastest routes measured. |
| Tencent Hy4 Flash | $0.035 / $0.14 (OpenRouter route) | output speed | OpenRouter p50; no AA index entry | Artificial Analysis | 61 tok/s (OpenRouter p50) | — | No AA entry exists | #2 by OpenRouter token volume (~13–14%) and the cheapest per token there. No independent index score exists to cite — that gap is stated, not filled. |
| Gemini 3.8 Flash | $0.75 / $3.75 | output speed; LiveBench Instruction Following | output-speed readings conflict; LiveBench frozen June 2026 result (category dropped from LiveBench 2.0) | speed: conflicting snapshots; score: LiveBench | readings conflict (145–302 tok/s) | — | contested across snapshots | #1 of 70 configurations at 81.4% — the schema-obedience proxy. Price doubles 1 Jan 2027 to $1.50 / $7.50. Superseded as Google’s default Flash path by Gemini 4 Hydrogen (12 Nov 2026). |
The planner tier, for the third job: GPT-6.2 Sol ($2 / $10; Intelligence Index v5.0.2; Artificial Analysis: 57; ~85 tok/s) is the value pick — flagship-class scores at a quarter of the top tier’s price. Claude Opus 5.5 ($4 / $20; Intelligence Index v5.0.2; Artificial Analysis: 59) is the strongest agentic planner here and the most expensive way to run a pipeline: Artificial Analysis prices its average index task at $10.04 against $0.15 for GPT-6 Luna — a ~67× spread that is the whole extraction argument in one line. Google’s family signal points the same way: AA’s own article puts the predecessor Gemini 3.7 Flash at the top of its AutomationBench-AA suite (62.7%; setting not published; Artificial Analysis) — a family result on a previous generation, cited as direction, not as a score for a current model.
Speed: configuration beats model choice
Every reasoning model in the table is slow at maximum effort — time to first answer runs 46 to 334 seconds because the figure includes thinking time — and fast at low or non-reasoning settings. Extraction should never pay for thinking it does not use: run the workhorse at low or non-reasoning effort (DeepSeek V4.1 Flash answers in ~1.0 s in non-reasoning mode; GPT-6 Luna in ~1.3 s), and escalate only the pages that fail extraction to a stronger model. One structural note: GPT-6 Luna, DeepSeek V4.1 Flash and GLM 5.3 Flash expose explicit non-reasoning modes with separately measured scores; the Claude models expose effort levels, but their adaptive thinking cannot be switched fully off, which sets a latency floor under high-volume Claude pipelines.
Verdict
- Default extraction stack: DeepSeek V4.1 Flash or GPT-6 Luna at non-reasoning effort. The two cheapest credible routes, the two fastest first answers, and — for Luna — a batch tier at half price for offline jobs. DeepSeek if you want open weights and 1M context; Luna if you want a proprietary API with the least operational fuss.
- Schema-critical extraction: Gemini 3.8 Flash while its introductory price lasts, on the strength of its instruction-following lead — with the 1 January doubling diarised and Gemini 4 Hydrogen as the migration path.
- Cheapest possible tokens: Tencent Hy4 Flash via OpenRouter, accepted with open eyes — the volume is real, the independent measurement is absent.
- Planning layer: GPT-6.2 Sol, escalating to Opus 5.5 only where the job’s value justifies a ~67× per-task cost multiple.
- Claude Haiku 5.5 is the strongest small model in the table and the riskiest choice for this scenario — see below. Capability is not the constraint; the refusal pattern is.
Task boundaries: which models refuse scraper work
Community-reported behaviour, checked 26 November 2026. Each claim below rests on at least two independent reports; the sourcing note in the frontmatter applies — Reddit threads are cited as catalogued by two independent syntheses (OpenLLM Buddy and BigIdeasDB, both 23 November 2026), because Reddit is not directly retrievable by our tools.
- Claude checks the target’s terms before building your scraper — and refuses. An r/webscraping thread from October 2026 titled “Claude Code refusing to build scraper” drew 141 comments; a commenter reports Claude “looked the site up, saw it’s terms and conditions and refused.” Parallel reports describe Claude declining a LinkedIn automation tool on terms-of-service grounds (r/claude) and refusing scraper work on public data despite scrapers already existing in the user’s own projects (r/ClaudeAI). A GitHub issue on Anthropic’s tracker (31 August 2026) records the general form: harmless technical tasks refused over third-party terms and licence worries.
- Claude flags scraper-adjacent parsing as a security bypass. On Hacker News (18 April 2026), a developer who works in scraper technology reports Claude Opus 4.7 refusing an HTML/JS parser because it believed they were “bypassing security measurements,” and refusing to automate cookie creation through a Chrome extension. A GitHub issue on the Claude Code tracker (#77218, July 2026) cross-references the same classifier over-triggering on “routine curl/scraping of public pages.”
- Claude refuses CAPTCHA solving, explicitly as policy. A user report from 29 March 2026 records Claude declining a CAPTCHA image and confirming on follow-up that the refusal is a policy choice, not a capability limit; a separate published experiment records the same refusal in near-identical words (“CAPTCHAs are security mechanisms designed to prevent automated access”). Plan pipelines that treat CAPTCHAs as a human-in-the-loop step, not a model task.
- ChatGPT’s scraper refusals are historical, and the counterweight is strong. The reports of ChatGPT refusing scraping over robots.txt or owner consent date from 2023–24. Against them, multiple 2026 practitioner guides document ChatGPT writing working scrapers routinely — including adding proxy support on request — and the research synthesis states plainly that no report of Codex refusing a scraper was found. Treat the ChatGPT refusal pattern as a 2023–24 behaviour that current evidence does not reproduce.
- A systematic study points the same way as the anecdotes. ScrapeBench (arXiv:2611.11306v3, November 2026; 1,895 sites, six previous-generation agent models) ran the following published prompt conditions: under a neutral prompt, compliance with sites’ scraping prohibitions was under 5% for five of the six — agents mostly do not refuse ordinary scraping at all — but when policy text was placed in front of them, compliance jumped (Claude Opus 4.6 to 85.9%), matching the “read the terms, then refused” mechanism users report. Its over-refusal figure for Claude (98.5% on permitted sites) occurred only under an adversarial “ignore the rules” prompt. The study covers older model generations; it is cited as mechanism evidence, not as a score for any model in the table above.
- Dropped for lack of evidence: claims that Gemini, DeepSeek, GLM or Grok refuse to write scraping code (no reports found); claims that models refuse proxy- or header-rotation code (no reports found; guides show such code produced routinely). No reports is the finding — this section will be re-checked as the record grows.
The practical consequence for stack design: the refusal risk concentrates in the code-writing and agent layers of one vendor’s models, not in extraction APIs generally. Keep the scraper codebase in a tool that will maintain it, and the refusal map stops being a pipeline risk.
Price bridge
This scenario is API-first — no subscription meters extraction volume sanely. Cheapest legitimate routes, from this site’s checked catalog (API token rates, checked 20 November 2026):
- Per-token, direct: GPT-6 Luna $0.10 / $0.50 (batch $0.05 / $0.25); GLM 5.3 Flash $0.15 / $0.50 at Z.ai list, cheaper on OpenRouter routes; DeepSeek V4.1 Flash $0.30 / $1.20 on DeepSeek’s own API; Claude Haiku 5.5 $0.10 / $0.50 under 100K-token prompts, 5× above that line.
- Via a $10 coding-agent pass: OpenCode Go ($10/mo) and Command Code GOAT ($10/mo plus fee) both pool prepaid tokens across workhorse-class models — GOAT’s $100 credit pool names DeepSeek V4.1 Flash and GLM-5.3 Flash explicitly. For bursty extraction months, a pass can undercut direct API billing; for steady volume, direct API wins. Full comparison in coding-agent passes.
- Batch tiers halve the big three: OpenAI, Anthropic and Google all price asynchronous batch work at 50% of standard on the volume models — the correct default for any extraction that is not latency-bound.
- The planner is the only subscription-shaped cost: if a human drives the automation interactively, ChatGPT Plus ($20) for GPT-6.2 Sol or Claude Pro ($20) for Opus 5.5 covers the planning layer; the extraction underneath should still be API tokens.
Changelog
2026-12-03: Title/meta/H2 alignment for hot terms (best LLM for data extraction head term; models-vs-tools clarification) — no scores or prices changed.2026-12-03: The workhorse speed and latency columns keep the protocol triple. AA time-to-first-answer and output speed are published measurements.2026-12-02: Added the protocol triple (benchmark, evaluation setting or explicitsetting not published, evaluator with source link) to every benchmark score row.
Last checked 2026-11-26 against the links below. Open the vendor page in your region before you pay — list prices move.
- Independent testArtificial Analysis — model pages (Intelligence Index v5.0.2)Open sourcePrices, index scores and time-to-first-answer figures read from AA model pages 26 Nov 2026. Intelligence Index version is v5.0.2; latency setting is time to first answer token at the listed effort. AA republished its index (v5.0.1 → v5.0.2) during this window and some scores moved between snapshots; every AA figure here names the version, and contested ones are flagged in the text.
- Independent testOpenRouter usage rankings (via dated trackers)Open sourceToken-volume shares as reported 24–25 Nov 2026 by BenchLeader, Tidelines and TeamDay: DeepSeek V4.1 Flash ~31% of all OpenRouter tokens, Tencent Hy4 Flash ~13–14%, GLM 5.3 Flash ~5.7%, GPT-6 Luna ~3–4%.
- Independent testLiveBench Instruction Following (via BenchLeader)Open sourceLiveBench Instruction Following; setting: frozen June 2026 result (category dropped from LiveBench 2.0). Data as of 26 Nov 2026. Gemini 3.8 Flash #1 of 70 configurations at 81.4%. Cited as the closest readable proxy for obeying an output schema.
- Independent testScrapeBench (Imperial, Slate & Kolt)Open sourceScrapeBench; setting: 1,895 sites, six previous-generation agent models, with prompt condition as named in the body (neutral / policy text in front / adversarial ignore-the-rules). arXiv:2611.11306v3, posted 8 Nov 2026. Cited as a study, kept separate from community reports, and not transferred to current models.
- User reportOpenLLM Buddy — scraper refusal research synthesisOpen sourcePublished 23 Nov 2026. Synthesis of community reports on models refusing scraper work, with the underlying threads linked. Reddit itself is not retrievable by our fetch tools; thread titles, subreddits and dates are as catalogued there and cross-checked against a second synthesis (BigIdeasDB, reviewed 23 Nov 2026).
- User reportHacker News — parser refusal reportOpen source18 Apr 2026. A developer working in scraper technology reports Claude Opus 4.7 refusing an HTML/JS parser as a security bypass, and refusing cookie automation via a Chrome extension.