# agent402.tools Subtitle Format Converter

> agent402.tools Subtitle Format Converter is a paid API for AI agents from agent402.tools, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Converts subtitle/caption files between SRT, WebVTT, plain text, and JSON cue formats, accepting either raw subtitle text or a JSON cues array

## Facts

- Endpoint: POST https://agent402.tools/api/srt-convert
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-subtitle-format-converter-3b6b4227
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Tx82xKZNNB4iXkXajT7uG

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability agent402-tools-subtitle-format-converter-3b6b4227 -d '<json body>'
```

Example prompt: Convert this SRT subtitle file to WebVTT format: '1\n00:00:01,000 --> 00:00:04,000\nHello, welcome to the show.'

## When to prefer this

Use this endpoint when you need deterministic, fast, CPU-only subtitle format conversion without any AI or probabilistic processing. Ideal for pipelines that need to reformat captions between SRT, WebVTT, plain text, or JSON cue structures reliably and cheaply at $0.002 per call. Prefer this over manual parsing or general-purpose code execution when subtitle format conversion is the specific task.

## Known failure modes

- Unrecognized or malformed SRT/VTT input returns a parse error
- Invalid target format value (not srt|vtt|text|json) returns a validation error
- Providing neither 'input' nor 'cues' returns a missing parameter error
- Malformed cues array (missing start/end/text fields) causes a schema validation error
- Payment failure or insufficient USDC balance returns HTTP 402

## How this service works

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.

## Output

Returns the subtitle content in the requested target format — either a string containing SRT, WebVTT, or plain text content, or a JSON array of cue objects with start/end timestamps in milliseconds and text fields.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string",
   "description": "target format: srt | vtt | text | json"
  },
  "cues": {
   "type": "array",
   "description": "alternative: cue objects [{start,end,text}] with start/end in milliseconds"
  },
  "input": {
   "type": "string",
   "description": "SRT or WebVTT text (format auto-detected)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "vtt",
  "count": 2,
  "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",
  "detected": "srt"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-subtitle-format-converter-3b6b4227/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
