APIMODELSAPIMODELS

Blog · 2026-12-04

Unlimited-OCR-2 ($0.001/Page) & Unlimited-SVG ($0.01/Image): OpenAI-Compatible Document & Vector APIs

Model pages: Unlimited-OCR-2 API · Unlimited-SVG API — pricing, specs and the playground

Short answer: APIMODELS hosts both Baidu open-source models on dedicated GPUs behind the standard OpenAI-compatible `POST https://api.apimodels.app/v1/chat/completions` endpoint — Unlimited-OCR-2 parses images and up to 20-page PDFs into structured Markdown (HTML tables + LaTeX formulas + layout coordinates) for $0.001 per page ($1 per 1,000 pages), and Unlimited-SVG converts raster logos, icons, and illustrations into 1–5 KB editable SVG with real `<text>` and OCR-verified lettering for $0.01 per image. Failed calls are never billed.

Most developers still either pay frontier vision-LLM token rates to extract tables from PDFs or run pixel-edge tracers (Potrace / VTracer) that turn a simple 3 KB logo into a 180 KB pile of uneditable paths. Dedicated open-weight vision-to-structure models solve both bottlenecks cleanly while keeping the exact same OpenAI SDK you already ship in production.

Unlimited-OCR-2 vs Unlimited-SVG: specs and flat pricing at a glance

CapabilityUnlimited-OCR-2Unlimited-SVG
Primary jobDocument / PDF / photo OCR to structured MarkdownRaster image to clean, editable SVG code
Flat price on APIMODELS$0.001 per page ($1 per 1,000 pages)$0.01 per image
Accepted input1 image (JPEG/PNG/WebP/BMP/TIFF/GIF) or 1 PDF up to 20 pages (`pages` selector)1 raster image (logo, icon, UI graphic, illustration)
Output structureMarkdown + HTML `<table>` + LaTeX math + block types & coordinatesSemantic SVG shapes, gradients, real `<text>` (1–5 KB typical), original dimensions
Built-in quality fixesAuto-rotates sideways phone photos; retries stuck pages before returningOCR text check against original; CJK lines rewritten as glyph outlines
Endpoint & billing`POST /v1/chat/completions`, failed calls free`POST /v1/chat/completions`, failed calls free

Why Unlimited-OCR-2 beats generic vision LLMs for RAG and document pipelines

  • Predictable flat cost: $0.001 per page means parsing a 10,000-page archive costs exactly $10, instead of fluctuating wildly with dense-page output token counts.
  • Layout coordinates preserved: Because every block returns its type and bounding box alongside HTML tables and LaTeX equations, downstream chunkers can link citations back to exact PDF regions.
  • Phone-photo resilience: Rotated scans and tilted phone captures are oriented upright automatically before OCR runs, cutting pre-processing boilerplate.

Why Unlimited-SVG beats bitmap tracers for logos, icons and brand assets

  • True semantic primitives instead of edge traces: Circles stay `<circle>`, gradients stay `<linearGradient>`, and Latin words come back as real `<text>` elements instead of hundreds of jagged path nodes.
  • OCR-checked lettering + CJK outlines: Generated words are cross-checked against an OCR reading of the source image to prevent hallucinated typos; Chinese and Japanese text is emitted as crisp glyph outlines so fonts never break across browsers.
  • Production file size: Typical logos and icons land at 1 to 5 KB and preserve the source image width and height.

Drop-in Python example (same OpenAI SDK for both)

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.apimodels.app/v1",
    api_key=os.environ["APIMODELS_API_KEY"],
)

# 1) Unlimited-OCR-2: $0.001 per page (image or PDF up to 20 pages)
ocr = client.chat.completions.create(
    model="unlimited-ocr-2",
    messages=[{
        "role": "user",
        "content": [
            {"type": "image_url", "image_url": {"url": "https://example.com/invoice.png"}},
        ],
    }],
)
print(ocr.choices[0].message.content)

# 2) Unlimited-SVG: $0.01 per image -> clean 1-5 KB editable SVG
svg = client.chat.completions.create(
    model="unlimited-svg",
    messages=[{
        "role": "user",
        "content": [
            {"type": "image_url", "image_url": {"url": "https://example.com/logo.png"}},
        ],
    }],
)
print(svg.choices[0].message.content)

For complete request fields, PDF `pages` filtering, and response schemas, see the Unlimited-OCR-2 API docs and Unlimited-SVG API docs, or read our visual reviews at Unlimited-OCR-2 review and Unlimited-SVG review.

Fontes

Perguntas frequentes

How much does Unlimited-OCR-2 cost for 1,000 PDF pages?

Exactly $1.00 ($0.001 per page) on apimodels.app. Each request accepts up to 20 PDF pages (with an optional pages field to pick specific pages), and failed requests are never billed.

What makes Unlimited-SVG output smaller and easier to edit than Potrace?

Bitmap tracers like Potrace trace pixel boundaries into dense raw paths, whereas Unlimited-SVG writes structured SVG primitives, gradients, and OCR-verified <text> elements from scratch — typically 1 to 5 KB per logo or icon.

Can I call Unlimited-OCR-2 and Unlimited-SVG with the same OpenAI SDK and balance?

Yes. Both run on POST https://api.apimodels.app/v1/chat/completions using the same apimodels.app API key and shared USD balance ($10 minimum top-up, $0.20 trial credit for new accounts).

Does Unlimited-OCR-2 handle rotated phone photos and tables?

Yes. Rotated photos are automatically turned upright before parsing, tables are returned as clean HTML inside the Markdown output, math expressions are formatted in LaTeX, and every layout block carries its type and coordinates.