No access to GPT-4 API after depositing pre-paid credits

Run this and be a dollar poorer in a minute:

import openai
import time
openai.api_key = "sk-xxxx"
params = {"model": "gpt-3.5-turbo-16k", "max_tokens": 1,
    "messages": [{"role": "user",
    "content":  "!@" * 8000}]}
for _ in range(21):  # 0.003 * 16 * 21
    api = openai.ChatCompletion.create(**params)
    print(".", end="")
    time.sleep(0.2)
2 Likes