AI on demand: openai/whisper-large-v3

From MediaWiki
Jump to navigation Jump to search

Calling the model

# Set your personal key:
STONEY_KEY=sk-...

# Set the desired model:
MODEL=openai/whisper-large-v3

# Path to the audio file to transcribe:
AUDIO_FILE=your-audio-file.wav

curl https://llm.stoney-cloud.com/v1/audio/transcriptions \
        --silent --fail --show-error \
        --header "Authorization: Bearer $STONEY_KEY" \
        --form "file=@$AUDIO_FILE" \
        --form "model=$MODEL" \
        | jq

Example output:

{
  "text": "Hello and welcome to the Stepping Stone LLM Gateway.",
  "usage": {
    "type": "duration",
    "seconds": 4
  }
}