Gemini API in cloudflare worker

Getting an error while using free gemini api from google ai studio in cloudflare worker
  (error) Error: [GoogleGenerativeAI Error]: Error fetching from https://generativelanguage.googleapis.com/v1beta/models/gemini-1.5-flash-latest:streamGenerateContent?alt=sse: [400 Bad Request] User location is not supported for the API use without a billing account linked.
Was this page helpful?