{% extends 'dashboard/base.html' %} {% load static %} {% block title %}OCR API Testing - Peza API{% endblock %} {% block breadcrumb %}OCR API Testing{% endblock %} {% block extra_css %} {% endblock %} {% block content %}

OCR API Testing

Testing keys automatically include the playground header when supported by the OCR gateway.

{% if not api_keys %}

No API keys. Create one

{% endif %}
Text /v1/ocr/text

Extract plain OCR text from image/PDF documents.

Service: OCR API

Version: 1.0.0

Note: All OCR endpoints require X-API-Key header.

Health: GET https://api.pezamw.com/health

Endpoints: /v1/ocr/text, /v1/ocr/extract, /v1/ocr/invoice, /v1/ocr/receipt, /v1/ocr/invoice/validate, /v1/ocr/kyc, /v1/ocr/bank-statement, /v1/ocr/utility-bill, /v1/ocr/business-card, /v1/ocr/pdf-to-json, /v1/ocr/data-entry, /v1/ocr/classify, /v1/ocr/risk-signals

Drag & drop or click to browse

JPG, PNG, WEBP, BMP, TIFF, PDF (max 10MB)

API Response

{
  "status": "ready",
  "message": "Upload a document and test"
}
Status
Duration

Response Headers

Code Examples

cURL Command
curl -X POST \
  -H "X-API-Key: YOUR_KEY" \
  -F "image=@document.jpg" \
  https://api.pezamw.com/v1/ocr/text
{% endblock %}