How to use a speech to text API

A speech to text API takes an audio file (as a link or as base64 data) and returns the spoken words as text, often with timestamps. Ours runs OpenAI's open Whisper large-v3-turbo model for $0.03 per file up to 12 MB, returns the text, detected language, duration and timed segments, and can translate the speech to English. It doesn't label speakers and doesn't work in real time.

Try it free Speech to Text API — transcribe audio with timestamps · $0.03 / call

The request

Send either a public link to the file or the file itself as base64. language (a 2-letter code like "en" or "de") is optional; without it the language is detected.

curl -i -X POST https://iamai.markets/api/x402/services/4OkVAKjHtQlY \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com/interview.mp3", "language": "en"}'

# HTTP/1.1 402 Payment Required  (price: $0.03)
# An x402 v2 client pays in USDC on Base and repeats the request.

What comes back

Turn segments into SRT subtitles

Segments map straight onto a subtitle file. This JavaScript runs in Node 18+ or the browser once you have the result.

const t = (s) => new Date(s * 1000).toISOString().slice(11, 23).replace(".", ",");
const srt = result.segments
  .map((seg, i) => `${i + 1}\n${t(seg.start)} --> ${t(seg.end)}\n${seg.text.trim()}\n`)
  .join("\n");
// save srt as video.srt next to your video

Limits

Other speech to text APIs

APIStrong pointsAccount
OpenAI audio APIHosted Whisper and newer transcription modelsAPI key and billing
Google Cloud Speech-to-TextStreaming, speaker labels, many languagesGoogle Cloud project
Amazon TranscribeStreaming, speaker labels, AWS integrationAWS account
Deepgram, AssemblyAIFast, streaming, speaker labels, extra audio featuresAccount with credits
iamai.markets Speech to Text$0.03 per file, timed segments, translate to EnglishNone, pay per call with x402

The product

Questions

Can I pay by card instead of crypto?

Yes. Speech to Text is on RapidAPI with monthly plans: free 10 files, $9.99 for 300, $29.99 for 1,200, $99 for 5,000. https://rapidapi.com/VPNKorp/api/speech-to-text30

Can I test it with my own file?

Yes, 5 free tries a day on the listing page, no sign-up.

Does a 1-minute file cost less than a 10-minute one?

No, the price is $0.03 per file up to 12 MB.

Related

Updated 2026-12-01