Whisper AI Bearer Token Problem

It looks like in order to use whisper from the command line, or from some frontend language, I need a Bearer Token, as opposed to an api key. I have an api key, but i have no idea how to get a bearer token and I can’t find anything about it in the docs. I’ve tried using the api key in place of the bearer token, but it doesn’t work. Has anyone else figured this out?

ApiKey = os.environ.get("ApiKey")
headers = {'Authorization': f'Bearer {ApiKey}'}

It’s just the word Bearer followed by a space and then your API key.

1 Like