Passer au contenu principal
POST
Transcription

Autorisations

Authorization
string
header
requis

Fanify API key.

En-têtes

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.

Corps

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
requis

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

model
string
requis
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.

Options disponibles:
json,
verbose_json
timestamp_granularities
enum<string>[]

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

Options disponibles:
segment,
word
temperature
number
prompt
string

Réponse

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.