# Operations: video | Chersus

Documentation ▾
# Operations: video

Every extract and transform for video: transcribe, clean the sound, speakers, word timings and highlight clips.

Last updated 2026-11-16·Also as Markdown:[this page](/en/docs/operations/video.md)[llms.txt](/llms.txt)

Every operation has a full name, `kind.subject.action`, and goes in `steps` by that name, such as `detect.pii.entities`. Open a row for its request, its response, its options, the languages it covers and its published figure where there is one, and read [workflows](/en/docs/workflows/) to see how to combine them, across formats too.

Video operations read the soundtrack of an MP4, MOV, WebM or MKV, and highlight clips read what is said. After `transform.speech.transcribe`, every text operation works on the transcript.

## Extract 5

An extract reads the input and returns data: a code, tags, time ranges. It never changes the input.

```
curl -X POST https://api.chersus.com/v1/workflow \
  -H "Authorization: Bearer chrs_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "url": "https://files.example.com/voicemail/0412.mp3"
    },
    "steps": [
      "extract.speech.language"
    ]
  }'
```

```
const res = await fetch("https://api.chersus.com/v1/workflow", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.CHERSUS_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "input": {
      "url": "https://files.example.com/voicemail/0412.mp3"
    },
    "steps": [
      "extract.speech.language"
    ]
  }),
});

const data = await res.json();
```

```
import os

import requests

res = requests.post(
    "https://api.chersus.com/v1/workflow",
    headers={"Authorization": f"Bearer {os.environ['CHERSUS_KEY']}"},
    json={
      "input": {
        "url": "https://files.example.com/voicemail/0412.mp3"
      },
      "steps": [
        "extract.speech.language"
      ]
    },
)

data = res.json()
```
200 · 1.6 credits
```
{
  "trace_id": "chs_01J9X4Q7K2M8N3P5R6T7V8W9X0",
  "status": "done",
  "steps": [
    {
      "op": "extract.speech.language",
      "units": 0.8,
      "per": "minute",
      "credits": 1.6,
      "value": "nl",
      "confidence": 0.97
    }
  ],
  "billed": {
    "credits": 1.6
  },
  "audit": {
    "region": "eu-nl-1",
    "retention": "none"
  }
}
```

`extract.speech.language` names the language someone speaks, as an ISO 639-1 code with a confidence. It listens to the parts that sound most like speech and skips music and silence, so a long file is read the same way as a short one.

