---
title: "Analyze document with AI-OCR"
method: POST
path: "/job/add/paperoffice_aiocr___generate"
tags: ["Document AI — OCR & IDP"]
---

# Analyze document with AI-OCR

`POST /job/add/paperoffice_aiocr___generate`

## Request

- Base URL: `https://api.paperoffice.ai/latest`
- URL: `https://api.paperoffice.ai/latest/job/add/paperoffice_aiocr___generate`
- Auth: HTTP bearer

AI-powered OCR document analysis — extract text, detect tables, layout, bounding boxes. Modes: text (fast), grid (+ bounding boxes/QR), complete (+ tables/layout/markdown). Optional: create searchable PDF. File input...

This operation has 8 documented variants (same method and path, different fields):
- [Analyze document with AI-OCR](https://api.paperoffice.ai/latest/docs/endpoints/po-aiocr-analyze.md) — AI-powered OCR document analysis — extract text, detect tables, layout, bounding boxes. Modes: text (fast), grid (+ bounding boxes/QR), complete (+ tables/layout/markdown). Optional: create searchable PDF. File input...
- [Extract AI-OCR grid boxes](https://api.paperoffice.ai/latest/docs/endpoints/po-aiocr-gridboxes.md) — Aiocr: AI-OCR Grid/Boxes OCR with bounding boxes - includes precise text positions for each line. Required for Document Anonymization! --- When to Use - Document Anonymization redacting sensitive data - IDP Intelligent Document...
- [Extract AI-OCR plain text](https://api.paperoffice.ai/latest/docs/endpoints/po-aiocr-text-only.md) — Fast plain-text OCR extraction (no full layout analysis).
- [Run complete AI-OCR analysis](https://api.paperoffice.ai/latest/docs/endpoints/po-aiocr-complete-analysis.md) — Aiocr: AI-OCR Complete Analysis Full document analysis - includes text, bounding boxes, table detection, and layout analysis. --- When to Use - Complex documents with tables and structured layouts - Financial reports, invoices with...
- [Extract government form data](https://api.paperoffice.ai/latest/docs/endpoints/po-extraction-government-forms.md) — Extract data from government and official forms (applications, civic/ID forms). Fields: all_fields, checkboxes, signatures. Pipeline: paperoffice_aiocr___generate — not IDP workflow.
- [Extract handwritten customer form](https://api.paperoffice.ai/latest/docs/endpoints/po-extraction-handwritten-customer-form.md) — Handwritten customer/intake form recognition (filled forms). Fields: extracted_text, confidence, language. Pipeline: paperoffice_aiocr___generate.
- [Extract handwritten document](https://api.paperoffice.ai/latest/docs/endpoints/po-extraction-handwritten-document.md) — General handwritten page/note recognition (not a structured intake form). Fields: extracted_text, confidence, language. Pipeline: paperoffice_aiocr___generate. Use processing_lane for Start-SLA...
- [Extract US tax forms](https://api.paperoffice.ai/latest/docs/endpoints/po-extraction-us-tax-forms.md) — Extract data from US tax forms (W-2, 1040, 1099 and similar). Fields: all_fields, checkboxes, signatures. Pipeline: paperoffice_aiocr___generate — not IDP workflow.

## Response `200`

Success

- SuccessEnvelope: Success envelope. Payload fields are endpoint-specific (top-level fields, `result`/`job_result` for jobs, `data` on some account endpoints).
  - `status` 'success', required
  - `processing_time` union
    - string
    - number
  - `_billing` object

## Other responses

- `202`: Accepted — job continues in the background
- `4XX`: Error
- `5XX`: Error

---

[API](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api.md) · [All operations](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/paperoffice/apis/paperoffice-ai-api/revisions/c6a6228a4509?raw)
