Audio to text gpt-4o-transcribe
Official documentation: https://platform.openai.com/docs/guides/speech-to-text
POST
/v1/audio/transcriptionsBody Parametersmultipart/form-data
file* string · binary
Audio file object (not file name) to be transcribed, in the format: flac, mp3, mp4, mpeg, mpga, m4a, ogg, wav or webm.
model* string
The model ID to use. Currently only whisper-1,gpt-4o-mini-transcribe are available.
response_format string
Default is json Transcription output format, optional: json, text
Responses
200 OK application/json
response-200 object
properties text* string
Text content
400 Bad request or validation failed application/json
response-400 object
properties error* object
401 Missing or invalid API Key application/json
response-401 object
1{
2"file": "file://C:\\Users\\Administrator\\Desktop\\test.m4a",
3"model": "gpt-4o-transcribe",
4"response_format": "json"
5}
1curl -X POST "https://api.digislash.com/v1/audio/transcriptions" \
2-H "Authorization: Bearer <API Key>" \
3-F "file=@file://C:\Users\Administrator\Desktop\test.m4a" \
4-F "model=gpt-4o-transcribe" \
5-F "response_format=json"
1▼{
2"text": "Imagine the wildest idea that you've ever had, and you're curious about how it might scale to something that's a 100, a 1,000 times bigger. This is a place where you can get to do that."
3}
