Get AI Dubbing QC Pricing and Eligibility
curl --request GET \
--url https://api-integration.ollang.com/integration/orders/{orderId}/av-qc/pricing \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api-integration.ollang.com/integration/orders/{orderId}/av-qc/pricing"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api-integration.ollang.com/integration/orders/{orderId}/av-qc/pricing', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-integration.ollang.com/integration/orders/{orderId}/av-qc/pricing",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-integration.ollang.com/integration/orders/{orderId}/av-qc/pricing"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-integration.ollang.com/integration/orders/{orderId}/av-qc/pricing")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-integration.ollang.com/integration/orders/{orderId}/av-qc/pricing")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"eligible": true,
"reason": "<string>",
"chargeAmount": 123,
"remainingCredits": 123,
"monthlySpendCredits": 123,
"monthlyLimitUsd": {},
"scope": {}
}Ollang API Reference
Get AI Dubbing QC Pricing and Eligibility
Check server-calculated AI-credit pricing and readiness for an AI Dubbing QC run
GET
/
integration
/
orders
/
{orderId}
/
av-qc
/
pricing
Get AI Dubbing QC Pricing and Eligibility
curl --request GET \
--url https://api-integration.ollang.com/integration/orders/{orderId}/av-qc/pricing \
--header 'X-Api-Key: <api-key>'import requests
url = "https://api-integration.ollang.com/integration/orders/{orderId}/av-qc/pricing"
headers = {"X-Api-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-Api-Key': '<api-key>'}};
fetch('https://api-integration.ollang.com/integration/orders/{orderId}/av-qc/pricing', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api-integration.ollang.com/integration/orders/{orderId}/av-qc/pricing",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-Api-Key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-integration.ollang.com/integration/orders/{orderId}/av-qc/pricing"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-Api-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api-integration.ollang.com/integration/orders/{orderId}/av-qc/pricing")
.header("X-Api-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api-integration.ollang.com/integration/orders/{orderId}/av-qc/pricing")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-Api-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"eligible": true,
"reason": "<string>",
"chargeAmount": 123,
"remainingCredits": 123,
"monthlySpendCredits": 123,
"monthlyLimitUsd": {},
"scope": {}
}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
Other readiness messages describe a missing input, such as a video that is not ready.
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. |
Authorization
Send the integration API key inx-api-key. The key determines client ownership; the order must belong to that client.
Path parameters
Request
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.
{
"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.
Was this page helpful?