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
| When | Result | HTTP | Time | Price |
|---|---|---|---|---|
| 3 h ago | Passed | 402 | 195 ms | $0.002 |
| 6 h ago | Passed | 402 | 193 ms | $0.002 |
| 10 h ago | Passed | 402 | 185 ms | $0.002 |
| 14 h ago | Passed | 402 | 191 ms | $0.002 |
| 17 h ago | Passed | 402 | 183 ms | $0.002 |
| 21 h ago | Passed | 402 | 184 ms | $0.002 |
| 25 h ago | Passed | 402 | 186 ms | $0.002 |
| 28 h ago | Passed | 402 | 250 ms | $0.002 |
| 33 h ago | Passed | 402 | 451 ms | $0.002 |