AI using Gemini API

Question:
Does anyone know about Gemini API cause I was trying to make an AI of that.

Try https://ai.google.dev/

But just check if it is available in your country. Hope this helps.

5 Likes

I knew that website already but I could not integrate it to my website.

Can you describe what you tried so far and where you’re stuck?

2 Likes

I already made an AI with responses and answers given in the javascript already but that would be too long so I wanted to add the Gemini API which is an LLM (Large Language Model). If you want the code I am giving in the next reply.

1 Like

Try this: https://ai.google.dev/tutorials/node_quickstart#set-up-project

It gives some quickstart code. Make sure you have installed the package first.

1 Like

Yes, but it is of node.js, I wanted of HTML, CSS and Javascript and with Node.js I have already made it: https://replit.com/@ZeeshanAmin/Google-Gemini?v=1

Gemini has secret keys, correct? If so, that’d be extremely unsafe in a HTML/CSS/JS environment, as your API keys would be public to the world.

1 Like

Correct, So it’s not possible!

At the very least, it’s not possible without leaking secret API keys to the whole internet, if not supported at all.

2 Likes