Skip to main content
POST
Transcription

Authorizations

Authorization
string
header
required

Fanify API key.

Headers

Idempotency-Key
string

Optional idempotency key, from 1 to 255 characters. The same audio and fields replay the first response, whether sent as multipart or JSON.

Body

multipart/form-data (recommended) or JSON with base64 input_audio. Unknown fields are forwarded; stream and audio URLs (source_url, input_audio.url) are refused.

file
file
required

Up to 25 MB. Format from the file name extension, else the part media type, else the content.

model
string
required
language
string

ISO-639-1 language of the audio, e.g. fr.

response_format
enum<string>

json (default) or verbose_json; text, srt and vtt are refused.

Available options:
json,
verbose_json
timestamp_granularities
enum<string>[]

With verbose_json. Multipart: repeat timestamp_granularities[] (or timestamp_granularities).

Available options:
segment,
word
temperature
number
prompt
string

Response

OpenAI-compatible transcription: text, plus language, duration and segments[] or words[] with verbose_json. usage.seconds is the billed audio duration, usage.cost the billed cost in EUR.

The response is of type object.