Edge Compute
Templates / Whisper API
CUDA 12.8SSHJupyterAPIAudio

Whisper API

Speech-to-text with Whisper (PyTorch) behind an OpenAI-compatible /v1/audio/transcriptions endpoint.

What's inside

  • ✓
    Hugging Face transformers Whisper pipeline (float16, chunked long audio)
  • ✓
    POST /v1/audio/transcriptions (OpenAI format)
  • ✓
    API key = your rental's app token

How you connect

AccessWhereAuth
SSH (root)ssh -p <port> root@clearlayer.caYour SSH key
JupyterLabhttps://r<id>-<random>.gpu.clearlayer.caToken in the link
Transcription API (port 8000)https://r<id>-<random>-app.gpu.clearlayer.ca Authorization: Bearer <app token>

Environment variables

VariableDefault
WHISPER_MODELopenai/whisper-large-v3
APP_TOKENrandom per rental
HF_TOKENoptional, for gated Hugging Face models

Models from the model library set these for you.

Quick start

curl
curl https://r12-abcd1234-app.gpu.clearlayer.ca/v1/audio/transcriptions \
  -H "Authorization: Bearer <app-token>" \
  -F file=@meeting.mp3 -F model=whisper-1
Python
from openai import OpenAI

client = OpenAI(base_url="https://r12-abcd1234-app.gpu.clearlayer.ca/v1", api_key="<app-token>")
with open("meeting.mp3", "rb") as f:
    print(client.audio.transcriptions.create(model="whisper-1", file=f).text)