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
- Go to Meta Llama Platform
- Sign up for access
- Generate an API key
2. Configure Environment
.env
LLAMA_API_KEY=your-api-keyUsage
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
| Model | Context |
|---|---|
llama/cerebras-llama-4-maverick-17b-128e-instruct | 128K |
llama/groq-llama-4-maverick-17b-128e-instruct | 128K |
llama/llama-3.3-70b-instruct | 128K |
llama/llama-4-maverick-17b-128e-instruct-fp8 | 128K |
Environment Variable
| Variable | Description |
|---|---|
LLAMA_API_KEY | Your Llama API key |