Skip to main content
Apidly Cloud
Cookie policy

Analytics and ad cookies stay off unless you accept. Cookie policy

We would like to use Google Analytics and Microsoft Clarity to understand how the public pages are used, including page views and session recordings, and the Reddit Pixel to measure whether our ads on Reddit lead to visits and sign-ups. You choose here whether they are on. Rejecting changes nothing about how the site works.

Transcribe audio with Whisper on a cloud GPU

Turn recordings into timestamped text or subtitles with Whisper on a rented GPU: choose a script or an API, upload audio, run a batch and stop paying when done.

Published November 26, 20266 min read

Whisper is an open speech-recognition model that turns recordings into text in many languages, with timestamps. It runs on a normal computer, but a GPU makes it much faster, which matters when you have hours of interviews, meetings or podcast episodes. On a rented GPU you pay by the second for the time the server runs, not for the length of the audio, so the cheapest way to work is to upload everything, transcribe it in one go and stop the server. This guide shows both ways to do that on Apidly: a script over SSH for batches of files, and an API for apps.

What you need

  • An Apidly account with some credit.
  • Your recordings. Common audio and video formats work, because ffmpeg is installed.
  • For the script route, an SSH key. If you have none, see Connect with SSH.

Step 1: Choose the template

Two public templates run Whisper through faster-whisper, a fast implementation of the same models.

Template How you use it Best for Minimum VRAM
Whisper transcription A ready script in a terminal over SSH Batches of files you transcribe yourself 8 GB
Speech-to-text server (faster-whisper) A web page and an OpenAI-compatible API on port 8000 Apps, scripts on your own computer, other people 4 GB

The Whisper transcription template uses the large-v3 model, the most accurate of the standard Whisper sizes. The speech-to-text server starts with the smaller Whisper small model and lets you load others, such as large-v3, which needs about 8 GB of GPU memory. The templates page lists other speech templates, such as notebooks with word timings.

Step 2: Choose a GPU

Whisper is light compared with language or image models, so you rarely need a large card. Open Deploy, sort by Price, low to high and use the GPU memory filter for at least 8 GB. A faster card finishes a long batch sooner, which can cost about the same or less in total because billing is by the second; compare the live prices on GPU pages such as the RTX 3090 and RTX 4090, or on live pricing. Prices follow supply, so check them rather than a number in a guide.

Keep the suggested disk size unless you have a lot of audio: the recordings, the transcripts and the downloaded model all live on it.

Route A: transcribe files over SSH

Start the server

Open Quick start with this template, or from Overview select Quick start, then Transcribe audio. To choose the GPU yourself, open Deploy, pick a GPU, select the Whisper transcription card, add your key under SSH keys and select Start my server.

When the status is Running, open the server, copy the SSH command from the Connect tab and run it. The template installs its tools at the first start, so check they are ready:

ls /workspace/transcribe.py
python -c "import faster_whisper; print('ready')"

If you see an error, wait a minute and try again.

Upload and transcribe

On your own computer, copy recordings into the audio folder. Replace PORT and HOST with the values on the Connect tab:

scp -P PORT ./interview.mp3 root@HOST:/workspace/audio/

On the server, run the script and keep the result:

python /workspace/transcribe.py /workspace/audio/interview.mp3 | tee /workspace/transcripts/interview.txt

The first run downloads the large-v3 model, a few gigabytes, so the first line takes longer to appear. The language is detected for you. Each line has the start and end time in seconds, then the text:

[0.00 -> 3.10] Thanks for joining us today.

Run a whole folder

nohup bash -c 'for f in /workspace/audio/*; do
  python /workspace/transcribe.py "$f" > "/workspace/transcripts/$(basename "$f").txt"
done' > /workspace/batch.log 2>&1 &

nohup keeps the loop going if your connection drops. Check progress with ls /workspace/transcripts, and look in /workspace/batch.log if a file is missing. The script is a short Python file, so you can edit it to change the model, force a language or write subtitle files. When the loop finishes, copy the results home:

scp -P PORT 'root@HOST:/workspace/transcripts/*.txt' ./

Transcribe audio with Whisper has the same steps in short form, and Moving files shows other ways to copy data.

Route B: a speech-to-text API

Start the server

Open Quick start with this template, or pick the Speech-to-text server (faster-whisper) card in Deploy. Under Environment variables, WHISPER_MODEL is the model downloaded at the first start; set it to Systran/faster-whisper-large-v3 for the best accuracy on a GPU with 8 GB or more. Leave API_KEY empty to get a generated key.

Try it, then call it

When setup finishes, open the Connect tab. Press Open on the port 8000 entry to use the web page, where you can upload a file and read the text. The Connect tab also shows the API key. From a terminal, send a file with the key and the model name:

curl http://SERVER_ADDRESS/v1/audio/transcriptions \
  -H "Authorization: Bearer YOUR_KEY" \
  -F file=@interview.mp3 \
  -F model=Systran/faster-whisper-large-v3

Add -F response_format=srt or -F response_format=vtt for subtitles, and -F language=en (or another language code) when you know the language. The API follows the shape of OpenAI's transcription API, so the openai Python package and many apps work after you change the base address to http://SERVER_ADDRESS/v1 and the key to yours.

The key stays the same when you stop and start the server, but the address can change, so check the Connect tab after a restart.

Keep recordings private

Recordings often contain personal data. They stay on your server's disk until you delete them or destroy the server, and the API always needs its key. Download the transcripts, then delete recordings you no longer need. Destroy deletes the disk and everything on it.

Control the cost

  • Batch the work. Upload everything first, run one long job, then stop. A server that waits for the next file is billed while it waits.
  • Stop when you finish. Stopping ends the compute charge; the disk, with the downloaded model, is kept and still billed, so the next start does not download the model again.
  • Add an automatic stop. Under the server's Settings, Automation, stop the server when the GPU has been idle for a number of minutes. That catches the batch that finished in the night. See Automation.

How billing by the second works has worked examples, and Control costs covers budgets and warnings.

Common problems

  • No module named faster_whisper right after the start. The template is still installing its tools. Wait a minute and try again.
  • Out of memory. Another program is using the GPU, or the card is too small for the model. Use a smaller model or a GPU with more VRAM.
  • Wrong language or poor accuracy. Set the language explicitly and use large-v3. Very noisy recordings stay hard for any model.
  • 401 from the API. The key is missing or wrong. Copy it again from the Connect tab and send it as Authorization: Bearer YOUR_KEY.

Next steps

To pick a card for other work too, read How much VRAM do you need?. For long batches of other kinds, see the batch processing use case. When you are ready, start a Whisper server.

Try what this guide shows

Start one of these templates on a rented GPU server. You see the price per hour before you start, and you pay by the second.

Try it on a real GPU server

Create a free account and add a balance from $10. Servers are billed by the second, and the review step shows the price per hour before you request one.

Related guides