Use Gemini Pro Free Even Gemini Even It Is Not Available In Your Region - NETSEC


Learning, Sharing, Creating

Cybersecurity Memo

Tuesday, January 9, 2024

Use Gemini Pro Free Even Gemini Even It Is Not Available In Your Region

Google Gemini is the name of a new AI model developed by Google DeepMind. It is built from the ground up for multimodality, meaning it can reason seamlessly across text, images, video, audio, and code. Gemini is the first model to outperform human experts on Massive Multitask Language Understanding (MMLU), one of the most popular methods to test the knowledge and problem-solving abilities of AI models. It also surpasses state-of-the-art performance on a range of benchmarks including text and coding. Comprising Gemini Ultra, Gemini Pro, and Gemini Nano, it was announced on December 6, 2023, positioned as a contender to OpenAI's GPT-4.

To use Google Gemini, you will have to go to Google DeepMind site's technologies page:

Or directly start it from to get your own API key. 

Unfortunately, Google made it only available for certain countries. (
You still can use it throguh Google Cloud Vertex AI via the Gemini API, but if your country is not in the list, you even wont be able to get your own API. 

In this blog post, I am gonna share a way to create your own Google Gemini Chat app and you wont be limited anymore with this way. 

Price Model

As on Jan 2024, free plan allows 60 QPM (Queries per minutes)

GeminiProChat Project in Github

1 Method 1

Deploy With Vercel(Recommended)

Deploy with Vercel

Just click the button above and follow the instructions to deploy your own copy of the app.

2 Deploy with Netlify

Deploy With Netlify

Deploy to Netlify

  1. Go to this palm-netlify-proxy repo and click "Deploy With Netlify".
  2. Once the deployment is complete, you will receive a domain name assigned by Netlify (e.g.,
  3. In your Gemini Pro Chat project, set an environment variable named API_BASE_URL with the value being the domain you got from deploying the palm proxy (
  4. Redeploy your Gemini Pro Chat project to finalize the configuration. This should resolve the issue.

3 Deploy on Zeabur

Deploy on Zeabur

Deploy on Zeabur

4 Deploy with Docker

docker run --name geminiprochat \
--restart always \
-p 3000:3000 \
-itd \
-e GEMINI_API_KEY=your_api_key_here \
Replace your_api_key_here with your own GEMINI API key.


From page, click Get API key in Google AI studio. You might need to find a machine with US Public IP address to do this.

Test with your curl command using api key

curl \
  -H 'Content-Type: application/json' \
  -d '{"contents":[{"parts":[{"text":"Write a story about a magic backpack"}]}]}' \

Deploy with vercel

 Deploy With Vercel(Recommended)

Deploy with Vercel

Deployment information:

Domain settings in Vercel

Cloudflare settings





1 comment:

  1. Wow, discovering that I can use Gemini Pro for free, even if it's not available in my region, is a game-changer! Thanks for sharing this valuable tip. I'm excited to explore the possibilities of Gemini AI and enhance my productivity. For those eager to learn more about using Gemini AI effectively, check out my article on "How to Use Gemini AI". Let's make the most out of this opportunity and unlock the full potential of Gemini Pro together!