AI Personal Learning
and practical guidance

Free use of gemini-pro in immersive translation

preliminary

It is not suitable for white people to operate, gemini directly used as a translation effect compared to other free translation tools do not have an advantage. The same way this method can do a lot of things.

 


1. Install the "Immersive Translation" plug-in

2. Have an independent domain name (first level and second level can be)

3. Have a cloudflare account

4. Have a Google account

 

workflow

 

1.Apply for gemini key

 

Visit https://ai.google.dev/ and click Get API key in Google AI Studio to start requesting a KEY:

Free use of gemini-pro-1 in immersive translation

 

Enter the default dialog debug page after confirming the agreement for the first time:

Free use of gemini-pro-2 in immersive translation

 

Click Get API key in the upper right corner, then click Create API key, and finally click Create API key in new project:

Free use of gemini-pro-3 in immersive translation

 

Wait for the KEY to be generated and remember to copy and save it:

Free use of gemini-pro-4 in immersive translation

 

 

2. Establish API access agent

High-frequency multi-user access and domestic IP access will lead to gemini key failure and even account blocking, so you need to hang a proxy access key

 

Login to cloudflare, and create works

 

Free use of gemini-pro-5 in immersive translation

 

Edit the code, paste the following code into worker.js to 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))
}
}

 

Free use of gemini-pro-1 in immersive translation

 

Remember to bind the domain name (binding the domain name in the country in order to be able to access normally), you can bind it here directly, or in the DNS to resolve and set up their own routing forwarding:

Free use of gemini-pro-7 in immersive translation

 

3. Get a free domain name and set up route forwarding

https://www.cloudns.org/ can apply for permanent (believe it or not?) Free second level domain name, complicated to set up.

Because it's not a top level domain, it can't can't be configured as shown above.

For more information on how cloudns is configured in cloudflare please do your own tubing.

Simple configuration instructions:

1. will cloudns apply for a second-level domain name set cloudflare's NS record

2. Add A record in cloudflare, A record can fill in the "preferred IP", which can enhance the domestic access speed

3. After setting A record in DNS, select "Workers Routing" from the left side: "Fill in the second-level domain name /*", select the created Worker.

4. A records added in cloudflare may need to be added again in cloudns.

 

4. Splicing API address

 

Back to Google AI Studio

 

Free use of gemini-pro-8 in immersive translation

 

See the full address format here: https://generativelanguage.googleapis.com/v1beta/models/gemini-pro:generateContent?key=YOUR_API_KEY

 

Let's make a substitution.

https://你的域名/v1beta/models/gemini-pro:generateContent?key={KEY}

 

 

5. Final configuration in immersive translation

 

Select the Immersive Translation plugin and choose Settings:

Free use of gemini-pro-9 in immersive translation

 

Select Gemini:

Free use of gemini-pro-10 in immersive translation

 

Fill in the key, address and finally click Test:

Free use of gemini-pro-11 in immersive translation

AI Easy Learning

The layman's guide to getting started with AI

Help you learn how to utilize AI tools at a low cost and from a zero base.AI, like office software, is an essential skill for everyone. Mastering AI will give you an edge in your job search and half the effort in your future work and studies.

View Details>
May not be reproduced without permission:Chief AI Sharing Circle " Free use of gemini-pro in immersive translation

Chief AI Sharing Circle

Chief AI Sharing Circle specializes in AI learning, providing comprehensive AI learning content, AI tools and hands-on guidance. Our goal is to help users master AI technology and explore the unlimited potential of AI together through high-quality content and practical experience sharing. Whether you are an AI beginner or a senior expert, this is the ideal place for you to gain knowledge, improve your skills and realize innovation.

Contact Us
en_USEnglish