Skip to main content

Models

qomplement provides OCR and Fill models. Choose the right model based on your accuracy needs and use case.

GET /v1/models

Available Models

qomplement-OCR-v1

The default model. Fast, cost-effective, and accurate for most documents.

PropertyValue
Model IDqomplement-OCR-v1
TypeStandard OCR + AI structuring with advanced layout analysis
Best forDigital PDFs, clean scans, typed documents, invoices, contracts, and structured business documents
Speed~2-4 seconds per page (varies by document complexity and image resolution)
Token cost1x (base rate) — most cost-effective option for high-volume processing

Capabilities:

FeatureStatus
Text extractionFully supported with advanced layout preservation and reading order detection
Table detectionFully supported including complex multi-row headers, merged cells, and nested table structures
Key-value pairsFully supported with semantic understanding and contextual relationship detection
Schema-guided extractionFully supported with custom field definitions, validation rules, and confidence scoring
Multi-page documentsFully supported up to 200 pages per request with automatic page range processing
Handwriting recognitionLimited support — works best for printed text; may struggle with cursive or poor handwriting
Low-quality scansLimited support — requires minimum 150 DPI; degraded or faded documents may need OCR-XL model

qomplement-OCR-XL-v1

High-precision model for complex or degraded documents. Uses enhanced multi-pass processing for maximum accuracy.

PropertyValue
Model IDqomplement-OCR-XL-v1
TypeEnhanced OCR + multi-pass AI structuring with deep learning handwriting and degraded document processing
Best forHandwritten documents, low-quality scans, faded or damaged documents, complex medical/legal forms, historical archives
Speed~5-10 seconds per page (longer for heavily degraded or handwritten content with multiple verification passes)
Token cost2x (double base rate) — premium pricing for maximum accuracy and specialized document handling capabilities

Capabilities:

FeatureStatus
Text extractionFully supported with enhanced character recognition for degraded, blurred, or faded text across all document types
Table detectionFully supported including irregular tables, hand-drawn borders, and documents with mixed handwritten/printed content
Key-value pairsFully supported with advanced contextual analysis and relationship detection even in unstructured layouts
Schema-guided extractionFully supported with intelligent field matching, fuzzy text recognition, and adaptive confidence thresholds
Multi-page documentsFully supported up to 200 pages per request with cross-page table continuation and section detection
Handwriting recognitionFully supported including cursive, print, mixed styles, and multiple languages with deep learning verification
Low-quality scansFully supported down to 75 DPI with noise reduction, contrast enhancement, and adaptive preprocessing

qomplement-fill-v1

AI-powered form filling model. Detects PDF form fields and intelligently maps data from source documents, natural language instructions, or explicit mappings.

PropertyValue
Model IDqomplement-fill-v1
TypeAI-powered form field detection + intelligent semantic mapping with cross-document data extraction
Best forPDF form filling, document-to-form automation, government forms, application processing, medical intake forms, legal document generation
Speed~3-8 seconds per form (varies by number of fields, source document complexity, and mapping method used)
Token cost1x (base rate) — cost-effective for both single form fills and high-volume batch processing workflows

Capabilities:

FeatureStatus
Form field detectionFully supported with automatic identification of text fields, checkboxes, radio buttons, dropdowns, and signature fields
Source document extractionFully supported with intelligent data extraction from multiple source documents and automatic field-to-value matching
Natural language instructionsFully supported with plain English commands like "Fill applicant name as John Smith" for simple and complex filling logic
Explicit JSON mappingsFully supported with direct field-to-value assignments using JSON format for programmatic control and batch processing
Cross-language field matchingFully supported with semantic understanding across English, Spanish, French, German, and 20+ other languages
Confidence scoringFully supported with per-field confidence metrics (0-100%) to identify uncertain mappings requiring manual review
Form flatteningFully supported with option to flatten filled PDFs into non-editable documents for final distribution and archival

Three input methods:

MethodDescription
Source documentsUpload one or more source documents (PDFs, images, Word files) and the AI automatically extracts relevant data and intelligently maps it to matching form fields using semantic understanding and field name analysis
InstructionsDescribe what to fill using plain language commands (e.g., "Fill client name as 'Acme Corp' and set date to today") — ideal for simple forms or when you need to override specific fields with custom values
Explicit mappingsProvide exact field-to-value mappings using JSON format like {"field_name": "value"} — gives you complete programmatic control for batch processing, API integrations, and database-driven form filling workflows

Usage

Specify the OCR model in extraction or fill endpoints using the model parameter:

curl -X POST https://developer-api.qomplement.com/v1/extract \
-H "Authorization: Bearer sd_your_api_key" \
-F "files=@document.pdf" \
-F "model=qomplement-OCR-XL-v1"

If omitted, the API defaults to qomplement-OCR-v1. The fill endpoint automatically uses qomplement-fill-v1 for field mapping.

Model Versions

Models are versioned to ensure consistent behavior. The current versions are:

