Thank you so much it finally worked, but do you have any idea how can i link it with HTML? for example i want to take an input's value then put it inside the propmt variable.
Hello, Thanks for reaching out. Best would be to Create API POST Endpoint using express server "npm install express" and call this endpoint from frontend, and pass prompt as parameter. Plz refer this video, ua-cam.com/video/4WzI2Pf7r-4/v-deo.html It's using chatGpt api but it will point you in right direction Hopefully as process is going to be same for Gemini.
Thank you so much it finally worked, but do you have any idea how can i link it with HTML? for example i want to take an input's value then put it inside the propmt variable.
Hello,
Thanks for reaching out.
Best would be to Create API POST Endpoint using express server "npm install express" and call this endpoint from frontend, and pass prompt as parameter.
Plz refer this video,
ua-cam.com/video/4WzI2Pf7r-4/v-deo.html
It's using chatGpt api but it will point you in right direction Hopefully as process is going to be same for Gemini.