S8 Document AI / OCR

Extract text from image (Fast = Brainiall Form Parser, Pro = Brainiall Form Parser engine)

Two tiers: Fast (Brainiall Form Parser (Fast tier, quantized) + confidence threshold + content sanity filter, mono-line, 327 ms) or Pro (Brainiall Form Parser (Pro tier, quantized), multi-line + structured receipt extraction, 2.4 s). 5-10× cheaper than AWS Textract for receipts. permissively licensed.

post/v1/ocr/extract/base64

Request

  • Base URL: https://api.brainiall.com
  • URL: https://api.brainiall.com/v1/ocr/extract/base64
  • Auth: HTTP bearer

Request body

imagestring required

Base64-encoded image

tier'fast' | 'pro'

fast = Brainiall Form Parser mono-line printed text · pro = Brainiall Form Parser engine multi-line + structured receipt extraction

Response

Text extracted

request_idstring
processing_msinteger
tier'fast' | 'pro'
textstring nullable

Extracted text (null if low_confidence on Fast tier)

raw_textstring nullable

Raw decoder output (only present when low_confidence=true; for diagnostics)

confidencenumber float nullable
low_confidenceboolean nullable

True if Fast tier rejected output (no-text image, gibberish, or out-of-scope multi-line)

low_confidence_reasonstring nullable
structuredobject nullable

Brainiall Form Parser engine Pro tier structured output (raw + parsed)

Changes

No recorded changes to this operation across all 1 revision of this API.