AliasPoints toReleased
qomplement-OCR-v1qomplement-OCR-v1-2025-02 — Latest standard OCR model with improved table detection and layout analysisFebruary 2025
qomplement-OCR-XL-v1qomplement-OCR-XL-v1-2025-02 — Latest high-precision model with enhanced handwriting recognition and degraded document processingFebruary 2025
qomplement-fill-v1qomplement-fill-v1-2025-02 — Latest form filling model with improved semantic matching and multi-language field detectionFebruary 2025

When new versions are released, the alias automatically points to the latest version. Pin a specific version by using the full version ID (e.g., qomplement-OCR-v1-2025-02) if you need deterministic behavior.

Rate Limits

Rate limits ensure fair access to the API. Your tier determines your limits.

TierMonthly TokensRequests / minMax Pages / requestMax File Size
Free100K tokens — suitable for testing and small projects with approximately 100-200 pages per month10 requests/min — ideal for development and prototyping workflows10 pages maximum per single API request10 MB per file — sufficient for most standard documents
Starter500K tokens — supports small businesses processing 500-1,000 pages monthly with room for growth30 requests/min — enables moderate automation and scheduled batch processing50 pages maximum per single API request25 MB per file — handles larger documents and high-res scans
Growth2.5M tokens — designed for growing teams processing 2,500-5,000 pages per month at scale60 requests/min — supports high-volume automation, webhooks, and real-time integrations100 pages maximum per single API request50 MB per file — accommodates complex multi-page reports
Scale10M tokens — enterprise-grade capacity for 10,000-20,000 pages monthly with dedicated support120 requests/min — handles enterprise workloads with parallel processing and mission-critical SLAs200 pages maximum per single API request100 MB per file — processes large archives and consolidated documents

Rate limit headers are included in every response:

X-RateLimit-Limit: 30
X-RateLimit-Remaining: 29
X-RateLimit-Reset: 1709078400

If you exceed your rate limit, the API returns 429 Too Many Requests. See Rate Limiting for details.

Pricing

Tokens are consumed per page processed. The XL model uses 2x tokens per page.

ModelTokens per page/formApproximate cost
qomplement-OCR-v1~500-1,500 tokens per page depending on document complexity, table density, and content structureVaries by pricing tier — most economical option for high-volume batch processing and standard document extraction
qomplement-OCR-XL-v1~1,000-3,000 tokens per page with enhanced processing for handwriting and degraded documents2x standard rate — premium pricing justified by superior accuracy for specialized documents requiring maximum precision
qomplement-fill-v1~500-2,000 tokens per form based on number of fields, source document complexity, and mapping method usedVaries by pricing tier — competitive rates for both single-form fills and large-scale automated form processing pipelines

Purchase tokens on the Developer Portal:

PackageTokensPricePer 1M tokens
Starter500K tokens — ideal for small businesses and development teams starting with document automation$15 per month — affordable entry point with no long-term commitment required$30 per million tokens — competitive rate for testing and small-scale deployments
Growth2.5M tokens — designed for growing businesses scaling their document processing workflows$60 per month — best value tier with 20% savings compared to Starter pricing$24 per million tokens — optimized pricing for medium-volume production workloads
Scale10M tokens — enterprise-grade capacity with priority support and dedicated account management$200 per month — maximum volume discount with premium SLA guarantees and custom integrations$20 per million tokens — lowest per-token cost for high-volume enterprise customers

Choosing a Model

ScenarioRecommended Model
Digital PDFs with typed textqomplement-OCR-v1 — optimized for born-digital documents, invoices, contracts, and business correspondence with fast processing and excellent accuracy for machine-generated text
Clean scans (300+ DPI)qomplement-OCR-v1 — handles high-quality scanned documents efficiently with precise text extraction, table detection, and layout preservation at the most cost-effective rate
Handwritten formsqomplement-OCR-XL-v1 — specialized deep learning models trained on cursive, print, and mixed handwriting styles with multiple verification passes for maximum accuracy
Faded or damaged documentsqomplement-OCR-XL-v1 — advanced preprocessing with noise reduction, contrast enhancement, and adaptive thresholding to recover text from degraded historical or archived documents
Mixed typed + handwrittenqomplement-OCR-XL-v1 — intelligently segments and processes different text types using appropriate recognition engines for optimal results across content variations
High-volume batch processingqomplement-OCR-v1 — fastest processing speed and lowest token cost makes it ideal for processing thousands of pages daily in automated production workflows
Legal/medical documents requiring accuracyqomplement-OCR-XL-v1 — highest precision model with multi-pass verification recommended for mission-critical documents where errors can have serious compliance or liability consequences
PDF form filling from source documentsqomplement-fill-v1 — automatically extracts data from source documents and intelligently maps to PDF form fields using semantic field matching and contextual understanding
Form filling with natural language instructionsqomplement-fill-v1 — accepts plain English commands to fill forms programmatically, ideal for simple forms or when you need human-readable filling logic in your codebase
tip

Start with qomplement-OCR-v1 for most use cases. Switch to qomplement-OCR-XL-v1 only if you see accuracy issues with specific document types. You can use the Playground to compare results side by side.