You exceeded your current quota, please check your plan and billing details (10 USD credit balance remains)

Hi, OpenAI development team.
I paid for 10 USD credit balance but I can’t use gpt-3.5-turbo api

import requests
import csv
from itertools import islice
import json

url = "https://api.openai.com/v1/chat/completions"
OPENAI_API_KEY ='my-private-api-key'
headers = {
    "Content-Type": "application/json",
    "Authorization": f"Bearer {OPENAI_API_KEY}"
}

data = {
    "model": "gpt-3.5-turbo",
    "messages": [
        {
            "role": "system",
            "content": "Hi"
        },
        {
            "role": "user",
            "content":"Hello"
        }
    ]
}

json_data = json.dumps(data)

# Make the HTTP POST request
response = requests.post(url, headers=headers, data=json_data)

# Print the response
print(response.text)

with error

{
    "error": {
        "message": "You exceeded your current quota, please check your plan and billing details.",
        "type": "insufficient_quota",
        "param": null,
        "code": "insufficient_quota"
    }
}

Sincerely - Simon

2 Likes