KeyoAPI

UVDoc API — Document Unwarping for Better OCR

UVDoc fixes the physical world problem that kills OCR: curved book pages and skewed phone scans.

Listed price: $0.0137 / request · Confirm live rates on interactive pricing.

Open interactive pricing Compare API prices Create account

Overview

UVDoc fixes the physical world problem that kills OCR: curved book pages and skewed phone scans. As part of KeyoAPI’s ocr api toolkit, UVDoc unwarps images so MinerU2.5-Pro and Unlimited-OCR see straighter text lines. Unwarping is a specialized CV step—not a full OCR replacement. Products that let users snap receipts or IDs see immediate accuracy lifts after UVDoc. Per-request pricing around $0.0137 keeps the preprocessing stage accountable in your cost model. Compare against losing conversions when OCR fails on mobile uploads. Banking onboarding, expense apps, classroom worksheet capture, and archive digitization. Optional upscale with Real-ESRGAN when resolution is tiny. Call UVDoc via Keyo image/unwarping paths documented in the developer docs, then pass output to OCR models. Start at /pricing/UVDoc. UVDoc is preprocessing, not OCR: unwarp curved phone scans first, then hand the flattened image to MinerU or Unlimited-OCR for higher text accuracy. Phone scans fail OCR because of curvature and perspective, not because the OCR model is weak. UVDoc’s job is geometric cleanup before recognition. Run it only on camera captures; skip it for digital-born PDFs to save latency and cost. Store both the warped original and the unwarped result for audit. After UVDoc, call MinerU or Unlimited-OCR and compare character error rates on a labeled set of receipts or IDs. That A/B is how you justify the extra hop. KeyoAPI keeps unwarp + OCR + LLM on one prepaid balance. Gate UVDoc with a curvature heuristic so flat scans skip the hop. Log warp confidence. When confidence is low, ask the user to retake the photo instead of burning OCR tokens on garbage geometry.

Quick start

Base URL: https://www.keyoapi.xyz/v1

Endpoint: POST /v1/images/unwarping

Model: model=UVDoc

curl https://www.keyoapi.xyz/v1/images/unwarping \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -F model=UVDoc \
  -F image=@./scan.png

Auth uses the same Bearer API key as chat. Full notes: Keyo docs.

FAQ

Do I always need UVDoc before OCR?

Use it when pages are curved, skewed, or photographed at an angle. Flat digital PDFs can skip straight to MinerU/Unlimited-OCR.

Can I chain UVDoc → MinerU on KeyoAPI?

Yes—that combo is a recommended “correct then parse” pipeline for phone-captured documents.

Pricing?

About $0.0137 per request on /pricing/UVDoc.

Related models

MinerU2.5-Pro API Unlimited-OCR API Real-ESRGAN API

Guide for UVDoc. Try/buy: /pricing/UVDoc · Catalog: /pricing.