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

# Get AI Dubbing QC Pricing and Eligibility

> Check server-calculated AI-credit pricing and readiness for an AI Dubbing QC run

Checks whether an order is eligible for a manual, report-only AI Dubbing QC run and returns the server-calculated charge and enabled scope. This request does not start a run or charge credits.

AI Dubbing QC is available for completed AI Dubbing orders that were paid with AI credits. Audio Description orders are not eligible. A video can be up to 240 minutes long and up to 2 GiB per file; a longer or larger order is reported as not eligible. Orders with visual translation are checked on their final video, and their translated on-screen text is checked as a separate section of the report. Orders with LipSync on only some segments are checked without scoring lip-sync accuracy. The API key's user needs the `client_owner`, `client_view` or `client_createOrder` role; other roles receive `403`.

This endpoint does not return `404` for an unknown order or `409` for an ineligible one: it always answers `200`, with `eligible: false` and a `reason` when a run cannot start. Common reasons:

| `reason` | Meaning |
| - | - |
| `insufficient_ai_credits` | The workspace balance does not cover `chargeAmount`. |
| `monthly_ai_credit_limit_exceeded` | The run would exceed the workspace's monthly AI-credit spend limit. |
| `billing_sync_required` | The workspace's credit balance has not been synchronized yet; contact support. |
| `Original order was not paid with AI credits` | Only orders paid with AI credits can be checked. |
| `AV QC requires a completed AI Dubbing order` | The order is another type or is not completed yet. |
| `order_not_found` | The order does not exist or is not visible to this API key. |
| `av_qc_unavailable` | AI Dubbing QC is temporarily unavailable; try again later. |

Other readiness messages describe a missing input, such as a video that is not ready.

## Authorization

Send the integration API key in `x-api-key`. The key determines client ownership; the order must belong to that client.

## Path parameters

**orderId** `string` *required*

ID of the AI Dubbing order.

## Request

```bash theme={null}
curl "https://api-integration.ollang.com/integration/orders/507f1f77bcf86cd799439011/av-qc/pricing" \
  -H "x-api-key: $OLLANG_API_KEY"
```

## Response

`eligible` is authoritative. When eligible, `chargeAmount` is the exact AI-credit charge derived from the order's unique positive AI-credit basket item on the original paid checkout. It is not recomputed from current pricing, and it is not a USD amount. Ambiguous or missing historical billing data fails closed. Insufficient credits and the monthly spending limit can make an order ineligible.

AI Dubbing QC pricing is independent of accumulated consumption. AI Dubbing QC charge and refund entries remain linked to the original order and appear in its order-consumption history, but do not change the original checkout amount used to calculate `chargeAmount`.

```json theme={null}
{
  "eligible": true,
  "chargeAmount": 1800,
  "remainingCredits": 4200,
  "monthlySpendCredits": 600,
  "monthlyLimitUsd": 25,
  "scope": {
    "modules": { "dubbing": true, "lip_sync": false, "visual_translation": false },
    "sourceLanguage": "en",
    "targetLanguage": "fr",
    "lipSyncMode": "disabled",
    "lipSyncRanges": []
  }
}
```

`scope` is decided by the server from the order: what was produced and what will be scored. Clients cannot choose the scope, the checked files or the cost. LipSync on every segment is scored within the dubbing sync dimension; it does not produce a separate score. When LipSync covers only some segments, the order is checked as a standard dub and lip-sync accuracy is not scored.

**eligible** `boolean` *required*

Whether a new run can start now.

**reason** `string`

Server reason when the order is not eligible.

**chargeAmount** `number`

Exact charge in AI credits, not USD.

**remainingCredits** `number`

**monthlySpendCredits** `number`

**monthlyLimitUsd** `number | null`

**scope** `object`

Module flags, source and target language, and LipSync mode and ranges.


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