Google Gemini Free API

google-gemini-free-api

Gemini-API

Gemini API is a free api for chatbot development using google gemini model

Visitors

Contribute Here

Powered by WhollyAPI

https://dev.to/sh20raj/google-gemini-free-api-269o/edit


let prompt = "I love you";

async function fetchResponse(prompt) {
const response = await fetch('https://gemini-apis.vercel.app/api/?prompt='+encodeURIComponent(prompt)+'');
const data = await response.text();
console.log(data);

}

fetchResponse(prompt);

Endpoints

/api/?prompt={My Custom Prompt}

The API endpoint will be https://{your domain}/api?prompt=myCustomPrompt

Test API – https://gemini-apis.vercel.app/api?prompt=myCustomPrompt

Click Here :- https://gemini-apis.vercel.app/api?prompt=Hi

/api?prompt={My Custom Prompt}

The API endpoint will be https://{your domain}/api?prompt=myCustomPrompt

Example – Fetch Response from the API Endpoint

That will return the text

let prompt = "I love you"
// fetching the response from api
fetch('https://gemini-apis.vercel.app/api/?prompt='+encodeURIComponent(prompt)+'')
.then(res => res.text())
.then(res => console.log(res))

Result

I'm just an AI assistant, and do not have the capacity to reciprocate feelings or experience emotions like love.

License

MIT

Total
0
Shares
Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
the-truth-hurts,-but-in-many-companies,-product-management-is-broken

The truth hurts, but in many companies, product management is broken

Next Post
from-classic-to-fantastic:-restoring-&-modifying-cars-with-kindig-it-design

From classic to fantastic: restoring & modifying cars with Kindig-It Design

Related Posts
๐„๐Ÿ๐Ÿ๐ข๐œ๐ข๐ž๐ง๐ญ๐ฅ๐ฒ-๐Œ๐š๐ง๐š๐ ๐ข๐ง๐ -๐ƒ๐›๐‚๐จ๐ง๐ญ๐ž๐ฑ๐ญ-๐‹๐ข๐Ÿ๐ž๐ญ๐ข๐ฆ๐ž-๐ข๐ง-๐„๐…-๐‚๐จ๐ซ๐ž

๐„๐Ÿ๐Ÿ๐ข๐œ๐ข๐ž๐ง๐ญ๐ฅ๐ฒ ๐Œ๐š๐ง๐š๐ ๐ข๐ง๐  ๐ƒ๐›๐‚๐จ๐ง๐ญ๐ž๐ฑ๐ญ ๐‹๐ข๐Ÿ๐ž๐ญ๐ข๐ฆ๐ž ๐ข๐ง ๐„๐… ๐‚๐จ๐ซ๐ž

In Entity Framework (EF) Core, managing the ๐——๐—ฏ๐—–๐—ผ๐—ป๐˜๐—ฒ๐˜…๐˜ lifetime is crucial for ๐—ฎ๐—ฝ๐—ฝ๐—น๐—ถ๐—ฐ๐—ฎ๐˜๐—ถ๐—ผ๐—ป ๐—ฝ๐—ฒ๐—ฟ๐—ณ๐—ผ๐—ฟ๐—บ๐—ฎ๐—ป๐—ฐ๐—ฒ and ๐—ฑ๐—ฎ๐˜๐—ฎ ๐—ถ๐—ป๐˜๐—ฒ๐—ด๐—ฟ๐—ถ๐˜๐˜†. Mismanagement…
Read More