API doesn't work on liveserver but works on localserver

I am using Nuxt 3 and openai node package for a project. I was on the free trial (credit base) for Open AI API and everything worked well every where. Now my free trial has expired and I did switch to paid account however the API is not working on the live server but it works completely fine on the local server!

Did anyone face something similar like this? Any idea what could be the potential cause for this?

Does your server have your OpenAI key in the environment variables? I don’t know Nuxt 3 or node, but seems like an easy thing to forget

Yes, it does have it in .env. My website is hosted on Firebase. It was working fine until I have to upgrade to a paid account for API.

It is working now. Might sound weird but after almost waiting for a day it started to work again.