You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The APIs are now generally available and have a generous free tier with upto 60 request per minute.
Quickstart to consuming the library
const{ GoogleGenerativeAI }=require("@google/generative-ai");// Access your API key as an environment variable (see "Set up your API key" above)constgenAI=newGoogleGenerativeAI(process.env.API_KEY);asyncfunctionrun(){// For text-only input, use the gemini-pro modelconstmodel=genAI.getGenerativeModel({model: "gemini-pro"});constprompt="Write a story about a magic backpack."constresult=awaitmodel.generateContent(prompt);constresponse=awaitresult.response;consttext=response.text();console.log(text);}run();
Description
The APIs are now generally available and have a generous free tier with upto 60 request per minute.
Quickstart to consuming the library
https://ai.google.dev/tutorials/node_quickstart
Additional Information
No response
The text was updated successfully, but these errors were encountered: