Hey guys,
I am trying to build a python app with chatGPT, and trying to hit the API. I am keep getting this error. I tried to increase my balance, and added 5$ to my account, but still seeing this error. I’ve verified that my API key is for my org, I tried to set the right org and the right project in the code, but I am getting this error no matter what model I am using from my code, even for this simple query:
client = OpenAI(
# This is the default and can be omitted
api_key=os.environ.get("OPENAI_API_KEY"),
)
response = client.responses.create(
model="gpt-4o",
instructions="You are a coding assistant that talks like a pirate.",
input="How do I check if a Python object is an instance of a class?",
)
print(response.output_text)
Any help?
I’ve verified, and I have 5$ under my billing page.
thanks