Quota exceeded. Check your plan and billing details. on first run with API token

I have an enterprise account and am getting this error whenever I add my API token in the Codex Extension inside VS Code. It apparently works fine when I sign in with ChatGPT(the option other than using an API key).

I just created a new account and am getting this issue. I have tried to create new tokens 5-6 times already, but nothing works.

I can use the token for API requests just fine though.

Like

curl https://api.openai.com/v1/fine_tuning/model_limits \ -H "Authorization: Bearer $token_was_here"

Welcome to the developer community @rustaceansteam

This action doesn’t require any credits. I’d recommend starting by checking your credits. You’ll need a non-zero positive value for the codex’s API calls to go through.

1 Like

hi thank you for your message,
the non-enterprise plan still allowed me to use Codex with Plus plan without adding any credits though.

is that something that’s restricted in Enterprise?