---
title: "ezgh ocr batches"
description: "Batch OCR: many documents at a time, processed in the background."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.ezghcloud.com/llms.txt
> Use this file to discover all available pages before exploring further.

# ezgh ocr batches

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh ocr batches <command>
```

Batch OCR processes up to 1,000 documents (5 GiB) at a time with one processor, in the background. Each document can be as large as the model takes (ezgh ocr models get): 20 MiB and 100 pages for unlimited-ocr.

`ezgh ocr batches create` does it all: it uploads the documents, submits the batch, and with `--wait` waits for it and `--download` saves the outputs. Outputs are kept for 30 days after the batch finishes. Batches are in a project (`--project`).

Part of [`ezgh ocr`](/cli/reference/ocr).

## Flags

This command also takes the [global flags](/cli/reference#global-flags).

## Subcommands

| Command | Description |
| --- | --- |
| [`ezgh ocr batches cancel`](/cli/reference/ocr-batches-cancel) | Cancel a submitted batch |
| [`ezgh ocr batches create`](/cli/reference/ocr-batches-create) | Process many documents: upload them, submit the batch, and optionally wait and download |
| [`ezgh ocr batches delete`](/cli/reference/ocr-batches-delete) | Delete a batch, with its documents and outputs |
| [`ezgh ocr batches download`](/cli/reference/ocr-batches-download) | Save a finished batch's outputs: each document's, a zip of them all, or results.jsonl |
| [`ezgh ocr batches files`](/cli/reference/ocr-batches-files) | List a batch's documents: each one's status, pages and error |
| [`ezgh ocr batches get`](/cli/reference/ocr-batches-get) | Show a batch, by ID, slug or name: its status and progress |
| [`ezgh ocr batches list`](/cli/reference/ocr-batches-list) | List the project's batches, newest first |

Source: https://docs.ezghcloud.com/cli/reference/ocr-batches/index.mdx
