Skip to main content
POST
curl
Turns a recording into English text or subtitles, whatever language was spoken. It takes the same fields and gives the same responses as transcriptions, except:
  • There is no language field. If one is sent, it is ignored.
  • In verbose_json, task is translate and language is en.

Audio

WAV, MP3, M4A, OGG, FLAC, WebM or AAC, up to 25 MB and 30 minutes, in a multipart/form-data field named file.

Price

The same as a transcription with the same model: per minute of audio, plus 25% with diarize. See Credits and pricing.

Differences from OpenAI

  • response_format: json, text, verbose_json, srt and vtt.
  • timestamp_granularities[]: only segment.
  • prompt and temperature are accepted and ignored.
  • model defaults to whisper-base. whisper-1 is taken as whisper-base.
  • Extra: diarize labels who spoke, as in transcriptions.

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
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