Skip to main content

Create Dubbing Project

POST 

https://api.knoxstudio.ai/v1/dubbing/project

Create a project. Provide exactly one of file or source_url. Source media up to 3 GiB. The first target language is billed at source duration ($2.25/min for dubbing_v2, $0.38/min for dubbing_v1). Guide: Dubbing.

Request​

Request Headers​

NameTypeRequiredDescription
AuthorizationStringYesBearer <token> Knox API key. xi-api-key is also accepted.
Content-TypeStringYesmultipart/form-data or application/json

Request Body​

NameTypeRequiredDescription
fileFileNoSource media. Exactly one of file or source_url. Max 3 GiB.
source_urlStringNoPublic HTTP(S) URL for the source media.
model_idStringNodubbing_v2 (default) or dubbing_v1.
source_languageStringNoBCP-47 tag. Required when transcript is provided.
target_languageStringNoBCP-47 tag for the first dubbed language.
transcriptFileNoOptional source transcript. Max 4MB. Requires source_language.
referenceStringNoOptional notes, max 500 characters.
keytermsList of StringsNoMax 1000 terms, 50 chars / 5 words each. Characters <>{}[]\ are not allowed.
webhook_idsList of StringsNoAt most 3 non-empty webhook IDs.

cURL Example​

curl -X POST https://api.knoxstudio.ai/v1/dubbing/project \
-H "Authorization: Bearer $KNOXCHAT_API_KEY" \
-F "file=@episode.mp4" \
-F "model_id=dubbing_v2" \
-F "source_language=en" \
-F "target_language=zh-CN"

Response​

Success Response (200)​

JSON including project_id. Poll Get dubbing project until ready or failed.

Error Responses​

Validation uses HTTP 422:

{
"detail": [
{
"loc": ["body", "field"],
"msg": "…",
"type": "value_error"
}
]
}

Other errors use { "detail": "message" }.

StatusWhen
400WebSocket path called without Upgrade: websocket.
401Missing or invalid API key.
402Insufficient credits.
403Token is not allowed to use this model.
404Resource not found.
422Validation error.
429Rate limit exceeded.
500Internal server error.