POST

Transcribe audio to text with segments; priced per minute. Uses whisper.cpp small

/v1/whisper

Powered by OpenAI

Request → Response

Examples from schemas.json.

Requestapplication/json
POST /v1/whisper
Content-Type: application/json

{
  "url": "https://tools402.dev",
  "duration_hint_sec": 1,
  "lang": "auto"
}
Responseapplication/json
HTTP/1.1 200 OK
Content-Type: application/json

// Endpoint-specific body after 402 settlement

Overview

Transcribe audio to text with segments; priced per minute. Uses whisper.cpp small.

AI research lab behind the GPT and Whisper models.

Request schema

Body: JSON · application/json

FieldTypeDescription
urlstringrequired
duration_hint_secnumberoptional
langstringrequiredpattern: ^[a-z]{2}$|^auto$
IMPLEMENTATION
curl -X POST https://api.tools402.dev/v1/whisper \
  -H "Content-Type: application/json" \
  -d '{
  "url": "https://tools402.dev",
  "duration_hint_sec": 1,
  "lang": "auto"
}'

402 payment flow omitted — see Integrations for settlement.