Skip to main content
POST
curl
Turns a recording into text or subtitles in the language spoken, with one of the Whisper models. Send the audio as multipart/form-data in a field named file.

Audio

  • Formats: WAV, MP3, M4A (MP4 audio), OGG, FLAC, WebM and AAC.
  • Size: up to 25 MB (26,214,400 bytes).
  • Length: up to 30 minutes.
The length is read from the file’s header to set the price. WAV files are decoded on our side; other formats are decoded on the machine that runs the job.

Formats

Speakers

diarize is not part of OpenAI’s API. Send diarize=true (or 1) to label who spoke:
  • In verbose_json, each segment has a speaker, and speakers lists them all.
  • In srt and vtt, each cue starts with the speaker’s name.
It costs 25% more.
With the OpenAI Python SDK, send it with extra_body={"diarize": "true"}.

Language

Send language as an ISO-639-1 code, such as en or fr, if you know it. Leave it out, or send auto, to detect it.

Price

Priced per minute of audio, and never less than 15 seconds’ worth. See Credits and pricing.

Differences from OpenAI

  • timestamp_granularities[]: only segment. word is refused.
  • prompt and temperature are accepted and ignored.
  • model defaults to whisper-base. whisper-1 is taken as whisper-base.
  • Not supported: stream, include[], chunking_strategy. They are ignored.
  • Extra: diarize, above.

Authorizations

Authorization
string
header
required

An API token from the account panel on sharemy.ai. Tokens start with smai_.

Body

multipart/form-data
file
file
required

The recording: WAV, MP3, M4A, OGG, FLAC, WebM or AAC. Up to 25 MB and 30 minutes.

model
enum<string>
default:whisper-base

whisper-1 is taken as whisper-base.

Available options:
whisper-base,
whisper-tiny-en,
whisper-large-v3-turbo,
whisper-1
language
string

The language spoken, as an ISO-639-1 code such as en. Leave it out, or send auto, to detect it.

response_format
enum<string>
default:json
Available options:
json,
text,
verbose_json,
srt,
vtt
timestamp_granularities[]
enum<string>[]

Only segment. word is refused.

Available options:
segment
diarize
enum<string>

Not part of OpenAI's API. true (or 1) labels who spoke each segment, and costs 25% more.

Available options:
true,
false
prompt
string

Accepted and ignored.

temperature
number

Accepted and ignored.

Response

The transcript, in the format asked for. With diarize, each srt and vtt cue starts with the speaker's name.

response_format json.

text
string
required