LLM API calls failing due to geo restrictions
We're looking into using Cloudflare Workers, but both standard and "smart" placement sometimes result in the worker being in a country that the LLM providers (OpenAI, Anthropic, Gemini) don't serve, so we get the below errors.
I found some community forum threads about this, but no one seems to have a reliable solution.
Is there really no way to reliably make direct calls to LLM providers from a Cloudflare Worker?
OpenAI: { “error”: { “code”: “unsupported_country_region_territory”, “message”: “Country, region, or territory not supported”, “param”: null, “type”: “request_forbidden” }
Anthropic: Error: 403 {message:"Request not allowed"}
Gemini: [GoogleGenerativeAI Error]: Error fetching [400 Bad Request] User location is not supported for the API use.
0 Replies