Skip to Content
NotPixel SDK v1.0.1 — Now with caching, hooks, and browser tracking!

Google (Gemini)

Access Google’s Gemini models through NotPixel. Gemini models are multimodal and optimized for a variety of tasks.

Setup

1. Get API Key

  1. Go to Google AI Studio 
  2. Sign in with your Google account
  3. Create a new API key

Google AI Studio offers a free tier that doesn’t require a credit card, making it a great option for development and testing.

2. Configure Environment

.env
GOOGLE_API_KEY=AI...

Usage

import Ads from 'notpixel'; const ads = new Ads({ publisherId: 'pub_xxx', model: 'google/gemini-3-pro', input: 'What are the best practices for API design?', }); const response = await ads.offer(); console.log(response.text);

Available Models

ModelContextBest For
google/gemini-3-pro1MComplex tasks, long documents
google/gemini-1.5-flash1MFast responses, cost-effective
google/gemini-pro32KGeneral purpose

Gemini 1.5 Pro has a massive 1 million token context window, making it ideal for processing long documents.

Model Selection

// Best quality, long context model: 'google/gemini-3-pro' // Fast and affordable model: 'google/gemini-1.5-flash'

Environment Variable

VariableDescription
GOOGLE_API_KEYYour Google API key