# Transcribe Audio or Video API

> Transcribe speech from an audio or video URL, with time-coded segments and automatic language detection. Short clips come back in the same call; longer ones return a jobId to poll with audio-transcribe-result. GPU Whisper, up to two hours per file.

Category: [Media APIs](https://upapi.io/apis/media) · Last updated 2026-11-02

## How to call it

- Endpoint: `POST https://api.upapi.io/audio-transcribe.post`, key in the `X-Api-Key` header, JSON body.
- Cost: 10 weighted units per call.
- Timeout: 25 seconds.
- Cache: identical requests are served from cache for 43200 seconds, unbilled.
- Try it without writing code: https://app.upapi.io/try/audio-transcribe.post

```bash
curl -X POST https://api.upapi.io/audio-transcribe.post \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: YOUR_API_KEY' \
  -d '{ "url": "https://example.com/interview.mp3" }'
```

## Request parameters

- `url` (string, required) — Public URL of the audio or video to transcribe (e.g. https://example.com/interview.mp3). Up to 2 hours long.
- `language` (string) — Spoken-language hint as an ISO code (e.g. en). Omit to auto-detect.

## Response fields

- `text` (string) — Full transcript; null until completed
- `jobId` (string, required) — Pass this to audio-transcribe-result.get to poll
- `status` (string, required) — completed once the transcript is ready; processing while it is still running
- `language` (string) — Detected (or forced) language code; null until completed
- `progress` (integer) — Progress percentage, 0-100
- `segments` (array) — Time-coded segments; null until completed
- `durationSec` (number) — Audio duration in seconds; null until completed
- `pollAfterSec` (integer) — Seconds to wait before polling again; null once completed

## Example request and response

The example response is generated from the published output schema: it shows the shape and field names, not values from a recorded call.

```json
{
  "url": "https://example.com/interview.mp3"
}
```

```json
{
  "text": "Hello, world",
  "jobId": "example",
  "status": "example",
  "language": "en",
  "progress": 0,
  "segments": [
    {
      "end": 1,
      "text": "Hello, world",
      "start": 1
    }
  ],
  "durationSec": 1,
  "pollAfterSec": 1
}
```

## Frequently asked questions

### How much does the Transcribe Audio or Video API cost per call?

Each call spends 10 weighted units of your plan's monthly quota. Full pricing is at https://upapi.io/pricing.

### How do I authenticate to the Transcribe Audio or Video API?

Send your key in the X-Api-Key header. A free guest key is available without creating an account.

### Are Transcribe Audio or Video API responses cached?

Yes — identical requests are served from cache for 43200 seconds, and a cache hit is not billed.

## More Media APIs

- [Get Transcription Result](https://upapi.io/apis/media/audio-transcribe-result)
- [Get NASA Astronomy Picture of the Day](https://upapi.io/apis/media/nasa-apod)
- [Get Pokemon](https://upapi.io/apis/media/pokeapi-pokemon)
