AITrans.Video workflow
Use the AITrans.Video tools of the current connection. Use only tools, fields, languages, voices, prices and states that the live tools return; never invent them. A tool that is not listed is not enabled for this connection or permission.
If the tools are missing
The server is https://aitrans.video/api/ai (remote MCP over HTTPS, no trailing slash). The user adds it once in their AI app and signs in to AITrans.Video in the browser (OAuth). Examples: Claude: Settings → Connectors → Add custom connector. Claude Code: claude mcp add --transport http aitrans https://aitrans.video/api/ai, then /mcp. Codex: codex mcp add aitrans --url https://aitrans.video/api/ai, then codex mcp login aitrans. Other apps: see https://aitrans.video/connect. The full agent guide is https://aitrans.video/mcp.txt. Never ask for passwords, cookies, API keys or tokens in chat. If tools added later do not appear, the user reconnects or refreshes the connector.
Money rules
- A quote never spends. Credits are spent only by
create_translationandunlock_translation_feature. - Credit allowance: when connecting, the user may allow a spending limit (off by default). Within it, the user's request or a yes in chat is enough and the call goes through. Each result carries
spend(charged credits, allowance,balance_credits): always tell the user what was charged and what is left. - Above the allowance, or without one: only the AI app's own confirmation form (when the server opens one) or the website
confirmation_urlcounts. A chat reply does not approve it, and you never imitate the form. - Never create a task to test the connection. Never pay or create again to recover from an unclear result.
New translation
get_translation_options: target languages, preset voices andcredit_allowance. Never choose the target from the source or UI language; an omitted target means English.- Get the video.
- If you can read the user's local file and run a shell:
request_translation_uploadwithfile_size_bytes, upload todirect_upload.urlwith its command, thencomplete_translation_upload. - Otherwise give the user
upload_url; they choose and share the file on the website. - A file attached in chat (only where
import_translation_attachmentis listed): call it after the user confirms they hold the rights. - Then call
get_translation_uploadat least 5 seconds apart untilready, and keep itssourceexactly.
- If you can read the user's local file and run a shell:
prepare_translationwith that source and the chosen options (obey the live schema). Tell the user the credits, settings and expiry.create_translationwith the sameintent_id, following the money rules.get_translationeverypoll_after_seconds(about 30 s). Processing takes minutes; if it is still running after a few checks, give the user the project link and let them ask later.get_translation_resultlists the project page and finished outputs.
Existing projects are not a translation source. list_translation_projects (account permission) or request_translation_project / get_translation_project find them and read their published subtitles.
After a task finishes
-
Express unlocks:
unlock_translation_featurewithjob_idandfeatureedit(editing) oreditor_draft(Jianying/CapCut export).confirmation_required: the user unlocks on the returned page, then call again. Already unlocked: nothing is charged. -
Editing (permission
translations:edit):start_translation_edit.pending: call again.unlock_required: unlock first.get_translation_edit_segmentsreturnssegment_id,source_text,translated_textandtext_revisionper line.- Then any of:
update_translation_segments: up to 20 lines, each with thetext_revisionyou read; onedit_conflictread again.get_translation_voice_options+set_translation_speaker_voice: one catalog voice for every line of a speaker; no per-line choice, no own or cloned voices.split_translation_segment: 2 to 8 pieces whose texts join exactly to the current texts.
finish_translation_editwithsaveordiscard.
Pass
edit_sessionthrough unchanged. Ask the user beforesave: it replaces the finished video. Changing text, voices and splits spends nothing. Re-dubbing on save uses the plan's free per-line edit allowance.dubbing/pending: call again with the same arguments.saving: pollget_translation, thenget_translation_result. -
Drafts:
request_translation_draftwithjob_idandformatjianyingorcapcut.draft_rootis the user's own draft folder; never guess it.generating: call again afterpoll_after_seconds.ready: passartifacttorequest_translation_download.website_only: give the userwebsite_url.unlock_required: see Express unlocks.failed: tell the user; useretry: trueonly if they want another try.
-
Downloads:
request_translation_downloadwithtranslation_idand anoutput_keythatget_translation_resultlists (dubbed video, draft ZIP, subtitles, audio, original video). Theticket_urlworks once, for 10 minutes. Give it to the user only: they open it and press Download, or a shell saves it withcurl -L --data '' -o <file> '<ticket_url>'. If it answers 410, ask for a new link. -
Subtitle text in chat (subtitle permission):
get_translation_resultwithinclude_subtitles: trueand a smallpage_size, followingnext_cursor. Onsubtitle_snapshot_changedrestart from the first page.
Permissions
A tool needing more access returns 403 insufficient_scope; the app asks the user to authorize again with exactly that scope, then retry. Some apps (WorkBuddy custom connectors, for example) do not open that authorization themselves: then tell the user which permission is missing and ask them to reconnect or re-authorize the connector in the app's connector settings and tick it on the AITrans.Video page, then retry once. Edit permission is never pre-checked on a first authorization. On revoked or denied access, stop and tell the user; never switch accounts or connections to get around it.
Recover, never duplicate
Keep every original request_key, request_id, intent_id and job_id. unknown (with 200, 202 or 503) or a lost response is unresolved, not a failure, and never permission to create, upload or pay again. Read the original:
| Unclear at | Read with |
|---|---|
| Upload link | request_translation_upload with the same upload request_key |
| Upload status | get_translation_upload with the original request_id |
| Preparation | get_translation with the original translation request_key |
| Create | get_translation with the original intent_id |
| Later reads | get_translation with translation_id |
If reading cannot resolve it, report the uncertainty and stop. The website stays the final word on login, ownership, refunds and entitlements.