OCR Processing

Process Ocr

Process document with OCR using DeepSeek-OCR service

Flow:

  1. Authenticate user (JWT token)
  2. Check user's token balance
  3. Upload file to S3 storage
  4. Forward request to DeepSeek with company API key
  5. Store structured data (tables, JSON, etc.)
  6. Track token usage
  7. Return OCR results with structured data
post/api/ocr/process

Request

  • Base URL
    https://api.qomplement.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.qomplement.com/api/ocr/process
  • Auth
    HTTP bearer

Request body multipart/form-data

filestring binary required

Response

Successful Response

document_idstring required
textstring required
bounding_boxesobject[] nullable
api_dimensionsobject nullable
structured_dataobject nullable
tokens_usedinteger required
tokens_remaininginteger required
processing_time_msinteger required

Changes

No recorded changes to this operation across all 9 revisions of this API.