Kling: Kling Subtitle Localizer API

Kling solution: subtitle localisation. Turns a Chinese short drama into an English hard-subbed video plus SRT/ASS subtitle files, handling recognition, translation, layout and burn-in automatically.

Frequently Asked Questions

Why query at /kling/solutions instead of /kling/tasks?

That is Kling's own split: solution APIs are queried at `/solutions`, video generation at `/tasks`. The gateway picks the right upstream endpoint by task type, so via the unified task format (`GET /v1/task/{id}`) the distinction does not apply.

Do the SRT/ASS links expire too?

Yes. Every generated URL is cleared after **30 days**, subtitle files included. With object storage enabled the gateway re-hosts the video and both subtitle files on completion; otherwise download them yourself.

What if the source already has burned-in subtitles?

Subtitle removal is not supported: existing hard subtitles stay and English subtitles are overlaid. Prefer a clean master; if only a subtitled version exists, use `settings.margin_v` to move the English subtitles away from the original ones.

How long does a task take and how do I get the result?

Localisation is asynchronous and scales with video length. Set `options.callback_url` to receive a push, or poll the query endpoint. Note this endpoint **only calls back on terminal states**; intermediate progress does not trigger a callback.