Incorrect API key provided error in Anaconda prompt

Hello forum, I’m creating a fine-tuned model using Anaconda prompt in windows 10.

I’ve set the API key using the following:

C:>set OPENAI_API_KEY=“sk-************************************”

But when I run:

C:>openai api fine_tunes.create -t D:\Download\TrainingdataCSVupload_prepared.JSONL -m davinci

I get this error:
←[91mError:←[0m Incorrect API key provided: “sk-ISyI*****************************************kR4”. You can find your API key at https://beta.openai.com. (HTTP status code: 401)

Appreciate any guidance :pray:

Hello! Try using the -k optional argument to set your api key, it worked for me.
C:>openai -k <YOUR_API_KEY> api fine_tunes.create -t D:\Download\TrainingdataCSVupload_prepared.JSONL -m davinci

Hope it helps