W Weydub API

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.

  1. Get accessSign in, open API access for free from My Account, and confirm workflow entitlements for your account.
  2. Read referenceCheck endpoints, request shapes, status fields, and troubleshooting notes.
  3. Run quickstartCreate one demo task with environment variables and compact JSON signing.
  4. 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.

01

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.crf when enabled
02

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
03

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
04

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.

Video limitsCurrent hard limits are 15 minutes and 1000 MB per video file. Split or compress before submission.
Image limitsMaximum 2000*2000 px and 50 MB. Supported formats: png, jpeg, jpg, bmp, webp. URLs must not contain Chinese characters.
BillingVideo workflows bill in 30-second units. Combined services can stack costs. Final failed tasks deduct zero credits.
CallbacksVerify Callback-Sign. Return HTTP 200 plus a non-empty body after durable storage. Failed callbacks retry for 24 hours about every 30 minutes.

Two Audiences

These docs are written for people who use AI coding tools and for automation agents that need a compact, reliable contract.

Human developers using AI coding tools Read the overview, copy Markdown into your IDE assistant, run the demo scenarios, then wire credentials through environment variables.
Automation agents and internal bots Load the agent reference and skill, create async tasks, store work IDs, handle callbacks idempotently, and never expose AppSecret.

Integration Path

Use this as the implementation checklist for scripts, backend services, no-code bridges, queue workers, and AI-generated clients.

  1. Free accessOpen API access from My Account, then confirm account entitlements for the target workflow.
  2. Store secretsUse WEYDUB_APP_KEY and WEYDUB_APP_SECRET or a secret manager.
  3. Sign exactlyCompact JSON, double-MD5 signature, then send the same body bytes.
  4. Create taskSubmit media URLs and persist returned project/work/task IDs.
  5. Wait safelyUse callbacks in production and polling as fallback.
  6. Store resultsPersist output URLs, SRT links, image assets, status, and errors.
  7. Run demosVerify with official assets before connecting customer media.
  8. 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.

  • 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.

Weydub API overview Markdown, ready for coding tools and automation agents.

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.