#OpenAI API Error Code 429

1 messages · Page 1 of 1 (latest)

azure merlin
#

Hello I've just made an new account and I'm unable to get any type of respond. I only get an error that I have "insufficient quota"

import speech_recognition as sr
import pyttsx3
import sounddevice
import openai

api_key = 'secret_key'
client = openai.OpenAI(api_key=api_key)

def recognize_speech():
    recognizer = sr.Recognizer()

    with sr.Microphone() as source:
        audio = recognizer.listen(source)

    try:
        text = recognizer.recognize_google(audio, language="pl-PL")
        print(text)
        return text
    except sr.exceptions.UnknownValueError:
        return None

def get_from_gpt(prompt):
    model = "gpt-3.5-turbo"

    response = client.completions.create(
        model=model,
        prompt=prompt,
        max_tokens=100
    )

    return response['choices'][0]['text']


while True:
    user_input = recognize_speech()

    if user_input:
        print(get_from_gpt(user_input))
azure merlin
#

But it says that I have 18 dolars

steady crow
#

its red so the trial credits expired

azure merlin
#

oh 😦