Models not working with API key despite valid key

As the title states, I have multiple products I use via my API key through the foundry and now my key doesn’t work despite the key being valid. I even tried making a brand new key and it won’t work. Though it does work through the model chat on the website.