Use it to route: put `extract.speech.language:de` in a transform’s `when`, or send the code on to your own queue. Run it before `transform.speech.transcribe` and the transcriber uses the language it found. A recording where people switch languages gets one answer.
KINDextractMODEL[Ear](/en/models/audio/#ear) · Desert Ant LabsLANGUAGES102 languagesREGION26 EU citiesBENCHMARK99% of 7,500 Common Voice clips from new speakers sent to a transcriber that handles their languageCONDITIONextract.speech.language:<code>
```
curl -X POST https://api.chersus.com/v1/workflow \
  -H "Authorization: Bearer chrs_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "url": "https://files.example.com/meetings/standup.m4a"
    },
    "steps": [
      "extract.speech.speakers"
    ]
  }'
```

```
const res = await fetch("https://api.chersus.com/v1/workflow", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.CHERSUS_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "input": {
      "url": "https://files.example.com/meetings/standup.m4a"
    },
    "steps": [
      "extract.speech.speakers"
    ]
  }),
});

const data = await res.json();
```

```
import os

import requests

res = requests.post(
    "https://api.chersus.com/v1/workflow",
    headers={"Authorization": f"Bearer {os.environ['CHERSUS_KEY']}"},
    json={
      "input": {
        "url": "https://files.example.com/meetings/standup.m4a"
      },
      "steps": [
        "extract.speech.speakers"
      ]
    },
)

data = res.json()
```
200 · 16.665 credits
```
{
  "trace_id": "chs_01J9X4Q7K2M8N3P5R6T7V8W9X0",
  "status": "done",
  "steps": [
    {
      "op": "extract.speech.speakers",
      "units": 3.333,
      "per": "minute",
      "credits": 16.665,
      "value": {
        "count": 3,
        "turns": [
          {
            "speaker": 0,
            "start": 0.0,
            "end": 6.4
          },
          {
            "speaker": 1,
            "start": 6.6,
            "end": 14.2
          },
          {
            "speaker": 2,
            "start": 14.5,
            "end": 21.9
          }
        ]
      }
    }
  ],
  "billed": {
    "credits": 16.665
  },
  "audit": {
    "region": "eu-nl-1",
    "retention": "none"
  }
}
```

`extract.speech.speakers` splits a recording into turns and numbers the speakers in the order they first speak. Turns can overlap when people talk at once. It tells voices apart but never says who someone is.

With `transform.speech.transcribe` in the same workflow, every word in the transcript carries its speaker, which gives you a transcript of who said what. It handles up to four speakers in any five minutes, more across a whole recording, and is most accurate with close microphones. This operation is in early access.
KINDextractMODEL[Who](/en/models/audio/#who) · Desert Ant LabsLANGUAGESNot statedREGION26 EU citiesBENCHMARK12.6% diarization error rate on AMI
```
curl -X POST https://api.chersus.com/v1/workflow \
  -H "Authorization: Bearer chrs_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "url": "https://files.example.com/takes/intro-take-3.m4a"
    },
    "steps": [
      "extract.speech.fillers"
    ]
  }'
```

```
const res = await fetch("https://api.chersus.com/v1/workflow", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.CHERSUS_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "input": {
      "url": "https://files.example.com/takes/intro-take-3.m4a"
    },
    "steps": [
      "extract.speech.fillers"
    ]
  }),
});

const data = await res.json();
```

```
import os

import requests

res = requests.post(
    "https://api.chersus.com/v1/workflow",
    headers={"Authorization": f"Bearer {os.environ['CHERSUS_KEY']}"},
    json={
      "input": {
        "url": "https://files.example.com/takes/intro-take-3.m4a"
      },
      "steps": [
        "extract.speech.fillers"
      ]
    },
)

data = res.json()
```
200 · 4 credits
```
{
  "trace_id": "chs_01J9X4Q7K2M8N3P5R6T7V8W9X0",
  "status": "done",
  "steps": [
    {
      "op": "extract.speech.fillers",
      "units": 2,
      "per": "minute",
      "credits": 4,
      "value": {
        "count": 3,
        "fillers": [
          {
            "type": "um",
            "start": 3.12,
            "end": 3.48,
            "confidence": 0.91
          },
          {
            "type": "uh",
            "start": 9.8,
            "end": 10.05,
            "confidence": 0.87
          },
          {
            "type": "um",
            "start": 17.33,
            "end": 17.7,
            "confidence": 0.93
          }
        ]
      }
    }
  ],
  "billed": {
    "credits": 4
  },
  "audit": {
    "region": "eu-nl-1",
    "retention": "none"
  }
}
```

`extract.speech.fillers` listens for um, uh, hmm and similar sounds and returns each with its start, end and a confidence. It reads the sound itself, not a transcript, so it also finds the fillers a transcriber leaves out.

Use the times to cut fillers in an editor, to mark them on a timeline, or to count them for a speaking coach. It learned from English. It also tends to work on Spanish, French, German and Dutch, but that is not measured. Background music, laughter and people talking over each other make it less accurate.
KINDextractMODEL[Uhm](/en/models/audio/#uhm) · Desert Ant LabsLANGUAGESEnglishREGION26 EU cities
```
curl -X POST https://api.chersus.com/v1/workflow \
  -H "Authorization: Bearer chrs_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "url": "https://files.example.com/interviews/clip-07.wav"
    },
    "steps": [
      {
        "op": "extract.speech.timings",
        "transcript": "Thanks for having me. We started the company in a garage."
      }
    ]
  }'
```

```
const res = await fetch("https://api.chersus.com/v1/workflow", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.CHERSUS_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "input": {
      "url": "https://files.example.com/interviews/clip-07.wav"
    },
    "steps": [
      {
        "op": "extract.speech.timings",
        "transcript": "Thanks for having me. We started the company in a garage."
      }
    ]
  }),
});

const data = await res.json();
```

```
import os

import requests

res = requests.post(
    "https://api.chersus.com/v1/workflow",
    headers={"Authorization": f"Bearer {os.environ['CHERSUS_KEY']}"},
    json={
      "input": {
        "url": "https://files.example.com/interviews/clip-07.wav"
      },
      "steps": [
        {
          "op": "extract.speech.timings",
          "transcript": "Thanks for having me. We started the company in a garage."
        }
      ]
    },
)

data = res.json()
```
200 · 1 credits
```
{
  "trace_id": "chs_01J9X4Q7K2M8N3P5R6T7V8W9X0",
  "status": "done",
  "steps": [
    {
      "op": "extract.speech.timings",
      "units": 0.5,
      "per": "minute",
      "credits": 1,
      "value": {
        "words": [
          {
            "text": "Thanks",
            "start": 0.42,
            "end": 0.71
          },
          {
            "text": "for",
            "start": 0.71,
            "end": 0.84
          },
          {
            "text": "having",
            "start": 0.84,
            "end": 1.1
          }
        ]
      }
    }
  ],
  "billed": {
    "credits": 1
  },
  "audit": {
    "region": "eu-nl-1",
    "retention": "none"
  }
}
```

`extract.speech.timings` takes a transcript you already have, from a person or another tool, and matches every word to the moment it is spoken. Pass it in the `transcript` option. Without the option, it sharpens the timings of the transcript a `transform.speech.transcribe` above it made.

Tight timings put captions on the word, let a selection in a transcript become a cut in a video, and let search jump to the exact word. The words stay as you sent them; only their times change. The response above is trimmed to its first three words.
KINDextractMODEL[Align](/en/models/audio/#align) · Desert Ant LabsLANGUAGES9 languagesEnglish, Spanish, French, Italian, Portuguese, German, Japanese, KO, ChineseREGION26 EU citiesBENCHMARK45.0 ms mean error on 258 hand-corrected word boundaries
```
curl -X POST https://api.chersus.com/v1/workflow \
  -H "Authorization: Bearer chrs_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "url": "https://files.example.com/talks/keynote-excerpt.mp4"
    },
    "callback_url": "https://your-app.example.com/hooks/chersus",
    "steps": [
      "transform.speech.transcribe",
      {
        "op": "extract.video.clips",
        "count": 2
      }
    ]
  }'
```

```
const res = await fetch("https://api.chersus.com/v1/workflow", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.CHERSUS_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "input": {
      "url": "https://files.example.com/talks/keynote-excerpt.mp4"
    },
    "callback_url": "https://your-app.example.com/hooks/chersus",
    "steps": [
      "transform.speech.transcribe",
      {
        "op": "extract.video.clips",
        "count": 2
      }
    ]
  }),
});

const data = await res.json();
```

```
import os

import requests

res = requests.post(
    "https://api.chersus.com/v1/workflow",
    headers={"Authorization": f"Bearer {os.environ['CHERSUS_KEY']}"},
    json={
      "input": {
        "url": "https://files.example.com/talks/keynote-excerpt.mp4"
      },
      "callback_url": "https://your-app.example.com/hooks/chersus",
      "steps": [
        "transform.speech.transcribe",
        {
          "op": "extract.video.clips",
          "count": 2
        }
      ]
    },
)

data = res.json()
```
200 · 79.339 credits
```
{
  "trace_id": "chs_01J9X4Q7K2M8N3P5R6T7V8W9X0",
  "status": "done",
  "output": "Good morning everyone. Three years ago we had one customer and a broken laptop...",
  "steps": [
    {
      "op": "transform.speech.transcribe",
      "units": 4.667,
      "per": "minute",
      "credits": 46.67,
      "changes": 0,
      "language": "en",
      "words": [
        {
          "text": "Good",
          "start": 0.3,
          "end": 0.52
        },
        {
          "text": "morning",
          "start": 0.52,
          "end": 0.9
        },
        {
          "text": "everyone.",
          "start": 0.9,
          "end": 1.4
        }
      ]
    },
    {
      "op": "extract.video.clips",
      "units": 4.667,
      "per": "minute",
      "credits": 32.669,
      "value": {
        "clips": [
          {
            "start": 61.2,
            "end": 98.7,
            "percentile": 1,
            "text": "The day our biggest customer left, we learned more than in the year before."
          },
          {
            "start": 182.0,
            "end": 214.6,
            "percentile": 0,
            "text": "Nobody reads the manual. So we stopped writing one."
          }
        ]
      }
    }
  ],
  "billed": {
    "credits": 79.339
  },
  "audit": {
    "region": "eu-nl-1",
    "retention": "none"
  }
}
```

`extract.video.clips` reads what is said in a video and returns the moments that stand on their own, best first, without overlap. Each clip has a start, an end, its text and a percentile: its place among the clips returned, from 1 for the best to 0 for the last. `count` caps how many come back.

It works on the transcript, so it needs a `transform.speech.transcribe` above it, or the workflow is rejected with `modality_mismatch`. Picking the clips takes longer than a request waits, so the workflow needs a `callback_url`, or it is rejected with `callback_url_required`: the request answers `202` at once, and the response above is posted to the `callback_url`. Clip edges are the weak spot: a clip can start on a loose pronoun or end before the payoff, so give an editor the final say. A transcript under three sentences returns no clips. The response above is trimmed.
KINDextractMODEL[Clips](/en/models/video/#clips) · Desert Ant LabsLANGUAGES100 languagesREGION26 EU cities
## Transform 2

A transform hands back rewritten content, and the next step gets it. Transforms run in the order you list them.

```
curl -X POST https://api.chersus.com/v1/workflow \
  -H "Authorization: Bearer chrs_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "url": "https://files.example.com/calls/customer-call.mp3"
    },
    "steps": [
      "transform.speech.transcribe"
    ]
  }'
```

```
const res = await fetch("https://api.chersus.com/v1/workflow", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.CHERSUS_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "input": {
      "url": "https://files.example.com/calls/customer-call.mp3"
    },
    "steps": [
      "transform.speech.transcribe"
    ]
  }),
});

const data = await res.json();
```

```
import os

import requests

res = requests.post(
    "https://api.chersus.com/v1/workflow",
    headers={"Authorization": f"Bearer {os.environ['CHERSUS_KEY']}"},
    json={
      "input": {
        "url": "https://files.example.com/calls/customer-call.mp3"
      },
      "steps": [
        "transform.speech.transcribe"
      ]
    },
)

data = res.json()
```
200 · 7 credits
```
{
  "trace_id": "chs_01J9X4Q7K2M8N3P5R6T7V8W9X0",
  "status": "done",
  "output": "Hi, this is Jane Doe. My order 4821 arrived broken and I'd like a refund.",
  "steps": [
    {
      "op": "transform.speech.transcribe",
      "units": 0.7,
      "per": "minute",
      "credits": 7,
      "changes": 0,
      "language": "en",
      "words": [
        {
          "text": "Hi,",
          "start": 0.32,
          "end": 0.51
        },
        {
          "text": "this",
          "start": 0.55,
          "end": 0.71
        },
        {
          "text": "is",
          "start": 0.71,
          "end": 0.8
        }
      ]
    }
  ],
  "billed": {
    "credits": 7
  },
  "audit": {
    "region": "eu-nl-1",
    "retention": "none"
  }
}
```

`transform.speech.transcribe` turns what is said in audio, or in a video’s soundtrack, into text. The text becomes the workflow’s output, and its step lists every word with its start and end in seconds.

It is the step where a workflow changes format. Every text operation after it in the steps runs on the transcript: detect personal data, redact names, find the topics. Those transforms also apply to the timed words, so a redacted name is gone from the subtitles too. Set `language` when you know it. A language outside the 25 gives confident nonsense rather than an error, so run `extract.speech.language` first when you don’t. The response above is trimmed to its first three words.
KINDtransformMODEL[Voz](/en/models/audio/#voz) · Desert Ant LabsLANGUAGES25 languagesEuropean languagesREGION26 EU citiesBENCHMARKAbout 2% word error rate on clean audiobooks, 8 to 11% on meetings, calls and podcasts
```
curl -X POST https://api.chersus.com/v1/workflow \
  -H "Authorization: Bearer chrs_live_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "input": {
      "url": "https://files.example.com/notes/voice-note.m4a"
    },
    "steps": [
      "transform.audio.denoise"
    ],
    "output_url": "https://uploads.example.com/clean/voice-note.wav?signature=..."
  }'
```

```
const res = await fetch("https://api.chersus.com/v1/workflow", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.CHERSUS_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "input": {
      "url": "https://files.example.com/notes/voice-note.m4a"
    },
    "steps": [
      "transform.audio.denoise"
    ],
    "output_url": "https://uploads.example.com/clean/voice-note.wav?signature=..."
  }),
});

const data = await res.json();
```

```
import os

import requests

res = requests.post(
    "https://api.chersus.com/v1/workflow",
    headers={"Authorization": f"Bearer {os.environ['CHERSUS_KEY']}"},
    json={
      "input": {
        "url": "https://files.example.com/notes/voice-note.m4a"
      },
      "steps": [
        "transform.audio.denoise"
      ],
      "output_url": "https://uploads.example.com/clean/voice-note.wav?signature=..."
    },
)

data = res.json()
```
200 · 10.5 credits
```
{
  "trace_id": "chs_01J9X4Q7K2M8N3P5R6T7V8W9X0",
  "status": "done",
  "output": {
    "media_type": "audio/wav",
    "bytes": 8640044,
    "uploaded": true
  },
  "steps": [
    {
      "op": "transform.audio.denoise",
      "units": 1.5,
      "per": "minute",
      "credits": 10.5,
      "changes": 0
    }
  ],
  "billed": {
    "credits": 10.5
  },
  "audit": {
    "region": "eu-nl-1",
    "retention": "none"
  }
}
```

`transform.audio.denoise` takes out background noise and room echo and keeps the voice. The cleaned file goes to the `output_url` you send, such as a presigned upload link, and Chersus keeps no copy. On a video, you get the video back with the cleaned soundtrack.

It is built for speech. Music and effects count as noise, so run it on a voice track, not on a finished mix. People talking over each other stay overlapped. Put it before `transform.speech.transcribe` and the transcriber hears the clean version.
KINDtransformMODEL[Clear](/en/models/audio/#clear) · Desert Ant LabsLANGUAGESAny languageREGION26 EU cities