Skip to content
Fourohtwo

Translate an SRT or WebVTT subtitle file into another language

api.sitecheck-api.workers.dev/api/translate/subtitles

Translate an SRT or WebVTT subtitle file into another language. Only the cue text is translated; every cue number, timing line and header is copied exactly, and the output is checked to parse back to the same cues and timings, or it is refused unpaid. Body { subtitles, to, from }: up to 50 KB. Workers AI (Llama 3.1 8B) translates the text, so check it before publishing.

BaseSolanaArcPolygonArbitrumWorld Chain+1Answering
POSThttps://api.sitecheck-api.workers.dev/api/translate/subtitles

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://api.sitecheck-api.workers.dev/api/translate/subtitles", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"subtitles":"1\n00:00:01,000 --> 00:00:03,000\nHello there.\n","to":"de"}),
});
console.log(await res.json());

Example input

{
  "subtitles": "1\n00:00:01,000 --> 00:00:03,000\nHello there.\n",
  "to": "de"
}

More from SiteCheckProvider status