BETA

alOCR

Extract text from documents with advanced Arabic and English OCR. Supports PDFs and images with automatic deskewing and layout detection.

Path
/v1/ocr
Key scope
ocr

Supported file formats

PDF, JPG, PNG, TIFF, BMP, WEBP

Supports Arabic and English text extraction with automatic language detection

DELETEDelete a job

alOCR keeps a job’s files and results for 30 days after processing finishes, so you can follow running tasks and retrieve results later; then they are deleted automatically and job routes return 410 job_expired. To delete them sooner (ZDR), turn on “Automatically delete after 12 hours” in the alOCR console: files and results then become unavailable 12 hours after processing finishes. The setting applies to new uploads from the account, including API uploads. Jobs made through alRetrieval or alPlatform follow those products’ storage settings.

To delete a job sooner, call DELETE on it, even while it is still being read: the reading stops and the job is not charged. Its file, results and file name are deleted at once. The job stays in your usage and billing, without its content.

Endpoint:

curl
curl -X DELETE https://alapi.deep.sa/v1/ocr/jobs/{token} \
  -H "Authorization: Bearer YOUR_API_KEY"

Response:

{
  "job_id": "550e8400-e29b-41d4-a716-446655440000",
  "token": "abc123xyz",
  "status": "deleted",
  "deleted_at": "2026-10-25T10:12:00Z"
}
  • 410 job_deleted · every route for a deleted job answers this afterwards; deleting it again answers 200
  • 409 job_in_progress · the file is still being uploaded; delete the job once the upload has finished
  • 503 delete_incomplete · storage did not respond; the job is deleted and its data is removed automatically, or call DELETE again

Ready to Get Started?

Generate an API key from your dashboard and start building

Activate account?

Activate this account?