81trust / 100

Srt Convert

by Subtitle convert (SRT/VTT) in Documents & files

x402 APIPassing, checked 3 h ago

Convert subtitles between SRT, WebVTT, plain text, and JSON cues. Send SRT or VTT text (auto-detected) - or a JSON cues array [{start,end,text}] with times in ms - and the target format. Deterministic, pure CPU.

POST https://agent402.tools/api/srt-convert

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
191 ms typical, 250 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://agent402.tools/api/srt-convert" \
  -H "content-type: application/json" \
  -d '{"input":"1\n00:00:01,000 --> 00:00:03,000\nHello world\n\n2\n00:00:03,500 --> 00:00:05,000\nSecond line\n","to":"vtt"}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fsrt-convert
const res = await pay("https://agent402.tools/api/srt-convert", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"input":"1\n00:00:01,000 --> 00:00:03,000\nHello world\n\n2\n00:00:03,500 --> 00:00:05,000\nSecond line\n","to":"vtt"}),
});
console.log(await res.json());

Example input

{
  "input": "1\n00:00:01,000 --> 00:00:03,000\nHello world\n\n2\n00:00:03,500 --> 00:00:05,000\nSecond line\n",
  "to": "vtt"
}

Example output

{
  "count": 2,
  "detected": "srt",
  "result": "WEBVTT\n\n00:00:01.000 --> 00:00:03.000\nHello world\n\n00:00:03.500 --> 00:00:05.000\nSecond line\n",
  "to": "vtt"
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402195 ms$0.002
6 h agoPassed402193 ms$0.002
10 h agoPassed402185 ms$0.002
14 h agoPassed402191 ms$0.002
17 h agoPassed402183 ms$0.002
21 h agoPassed402184 ms$0.002
25 h agoPassed402186 ms$0.002
28 h agoPassed402250 ms$0.002
33 h agoPassed402451 ms$0.002