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

Llama

Access 7 Llama models through NotPixel. Authentication is handled automatically using the LLAMA_API_KEY environment variable.

Learn more in the Llama documentation .

Setup

1. Get API Key

  1. Go to Meta Llama Platform 
  2. Sign up for access
  3. Generate an API key

2. Configure Environment

.env
LLAMA_API_KEY=your-api-key

Usage

import Ads from 'notpixel'; const ads = new Ads({ publisherId: 'pub_xxx', model: 'llama/llama-3.3-70b-instruct', input: 'How to build a scalable application?', }); const response = await ads.offer(); console.log(response.text);

NotPixel uses the OpenAI-compatible endpoint of Llama. Some provider-specific features may not be available.

Available Models

ModelContext
llama/cerebras-llama-4-maverick-17b-128e-instruct128K
llama/groq-llama-4-maverick-17b-128e-instruct128K
llama/llama-3.3-70b-instruct128K
llama/llama-4-maverick-17b-128e-instruct-fp8128K

Environment Variable

VariableDescription
LLAMA_API_KEYYour Llama API key