gemini-g4f
v13.0.0-alpha.15
Published
The simpler JavaScript Gemini SDK - optimised for raycast-g4f
Downloads
1,066
Readme
Installation
Install with the following command, or the command for your favorite package manager.
npm install gemini-g4f
Quickstart
Make a text request:
import Gemini from "gemini-g4f";
const gemini = new Gemini(API_KEY);
console.log(await gemini.ask("Hi!"));
Make a streaming text request:
import Gemini from "gemini-g4f";
const gemini = new Gemini(API_KEY);
gemini.ask("Hi!", {
stream: console.log,
});
Chat with Gemini:
import Gemini from "gemini-g4f";
const gemini = new Gemini(API_KEY);
const chat = gemini.createChat();
console.log(await chat.ask("Hi!"));
Read the full docs at https://github.com/XInTheDark/gemini-ai.