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

# Sync vs Async Processing

> Decide when to run work synchronously or as a job by comparing tiers and limits, and see how long job results stay available.

## Sync vs Async

The Parse and Extract APIs give you two ways to run work:

* **Synchronous**: Call [Parse](https://docs.landing.ai/dpt3/parse.md) or [Extract](https://docs.landing.ai/dpt3/extract.md) and get the result in the response.
* **Asynchronous**: Create a [Parse Job](https://docs.landing.ai/dpt3/parse-async.md) or [Extract Job](https://docs.landing.ai/dpt3/extract-async.md) and collect the result when the job finishes. [Webhooks](https://docs.landing.ai/dpt3/webhooks.md) can notify you when a job finishes, so you don't have to poll.

The [Ground API](https://docs.landing.ai/dpt3/ground.md) always runs synchronously, so neither choice applies to it. You cannot select a tier for it either. Like every synchronous request it runs on `priority`, and it consumes no credits.

## Service Tiers

Every request runs on a service tier: `priority` or `standard`.

* The tier controls the turnaround time, the credit consumption rate, and which rate limit the request draws from.
* The tier does not change the supported file size or the number of pages allowed per file.
* Synchronous requests always run on the `priority` tier.
* Jobs run on the `standard` tier by default. Set the `service_tier` parameter to run a job on the `priority` tier.
* All `priority` work (synchronous requests and `priority` jobs) counts against one shared per-minute rate limit. Synchronous requests are capped at that limit. A `priority` job is accepted up to a larger allowance capped by your rate limit, with a slower turnaround. Documents exceeding that allowance run as a `standard` job instead. See [Rate Limits](https://docs.landing.ai/dpt3/rate-limits.md#run-large-documents-as-async-jobs-on-the-standard-tier).

## Choose a Processing Mode and Service Tier

Use the table to choose the right call for your workload. Turnaround times are estimates, not guaranteed speeds. Rate limit values depend on your pricing plan; for the values and how each API meters usage, see [Rate Limits](https://docs.landing.ai/dpt3/rate-limits.md). For per-page credit rates, see [Credit Consumption](https://docs.landing.ai/dpt3/credit-consumption.md).

<table>
  <thead>
    <tr>
      <th />

      <th>Parse and Extract (synchronous)</th>
      <th colspan="2">Parse Jobs and Extract Jobs (asynchronous)</th>
    </tr>

    <tr>
      <th>Service tier</th>
      <th colspan="2">Priority</th>
      <th>Standard (default)</th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>**Best for**</td>
      <td>Interactive workflows: a person or agent is waiting on the result</td>
      <td>Time-sensitive work that a synchronous request can't handle: files over the synchronous size cap, or when you don't want to hold a connection open</td>
      <td>Work with no one waiting: automated pipelines, background agent steps, scheduled ingestion, and the largest documents</td>
    </tr>

    <tr>
      <td>**How you get the result**</td>
      <td>Inline in the response</td>
      <td>Poll the job, or save the output to a URL</td>
      <td>Poll the job, or save the output to a URL</td>
    </tr>

    <tr>
      <td>**Estimated turnaround time**</td>
      <td>Seconds to minutes</td>
      <td>Seconds to minutes</td>
      <td>Minutes to hours</td>
    </tr>

    <tr>
      <td>**Timeout limit**</td>
      <td>475 seconds</td>
      <td>6 hours</td>
      <td>6 hours</td>
    </tr>

    <tr>
      <td>**Credit consumption**</td>
      <td>Full rate</td>
      <td>Full rate</td>
      <td>Half the `priority` rate</td>
    </tr>

    <tr>
      <td>**Parse limits per request**</td>
      <td>50 MiB. Page count is capped by your plan's per-minute page limit (see **Largest single document** below)</td>
      <td>1 GiB for PDFs, 50 MiB for images. Page count is capped by your rate limit (see **Largest single document** below)</td>
      <td>6,000 pages; 1 GiB for PDFs, 50 MiB for images</td>
    </tr>

    <tr>
      <td>**Largest single document (Parse)**</td>
      <td>Your plan's per-minute page limit: 100 pages (Explore), 200 (Team). Enterprise limits are custom.</td>
      <td>Capped by your rate limit</td>
      <td>6,000 pages</td>
    </tr>

    <tr>
      <td>**Parse rate limit**</td>
      <td colspan="2">Per-minute limit shared across all `priority` work, refilling continuously</td>
      <td>Hourly limit, resetting each hour</td>
    </tr>

    <tr>
      <td>**Extract limits per request**</td>
      <td>No input size limit</td>
      <td>No input size limit</td>
      <td>No input size limit</td>
    </tr>

    <tr>
      <td>**Extract rate limit**</td>
      <td>Based on your plan and the input Markdown size</td>
      <td>None: jobs are accepted immediately and paced internally</td>
      <td>None: jobs are accepted immediately and paced internally</td>
    </tr>
  </tbody>
</table>

## Set the Service Tier

[Parse](https://docs.landing.ai/dpt3/parse.md) and [Extract](https://docs.landing.ai/dpt3/extract.md) do not accept the `service_tier` parameter. To run a [Parse Job](https://docs.landing.ai/dpt3/parse-async.md) or an [Extract Job](https://docs.landing.ai/dpt3/extract-async.md) on the `priority` tier, set the `service_tier` parameter when you create the job.

```bash highlight={4} theme={null}
curl -X POST 'https://api.ade.landing.ai/v2/parse/jobs' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -F 'document=@document.pdf' \
  -F 'service_tier=priority'
```

## Confirm the Service Tier

To confirm which tier a request ran on, check `metadata.billing.service_tier` in the response. See [Parse API Response](https://docs.landing.ai/dpt3/parse-response.md#metadata) and [Extract API Response](https://docs.landing.ai/dpt3/extract-response.md#request-metadata-metadata).

## Job Result Availability

A Parse Job or Extract Job stays pollable by its `job_id` for up to 7 days after it completes. Fetch the result within 7 days of completion, or create the job with `output_save_url` so the output is delivered to your own storage when the job finishes. To run Extract on a parse result later, save the Markdown from the Parse response, because Extract takes Markdown rather than a Parse Job ID. See [Provide the Markdown](https://docs.landing.ai/dpt3/extract-input.md#provide-the-markdown).

If your organization uses Zero Data Retention (ZDR), the result is deleted sooner. See [Result Retention](https://docs.landing.ai/ade/zdr.md#result-retention).

After the 7 days, polling returns `404 Not Found` because the job no longer exists. A `410 Gone` with the error code `result_expired` means the job still exists but its result is gone. For every polling status, see [Troubleshoot Parsing](https://docs.landing.ai/dpt3/parse-troubleshoot.md#polling-errors) and [Troubleshoot Extraction](https://docs.landing.ai/dpt3/extract-troubleshoot.md#get-a-job).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.