Vision · best for

Top picks for Diagram Extraction (2026)

Reading flowcharts, org charts, architecture diagrams. Ranked from 423 live models on the OpenRouter catalog, weighted for vision input, structured output, reasoning quality.

Updated 2026-09-08 · prices checked at this morning's rebuild

What this is Ranked by capability match + real benchmark scores (Aider Polyglot, Artificial Analysis Intelligence Index) + live pricing. Models need the right specs for Diagram Extraction, then benchmark performance refines the order. Full methodology →

Which should you use? Anthropic: Claude Opus 4.7 (batch) tops this ranking on blended score. If cost drives the decision, Meta: Muse Spark 1.3 is the cheapest of the leaders at $1.25/M input.

#ModelScoreIn / 1MOut / 1MContext
1 Anthropic: Claude Opus 4.7 (batch)anthropic/claude-opus-4.7:batch 156 $2.50 $12.50 1,000,000 Details →
2 Anthropic: Claude Sonnet 4.6anthropic/claude-sonnet-4.6 153 $3.00 $15.00 1,000,000 Details →
3 Anthropic: Claude Sonnet 4.6 (batch)anthropic/claude-sonnet-4.6:batch 153 $1.50 $7.50 1,000,000 Details →
4 Anthropic: Claude Opus 4.7anthropic/claude-opus-4.7 151 $5.00 $25.00 1,000,000 Details →
5 Claude Opus 5 (batch)anthropic/claude-opus-5:batch 150 $2.50 $12.50 1,000,000 Details →
6 Meta: Muse Spark 1.3meta/muse-spark-1.3 150 $1.25 $4.25 1,048,576 Details →
7 Anthropic: Claude Opus 4.8 (batch)anthropic/claude-opus-4.8:batch 149 $2.50 $12.50 1,000,000 Details →
8 OpenAI: GPT-5.6 Solopenai/gpt-5.6-sol 149 $2.00 $10.00 1,050,000 Details →
9 OpenAI: GPT-5.6 Sol (batch)openai/gpt-5.6-sol:batch 149 $1.00 $5.00 1,050,000 Details →
10 SpaceXAI: Grok 4.6x-ai/grok-4.6 149 $2.00 $6.00 500,000 Details →
11 MoonshotAI: Kimi K3moonshotai/kimi-k3 149 $3.00 $15.00 1,048,576 Details →
12 MoonshotAI: Kimi K3 (batch)moonshotai/kimi-k3:batch 149 $3.00 $15.00 1,048,576 Details →
13 Z.ai: GLM 5.3 Flashz-ai/glm-5.3-flash 148 $0.07 $0.25 1,310,720 Details →
14 Z.ai: GLM 5.3 Flash (batch)z-ai/glm-5.3-flash:batch 148 $0.15 $0.50 1,048,575 Details →
15 OpenAI: GPT-5.5 (batch)openai/gpt-5.5:batch 148 $2.50 $15.00 1,050,000 Details →
From this site PicksByModel API These rankings as live JSON: quality scores, pricing, and context for every model.
See plans →

How we ranked these

For Diagram Extraction, we weight models on vision input, structured output, reasoning quality. Scores combine each model's public specs with independent benchmark results (Aider Polyglot coding scores, Artificial Analysis intelligence/coding/agentic indices) and live pricing. See full methodology →

About Diagram Extraction

Diagram extraction is the task of reading visual flowcharts, organizational hierarchies, system architecture diagrams, and similar structured graphics to extract their logical content, relationships, and text. You need this when you have hundreds of legacy diagrams in image format that must become machine-readable data, or when you're building systems that ingest visual workflows at scale. Good models recognize nodes, edges, labels, and hierarchy without hallucinating missing connections or misreading text overlaps common in dense diagrams. Poor models confuse similar shapes, lose spatial relationships, or fail on hand-drawn or low-contrast inputs. Processing time scales with image resolution and diagram complexity-a 4K screenshot of a 50-node architecture diagram can take 10-15 seconds on slower inference pipelines.

When to use: Use this when you have visual diagrams (flowcharts, org charts, network diagrams, system architecture) that you need to convert into structured data, searchable text, or editable formats, without manually redrawing them yourself.

Common questions

What is the difference between diagram extraction and general OCR?

OCR reads isolated text; diagram extraction must also understand spatial relationships, node connections, hierarchy, and the semantic meaning of shapes and arrows. A good diagram extractor knows that an arrow pointing downward in a flowchart means "flows to," not just "text appears below text." Models like Claude 3.5 Sonnet or GPT-4V handle this contextually, while basic OCR tools cannot.

How much does it cost to extract diagrams from a large document set, and how fast does it run?

API-based models (GPT-4V, Claude) typically cost $0.01-0.10 per diagram depending on resolution and provider pricing. Speed ranges from 2-30 seconds per image depending on model and queue load; batch processing APIs are slower but cheaper per unit. If you process 1,000 diagrams monthly, expect $10-100 in API costs plus time overhead.

Related tasks