4o-mini: You exceeded your current quota

Hi I wanted to test the speed for the new 4o-mini vision API, I am using Mac/Linux and curl request with command line… I am always getting the same error message, hoverver i am on a tier3 and have very high rate limits, and haven’t spent a penny in the last 24 hours!

The response is the following:

{
    "error": {
        "message": "You exceeded your current quota, please check your plan and billing details. For more information on this error, read the docs: https://platform.openai.com/docs/guides/error-codes/api-errors.",
        "type": "insufficient_quota",
        "param": null,
        "code": "insufficient_quota"
    }
}

My Curl request is like this (yes skipped my API key of course and the content)


  
  curl https://api.openai.com/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-my-api-key" \
  -d '{
    "model": "gpt-4o-mini-2024-07-18",
    "messages": [
      {
        "role": "user",
        "content": [
          {
            "type": "text",
            "text": "what is in the image?"
          },
          {
            "type": "image_url",
            "image_url": {
              "url": "https:/my-url-of-an-image.jpg"
            }
          }
        ]
      }
    ],
    "max_tokens": 3000
  }'

I was trying also to pass only the gpt-4o-mini and the same error…
It works fine with gpt-4o model…

what am I doing wrong??
Any help/hint appreciated!

OK I am adding also a solution, if this one happens to you, create a new API key :slight_smile:

Hope it helps! I just resolved that very weird glitch

1 Like

I was going to recommend this,

Any older API keys were provisioned when mini didn’t exist so they won’t be allow-listed.

2 Likes

Apply new API Key. That will work.

im on free plan… and none of the models are working