banner
macintel

macintel

Better Freeloading Gemini

How to better freeload Gemini:
Google has released Gemini for some time now, and Gemini Pro can be called 60 times for free in 1 minute. It's already very comfortable for personal use. However, due to network issues in China, many people cannot easily use it.

If we have Cloudflare, it would be easier. I assume you already have a domain hosted on CF.

  1. Open dash.cloudflare.com and click on Workers and Pages in the left menu.
  2. Click the Create Application button, then click Create Worker.
  3. Give your worker a name, such as gemini-pro-proxy, and click Deploy.
  4. You will see a page indicating successful deployment, then click the Edit Code button, modify the code to the following, and click Save and Deploy.
export default {
async fetch(request, env) {
const url = new URL(request.url);
url.host = 'generativelanguage.googleapis.com';
return fetch(new Request(url, request))
}
}
  1. Finally, on this worker page, click on Triggers, add a custom domain, and bind your domain, such as gemini-pro-proxy.abc.com. Just click Add.

Gemini Pro API key acquisition address: makersuite.google.com

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.