📄 Familia de Documentos
Inteligencia de Documentos e OCR Estructurado
Transforme PDFs, escaneos, facturas y contratos en JSON estructurado y Markdown semántico para flujos RAG.
Document AI y OCR de Estructura
POST/v1/document/extract
Reconocimiento de texto con cuadros delimitadores precisos para documentos complejos y rotados.
- Layout-aware text recognition with pixel-accurate bounding boxes
- Multi-column, complex diagram, and rotated document parsing
- Supports PDF, TIFF, PNG, JPEG with automatic skew correction
Page Speed< 350ms / page
Character Accuracy99.4% on printed text
POST /v1/document/extractcURL
curl -X POST https://api.brainiall.com/v1/document/extract \
-H "Authorization: Bearer $BRAINIALL_KEY" \
-F "file=@contract.pdf" \
-F "features=layout,text,boxes"
# Response:
# {
# "pages": [{
# "page": 1,
# "blocks": [{ "type": "header", "text": "Service Agreement", "box": [40, 50, 520, 90] }]
# }]
# }Conversor de PDF a Markdown Limpio
POST/v1/document/pdf-to-markdown
Convierte PDFs complejos y tablas en Markdown semántico optimizado para fragmentación vectorial.
- Converts arbitrary PDFs into clean, semantic GitHub-flavored Markdown
- Reconstructs nested tables, lists, headers, and code snippets faithfully
- Optimized as the ingestion standard for LLM RAG pipelines
POST /v1/document/pdf-to-markdowncURL
curl -X POST https://api.brainiall.com/v1/document/pdf-to-markdown \ -H "Authorization: Bearer $BRAINIALL_KEY" \ -F "file=@annual_report.pdf" \ -F "table_format=gfm" # Returns pure semantic markdown ready for vector chunking: # # Annual Financial Report 2026 # | Quarter | Revenue | EBITDA | # |---|---|---| # | Q1 | $14.2M | $3.8M |
Extracción Estructurada de Formularios y Tablas
POST/v1/document/intelligence
Extracción automática de pares clave-valor y matrices de tablas de facturas y recibos.
- Key-value pair extraction from unstructured receipts, bills, and forms
- Reconstructs cell-by-cell table matrices with merged cell detection
- Emits confidence ratings for every extracted field
POST /v1/document/intelligencecURL
curl -X POST https://api.brainiall.com/v1/document/intelligence \
-H "Authorization: Bearer $BRAINIALL_KEY" \
-F "file=@invoice_scan.jpg" \
-F "extract=key_values,tables"
# Response:
# {
# "fields": { "invoice_number": "INV-2026-08", "total": "1,420.00", "due_date": "2026-09-15" }
# }Esquemas por Sector
POST/v1/document/verticals/{domain}
Modelos especializados entrenados en estados financieros, informes médicos y contratos legales.
- Financial: Invoices, bank statements, balance sheets, tax receipts
- Healthcare: Patient intake forms, lab results, prescription orders
- Legal: Deeds, contracts, court dockets, non-disclosure agreements
POST /v1/document/verticals/financialcURL
curl -X POST https://api.brainiall.com/v1/document/verticals/financial \ -H "Authorization: Bearer $BRAINIALL_KEY" \ -F "file=@bank_statement.pdf" \ -F "schema=bank_statement_v2"
Procesamiento Masivo por Lotes
POST/v1/document/batch
Ingesta paralela para archivos de más de 10.000 páginas con avisos asíncronos por webhook.
- High-throughput ingestion for archives of 10,000+ pages
- Webhook completion callbacks with automatic retries on corrupt pages
POST /v1/document/batchcURL
curl -X POST https://api.brainiall.com/v1/document/batch \
-H "Authorization: Bearer $BRAINIALL_KEY" \
-d '{
"document_urls": ["https://s3.../doc1.pdf", "https://s3.../doc2.pdf"],
"webhook_url": "https://myapp.com/webhooks/docs"
}'