# HALOWERK Subtitle Timestamp Corrector

> HALOWERK Subtitle Timestamp Corrector is a paid API for AI agents from medien.halowerk.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-22).

Corrects subtitle timing in SRT or WebVTT files using an offset/speed-factor or two anchor cues, outputting resynchronized subtitles in SRT or WebVTT format.

## Facts

- Endpoint: POST https://medien.halowerk.com/v1/timestamps-shift?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/halowerk-subtitle-timestamp-corrector-1b8c322f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_lcw6uAsdu80gl8ILTogMe

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 halowerk-subtitle-timestamp-corrector-1b8c322f -d '<json body>'
```

Example prompt: My SRT subtitle file is out of sync — it's about 3.5 seconds late throughout the entire video. Can you shift all the timestamps back by 3.5 seconds and give me the corrected SRT file?

## When to prefer this

Choose this endpoint when you need to programmatically resync subtitle files — especially for frame-rate mismatches (using the factor parameter) or non-linear drift correction (using two anchor cues). It handles both SRT and WebVTT natively and can convert between them in the same call, making it ideal for automated subtitle post-processing pipelines.

## Known failure modes

- Subtitles string shorter than 10 characters or larger than 2 MB returns validation error
- Factor outside range 0.5–2.0 rejected
- Offset outside ±36000 seconds rejected
- Anchors array must contain exactly 2 items with valid cue numbers and non-negative times
- Malformed SRT or WebVTT input may cause parsing failure
- Payment of 0.001 USDC not fulfilled triggers 402 response

## How this service works

Takes SRT or WebVTT subtitles and corrects their timing in one of two ways: either with an offset in seconds and an optional speed factor (new = old × factor + offset, e.g. 25/23.976 for a frame-rate mismatch), or with two anchors — a cue number and the time where it really belongs, for two cues far apart — from which factor and offset are calculated and reported. Cues that would start before zero are clipped to zero and counted. Output in the input format or another one (SRT, WebVTT).

## Output

Returns the full subtitle content (SRT or WebVTT) with all timestamps adjusted. When anchors are used, the response also reports the calculated offset and speed factor. Cues that would start before zero are clipped and a count of clipped cues is provided.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "factor": {
   "type": "number",
   "default": 1,
   "maximum": 2,
   "minimum": 0.5
  },
  "anchors": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "cue",
     "correct_start_seconds"
    ],
    "properties": {
     "cue": {
      "type": "integer",
      "minimum": 1
     },
     "correct_start_seconds": {
      "type": "number",
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "maxItems": 2,
   "minItems": 2,
   "description": "Two cues (1-based number) with the time they should start at. Overrides offset and factor."
  },
  "subtitles": {
   "type": "string",
   "maxLength": 2000000,
   "minLength": 10
  },
  "output_format": {
   "enum": [
    "srt",
    "vtt"
   ],
   "type": "string"
  },
  "offset_seconds": {
   "type": "number",
   "default": 0,
   "maximum": 36000,
   "minimum": -36000
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/halowerk-subtitle-timestamp-corrector-1b8c322f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from medien.halowerk.com](https://www.zero.xyz/host/medien.halowerk.com/llms.txt)
