Developer docs
Weydub API for media localization, human developers, and automation agents.
Start with one signed request, then move into production workflows for subtitle and text removal, video translation, subtitle extraction, image translation, callbacks, and automation. Signed-in Weydub users can open API access for free from My Account.
Start with the Developer Quickstart
Get credentials, make one signed call, inspect status, then choose the workflow page. This keeps the human path fast while giving agents enough structure to build safely.
- Get accessSign in, open API access for free from My Account, and confirm workflow entitlements for your account.
- Read referenceCheck endpoints, request shapes, status fields, and troubleshooting notes.
- Run quickstartCreate one demo task with environment variables and compact JSON signing.
- Verify resultsPoll status or receive callback, then persist output URLs and errors.
Core Workflows
The API homepage is centered on four production jobs: clean text from video, translate video, extract subtitle files, and translate images.
Remove Subtitles & Text
Clean burned-in subtitles, captions, watermarks, lower thirds, logos, plot hints, registration numbers, and visible text.
- Endpoint:
/v-w-c/gateway/ve/work/free - Basic:
needChineseOcclude: 1|2|3 - Lite/Pro:
advanced_lite,advanced_large_box,advanced_full - Masks:
videoInpaintMasks - CRF:
extraOptions.write_options.crfwhen enabled
Translate Video
Create translated subtitles, optional AI dubbing, and rendered localized video assets.
- Endpoint:
/v-w-c/gateway/ve/work/free - Dubbing:
needWanyin: 1,wyTaskType: FULL - Text in frame:
needChineseOcclude: 11 - High emotion:
/voice/incorporate
Extract Subtitles
Generate SRT/VTT from visible subtitles by OCR or spoken dialogue by ASR.
- OCR:
needChineseOcclude: 14 - OCR masks:
type: trans_only_ocr - ASR:
wyTaskType: ONLY_ASR,wyNeedText: 0
Translate Images
Localize product images, screenshots, comic panels, app UI captures, and creative assets.
- Endpoint:
/v-w-c/gateway/ve/image/translate - Translate:
translateOn: 1,synthesisOn: 1 - Erase text:
translateOn: 0,synthesisOn: 1
Try In Weydub First
When a user wants to see output quality before implementation, send them to the matching Weydub workflow. The API docs stay here for automation, signing, callbacks, and production behavior.
Production Rules
These rules are pulled into the API pages so developers and agents can work from local Weydub documentation during implementation.
Two Audiences
These docs are written for people who use AI coding tools and for automation agents that need a compact, reliable contract.
Read In Order
Read the five core tutorials first. Use the agent files when an AI coding tool or internal bot is doing the implementation.
Integration Path
Use this as the implementation checklist for scripts, backend services, no-code bridges, queue workers, and AI-generated clients.
- Free accessOpen API access from My Account, then confirm account entitlements for the target workflow.
- Store secretsUse
WEYDUB_APP_KEYandWEYDUB_APP_SECRETor a secret manager. - Sign exactlyCompact JSON, double-MD5 signature, then send the same body bytes.
- Create taskSubmit media URLs and persist returned project/work/task IDs.
- Wait safelyUse callbacks in production and polling as fallback.
- Store resultsPersist output URLs, SRT links, image assets, status, and errors.
- Run demosVerify with official assets before connecting customer media.
- Protect usersMake retries idempotent and never leak AppSecret.
Minimum Call Shape
Use environment variables for credentials. Never store AppSecret in frontend code, public repositories, screenshots, logs, or prompts that may be retained.
POST https://api.zhaoli.com/v-w-c/gateway/ve/work/free
Headers:
Content-Type: application/json
AppKey: $WEYDUB_APP_KEY
AppSign: md5(md5(request_body) + $WEYDUB_APP_SECRET)
Body:
{
"urls": ["https://example.com/demo.mp4"],
"needChineseOcclude": 1,
"videoInpaintLang": "all"
}
Demo Scenarios
Use these public assets to verify an API integration before connecting customer media. They cover the workflows Weydub expects bots and coding tools to call most often.
Advanced text removal
Submit an English hard-subtitled video with the Advanced Pro full-screen model.
Scenario 2Video translation
Translate the English demo video to Spanish with subtitles and AI dubbing.
Scenario 3High-emotion cloning
Use the Chinese video and paired JSON for short-drama Chinese-to-English dubbing.
- English video:
http://gc9.cdn.izhaoli.cn/ghostcut_demo/TextRemoval_Dubbing_Eng.mp4 - Chinese video:
http://gc9.cdn.izhaoli.cn/ghostcut_demo/HighEmotion_Dubbing_cn2en.mp4 - Chinese JSON:
http://gc9.cdn.izhaoli.cn/ghostcut_demo/HighEmotion_Dubbing_cn2en.json
Copy As Markdown
This block mirrors the overview in index.md, so a human can paste it into an AI coding session and an agent can parse it as plain Markdown.
For AI Coding Tools
Give your assistant the Quickstart, Auth, Subtitle Removal, Video Translation, Subtitle Extraction, and Weydub API Skill. Then provide credentials only through environment variables. This is the intended path for Codex, Cursor, Claude Code, internal bots, and automation agents.
Help And Tutorials
The local API pages are the implementation source of truth. For product workflow help, use the local Weydub help center.