Quality Control API
Download OpenAPI DocumentAutomated checks on video, audio and text before delivery.
Check images, text, audio and video against the rules of the markets you publish in, before the content goes out. New here? Read Quality Control for the whole flow, then make your first call with the Quickstart.
Every request
Send your organization API key in the x-api-key header; it starts with uvk_. Create one in the Universe app under Settings → API keys. The key and organization limits count requests over a rolling minute. See Authentication and Rate limits.
A check runs against one or more regions: a market, such as a country, with a pass mark and a set of rules. List regions to see yours, and add rules with Add a rule. Then start a check, for example Check an uploaded image or Check video, with the regions in regionIds.
Checks run in the background: every start call returns a jobId straight away. Poll Get a check until status is succeeded or failed. A finished check leaves a decision with a verdict of APPROVED, REVIEW or BLOCKED. Flagged decisions wait in the review queue for a person to rule on.
Your organization also limits how many checks of each kind it can start per minute (see Get settings); over that limit a start call returns 429. Endpoints that charge credits say so on their page, with the current price; without enough credits they return 402 and nothing is created. See Credits.
Checks
Start a check on an image, text, audio or video, then poll it until it finishes. Every start call is charged and returns a jobId straight away.
- POST/v1/galaxy/quality-control/classification/upload/presign
- POST/v1/galaxy/quality-control/classification/classify
- POST/v1/galaxy/quality-control/classification/classify-upload
- POST/v1/galaxy/quality-control/classification/classify-text
- POST/v1/galaxy/quality-control/classification/classify-audio
- POST/v1/galaxy/quality-control/classification/classify-video
- POST/v1/galaxy/quality-control/classification/classify-asset
- GET/v1/galaxy/quality-control/classification/jobs/{id}
- PATCH/v1/galaxy/quality-control/classification/jobs/{id}/project
- POST/v1/galaxy/quality-control/classification/classify-text/word-count
Get an upload URL
Check an image from a URL
Check an uploaded image
Check text
Check audio
Check video
Check a file from your assets
Check an image, audio or video file that is already in your organization's assets, without uploading it again. Set modality to the kind of check. The file is copied, so later changes to it do not affect the check. Returns a jobId straight away; poll Get a check.
Permission: quality_control.classification:create. An API key acts with the role of the member who created it.
Credits: Charged when the check starts. An image at the image rate; audio and video for their measured length, per minute (video with scope: audio at the audio rate). The price is corrected to what actually ran when the check finishes. Refunded in full if the check fails on our side, including when a region in regionIds is not in your organization.
| Rate | What it covers | Price |
|---|---|---|
| Image QC | Quality-control check of an image. | 150 credits per image |
| Audio QC | Quality-control check of audio. Charged per minute. | 150 credits per minute |
| Video QC | Quality-control check of video. Charged per minute. | 300 credits per minute |
Bodyrequiredapplication/json
What kind of check to run on the file: image, audio or video. Use Check text for text.
ID of a file in your organization's assets (a UUID v4). It is copied, so later changes to the original do not affect the check.
IDs of the regions to check against, from List regions: 1 to 50 UUIDs.
Run the NSFW screen. Defaults to true. A blocked image or video is not checked against your regions.
Check against your regions. Defaults to true. At least one of runNsfw and runRegional must be true, except for audio and audio-only video. Image checks always run the region check when the NSFW screen lets the image through.
Video only: video checks the frames, audio checks the transcribed speech, both (the default) checks both. An audio-only video is charged at the audio rate.
Audio and video only: the file's length in seconds, if you know it. Used to price the check only when we cannot measure the file.
AI provider for the region check, for this check only. Defaults to defaultCulturalProvider in your settings.
Your own metadata, stored with the decision. Keys starting with _ are reserved and may be overwritten.
Project to file this check under; omit for none. See List projects. It only organizes checks; it never changes who can see them.
Responses
201The check was charged and queued. Poll it with Get a check until `status` is `succeeded` or `failed`.
ID of the new check. Poll it with Get a check.
Always queued: the check is waiting to start.
What is being checked: image, text, audio or video.
400Nothing was charged. A field failed validation, or: - `At least one of runNsfw / runRegional must be enabled.`: both checks were turned off. - `That file is no longer available in Assets.`: `assetId` is not a file in your organization. - `Could not read that file from Assets. Try uploading it directly.` - `Image is <n> bytes, exceeding the <max>-byte limit.`: images can be up to 8 MB. - `We couldn't read this file's length`: the length could not be measured and no `durationSeconds` was sent, so the check cannot be priced.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
401The `x-api-key` header is missing, or the key is invalid, expired or deleted.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
402Not enough credits for this check, or your organization owes credits. Nothing was created.
HTTP status code.
Always InsufficientCredits.
What happened, in plain words.
Credits this request needs.
Credits your organization can spend now.
Credits your organization owes from earlier jobs (0 when nothing is owed). While anything is owed, every paid request is refused until it is repaid.
403Not allowed: the API key's role lacks the permission (`PermissionDenied`), the product is not enabled for your organization, or it has been turned off.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
404`projectId` is not a project in your organization (`Project not found`).
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
429Your organization's per-minute limit for this kind of check (from Get settings) was reached: `Rate limit exceeded for <kind> (<n>/min). Retry in <s>s.`, with the wait in `retry_after_sec`. Separate from the per-key limit.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
500Something failed on our side. Retry with backoff; if it persists, contact support with the `X-Request-Id`.
HTTP status code, repeated in the body.
What went wrong, for people. Validation failures list one entry per problem. Do not branch on this text.
Short name of the status.
curl '{{API_BASE_URL}}/v1/galaxy/quality-control/classification/classify-asset' \
--request POST \
--header 'x-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
"modality": "video",
"assetId": "4c7e2a90-5b1d-4f3e-9a6c-2d8b1e0f7a35",
"regionIds": [
"5b8d1f3a-2c4e-4a6b-8d0f-3e5a7c9b1d2f"
],
"runNsfw": true,
"runRegional": true,
"scope": "both",
"durationSeconds": 42.5,
"culturalProvider": "anthropic",
"context": {
"campaign": "summer-sale-2026",
"market": "ksa"
},
"projectId": "7b9d2f4a-6c8e-4a1b-9d3f-5e7a9c1b3d5f"
}'{
"jobId": "3f9c2b1e-7a4d-4c6b-9e2f-1a8b7c6d5e4f",
"status": "SCHEDULED",
"modality": "image"
}Get a check
Move a check to a project
Count billable words
Decisions
The outcome of every finished check: the verdict, a score for each region and rule, and the reasons. Fetch the checked media with short-lived links.
- GET/v1/galaxy/quality-control/classification/decisions
- GET/v1/galaxy/quality-control/classification/decisions/{id}
- GET/v1/galaxy/quality-control/classification/decisions/{id}/image
- GET/v1/galaxy/quality-control/classification/decisions/{id}/media
- GET/v1/galaxy/quality-control/classification/decisions/{id}/frames
List decisions
Get a decision
Get a decision image
Get decision media
List video frames
Image fixes
Make an edited version of a flagged image that addresses one region's concerns. A fix runs in the background; poll it for the new image.
Fix an image
Get an image fix
List image fixes
Regions
A region is a market or audience, such as a country, with a pass mark from 0 to 100. Content is checked against the regions you name when you start a check.
List regions
Create a region
Get a region
Update a region
Rules
The rules of a region say what content must not show or say there. Each rule has a severity, which sets its weight in the region score, and the kinds of content it applies to. The AI can suggest rules for you to review.
List rules
Add a rule
Update a rule
Suggest rules with AI
Settings
Organization-wide settings for checks: the default AI provider, the NSFW block threshold and how many checks of each kind can start per minute.
Get settings
Review
Decisions with a REVIEW or BLOCKED verdict wait here for a person. A ruling is stored next to the model's verdict and does not replace it.