Skip to main content
POST
/
assistants
Assistants
curl --request POST \
  --url https://api.anyapi.ai/v1/assistants \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: multipart/form-data' \
  --form model=whisper-1 \
  --form 'language=<string>' \
  --form 'prompt=<string>' \
  --form response_format=json \
  --form temperature=0 \
  --form file=@example-file
{
  "text": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer token authentication. Get your API key from the dashboard.

Body

multipart/form-data
file
file
required

The audio file object to transcribe

model
enum<string>
required

ID of the model to use

Available options:
whisper-1
language
string

The language of the input audio

prompt
string

An optional text to guide the model's style or continue a previous audio segment

response_format
enum<string>
default:json

The format of the transcript output

Available options:
json,
text,
srt,
verbose_json,
vtt
temperature
number
default:0

The sampling temperature, between 0 and 1

Required range: 0 <= x <= 1

Response

200 - application/json

Successful response

text
string
required

The transcribed text

I