Skip to content
Fourohtwo

Translate subtitles

agent-data-tools.revmesh2074.workers.dev/subtitles/translate

Translate subtitles. Translate an SRT or WebVTT subtitle file into another language cue by cue, keeping every timing and the file format, so the result drops straight into a video player or editor. Up to 400 cues (40,000 characters) as text or by URL; the source language is detected unless given. Meta M2M100 translation, 100 languages. Use to subtitle videos, courses and podcasts in more languages

BasePolygonArbitrumSolanaUnchecked
GEThttps://agent-data-tools.revmesh2074.workers.dev/subtitles/translate

UptimeNot checked yet

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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://agent-data-tools.revmesh2074.workers.dev/subtitles/translate?subtitles=1%0A00%3A00%3A00%2C000+--%3E+00%3A00%3A02%2C500%0AWelcome+to+the+course.%0A%0A2%0A00%3A00%3A02%2C600+--%3E+00%3A00%3A05%2C000%0AToday+we+start+with+the+basics.%0A&to=sv");
console.log(await res.json());

Example input

{
  "subtitles": "1\n00:00:00,000 --> 00:00:02,500\nWelcome to the course.\n\n2\n00:00:02,600 --> 00:00:05,000\nToday we start with the basics.\n",
  "to": "sv"
}