🦙 LlamaParse Tier Comparison Demo

Interactive side-by-side viewer comparing LlamaParse v2 parsing tiers on real financial documents.

Live demo: viewer.ts endpoint

Architecture

Rendering mermaid diagram...

How It Works

Rendering mermaid diagram...

Test Documents

DocumentPagesTypeChallenge
JPMorgan Q4 2025 Earnings Presentation21Slide deckCharts, graphs, mixed text/image layouts
JPMorgan Q4 2025 Earnings Supplement29Financial tablesDense nested tables, footnotes, merged cells

Tier Comparison

Credits & Cost per Page

TierCredits/pg$/pageBest For
fast1$0.00125Quick text extraction, no AI
cost_effective3$0.00375Standard docs, good accuracy/cost ratio
agentic10$0.01250Complex layouts needing reasoning
agentic_plus45$0.05625Maximum accuracy on dense financial docs

(1,000 credits = $1.25 in North America)

This Demo's Cost Breakdown

JPMorgan Presentation (21 pages × 4 tiers):

TierCreditsCostOutput
fast21$0.02655,097 chars (spatial text only)
cost_effective63$0.07938,572 chars (markdown)
agentic210$0.26338,683 chars (markdown)
agentic_plus945$1.18138,646 chars (markdown)

JPMorgan Supplement (29 pages × 4 tiers):

TierCreditsCostOutput
fast29$0.036213,067 chars (spatial text only)
cost_effective87$0.109186,036 chars (markdown)
agentic290$0.363184,084 chars (markdown)
agentic_plus1,305$1.631178,615 chars (markdown)

Total for this demo: 2,950 credits = $3.69

Observations

  • fast tier returns spatial text (no markdown structure), hence higher char counts from whitespace
  • cost_effective vs agentic produce nearly identical output on these docs
  • agentic_plus at 45 credits/page is 15× more expensive than cost_effective with marginal improvement
  • For standard financial tables: cost_effective is the sweet spot
  • For charts/images: agentic tiers may extract chart data more intelligently

Files

FileTypeDescription
dispatch.tsScriptSends PDFs to LlamaParse at 4 tiers, saves job manifest
collect.tsScriptPolls jobs, saves parsed markdown to blob storage
viewer.tsHTTPSide-by-side PDF/markdown viewer with cost display
check-pdfs.tsScriptUtility to verify uploaded PDFs in blob storage

LlamaParse v2 API Notes

Dispatch — POST /api/v2/parse/

{ "source_url": "https://...", "tier": "cost_effective", "version": "latest" }

Poll/Collect — GET /api/v2/parse/:job_id?expand=markdown

  • Response: data.job.status → PENDING | COMPLETED | FAILED
  • Content: data.markdown.pages[].markdown (sorted by page_number)
  • Fast tier: use ?expand=text → data.text.pages[].text

Key differences from v1:

  • Tier-based instead of mode-based
  • source_url parameter for public PDFs (no upload needed)
  • Response structure: data.job.status not data.status
  • 1-based page indexing (v1 was 0-based)