I am running a deployment on vercel which is using the Dalle-3 and completions APIs. The completion API works correctly, but ever since last morning, I have been getting error 429 (1015) with dalle-3 generation from my vercel deployment. Using the same key however, I can generate images on my development server.
I definitely have enough money in my account and I am only making a couple requests per day. Trying a new API key did not work either.
Insert into your code, right before the API call, a printout or log of the environment variable OPENAI_API_KEY, and then also a dump of api_key from the client of the library module.
See if the same results are reported between working environment and failing deployment.