whisper API running on lagoon
Use docker compose to build and start the API.
docker compose build
docker compose up -d
Use docker compose to build and start the API.
docker compose -f docker-compose.gpu.yml build
docker compose -f docker-compose.gpu.yml up -d
Note: Authorization header is currently ignored.
curl http://127.0.0.1:8000/v1/audio/transcriptions \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "Content-Type: multipart/form-data" \
-F model="whisper-ch" \
-F file="@/path/to/file/openai.mp3" \
-F response_format="verbose_json"
Windows example:
curl http://127.0.0.1:8000/v1/audio/transcriptions -H "Authorization: Bearer $OPENAI_API_KEY" -H "Content-Type: multipart/form-data" -F model="whisper-ch" -F file="@F:\FHNW\first.mp3" -F response_format="verbose_json"