I’m trying to use Transcription and Audio Usage APIs, and neither seem to work. I created a request using each service, but cannot get usage.
Transcription:
I create a transcription using the api the docs suggest:
curl --request POST \
--url https://api.openai.com/v1/audio/transcriptions \
--header 'Authorization: Bearer MY_PROJECT_KEY' \
--header 'Content-Type: multipart/form-data' \
--cookie '__cf_bm=...' \
--form file=@/Downloads/audio.mp3 \
--form model=gpt-4o-transcribe
And then when I try to get the usage, I get nothing:
curl --request GET \
--url 'https://api.openai.com/v1/organization/usage/audio_transcriptions?start_time=1743170923&group_by=model' \
--header 'Authorization: Bearer MY_ADMIN_KEY' \
--header 'Content-Type: application/json' \
--cookie '__cf_bm=...'
Audio
I use the audio api:
curl --request POST \
--url https://api.openai.com/v1/audio/speech \
--header 'Authorization: Bearer MY_PROJECT_KEY' \
--header 'Content-Type: application/json' \
--cookie '__cf_bm=... \
--data '{ "model": "gpt-4o-mini-tts", "input": "how much wood could a woodchuck chuck if a woodchuck could chuck wood?", "voice": "alloy" }'
And get nothing in the usage api
curl --request GET \
--url 'https://api.openai.com/v1/organization/usage/audio_speeches?start_time=1743104784&group_by=model' \
--header 'Authorization: Bearer MY_ADMIN_KEY' \
--header 'Content-Type: application/json' \
--cookie '__cf_bm=...'