Groq API always returns 404

For quite some reason, when I do requests to the API, I always get this:

{ error: { message: 'Not Found' } }

Not even the python SDK, or Node.js SDK works.

groq.NotFoundError: Error code: 404 - {'error': {'message': 'Not Found'}}
NotFoundError: 404 {"error":{"message":"Not Found"}}

How can I even fix it?

Even curl doesn't work….

groq-sdk is version 0.27.0

groq python library is version 0.30.0

Hi ​ @Funi , Could you send your trace IDs, if they show up in error logging? Separately I’ll email you to get more information so I can reproduce. Thanks! Jan

Oh one thing to check, if you’re behind a firewall and/or a VPN, the API calls might be blocked. Could you do a simple cUrl call from the same machine to see if you get a response? Could you try using a serverless system like Cloudflare workers to see if you get different results?

Nothing is being blocked, requests go through.

$ curl “https://api.groq.com/openai/v1/chat/completions
> -X POST
> -H “Content-Type: application/json”
> -H “Authorization: Bearer ${GROQ_API_KEY}”
> -d ‘{
> “messages”: [
> {
> “role”: “user”,
> “content”: “howdy”
> }
> ],
> “model”: “meta-llama/llama-4-scout-17b-16e-instruct”,
> “temperature”: 1,
> “max_completion_tokens”: 1024,
> “top_p”: 1,
> “stream”: true,
> “stop”: null
> }’
llama/llama-4-scout-17b-16e-instruct",\x0a"temperature": 1,\x0a"max_completion_tokens": 1024,\x0a"top_p": 1,\x0a"stream": true,\x0a"stop": null\x0a}';cc414740-bc2d-4928-826c-e0ec6a8e29e8{“error”:{“message”:“Not Found”}}

Im sorry, what trace ids? I dont think i see them

That’s helpful, thank you!

Same issue here. The API worked a few days ago, but now it consistently returns { error: { message: ‘Not Found’ } } .

I tried the api on another device, and it worked. However, when i try to do it on my main device, it still returns {“error”:{“message”:“Not Found”}} Is my IP like, blocked, perhaps? Also, the playground still works. And, the demo at https://groq.com/ still works. Also, if the node.js logs will help, then here they are. NotFoundError: 404 {“error”:{“message”:“Not Found”}}
at APIError.generate (file:///D:/Workspace/groqtest/node_modules/groq-sdk/error.mjs:45:20)
at Groq.makeStatusError (file:///D:/Workspace/groqtest/node_modules/groq-sdk/core.mjs:286:25)
at Groq.makeRequest (file:///D:/Workspace/groqtest/node_modules/groq-sdk/core.mjs:332:30)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
at async file:///D:/Workspace/groqtest/test.js:7:24 {
status: 404,
headers: {
‘alt-svc’: ‘h3=“:443”; ma=86400’,
‘cf-ray’: ‘961871141f0a9dad-DME’,
connection: ‘keep-alive’,
‘content-length’: ‘33’,
‘content-type’: ‘application/json’,
date: ‘Sat, 19 Jul 2025 07:17:53 GMT’,
server: ‘cloudflare’,
‘set-cookie’: ‘__cf_bm=zPblfV3noSS5uiqNyLOt.BZ27gyuD4TdEyYnsuuaKjo-1752909473-1.0.1.1-ItVRYIhhIXjsLGe0XJsUPu09VWkj9qNKme.4596zuYJ2WRGhQt4sosZ0LsnD19yTSxlFvij31HW3KNl0dMEXTCUfBADFNACogbXA6GCPXlY; path=/; expires=Sat, 19-Jul-25 07:47:53 GMT; domain=.groq.com; HttpOnly; Secure; SameSite=None’,
vary: ‘Accept-Encoding’
},
error: { error: { message: ‘Not Found’ } }
}
Node.js v22.11.0

Hi all, we’re still looking into it, and I might email you for a followup as well.

Appears that its all because of my location….
I have to use a vpn, i guess… theres nothing else i can do Oh well, unless someone finds a solution vpn-less, i will have to use one.

Oh got it — yes we block certain IP ranges and countries like Iran and North Korea from accessing Groq for legal reasons, sorry