curl --request POST \
--url https://api.openai.com/v1/audio/transcriptions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form model=gpt-4o-transcribe \
--form 'language=<string>' \
--form 'prompt=<string>' \
--form response_format=json \
--form temperature=0 \
--form 'include[]=[
[]
]' \
--form 'timestamp_granularities[]=[
"segment"
]' \
--form stream=false \
--form file=@example-file
{
"text": "<string>"
}
Transcribes audio into the input language.
curl --request POST \
--url https://api.openai.com/v1/audio/transcriptions \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form model=gpt-4o-transcribe \
--form 'language=<string>' \
--form 'prompt=<string>' \
--form response_format=json \
--form temperature=0 \
--form 'include[]=[
[]
]' \
--form 'timestamp_granularities[]=[
"segment"
]' \
--form stream=false \
--form file=@example-file
{
"text": "<string>"
}
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
OK
Represents a transcription response returned by model, based on the provided input.
Was this page helpful?