Models
NotPixel SDK supports multiple LLM providers and gateways, allowing you to choose the best model for your use case.
Model Providers
Direct access to individual AI providers. Configure your API key and start using their models.
OpenAI
Configure and use OpenAI models with NotPixel.
Anthropic
Configure and use Anthropic models with NotPixel.
Configure and use Google models with NotPixel.
xAI
Configure and use xAI models with NotPixel.
DeepSeek
Configure and use DeepSeek models with NotPixel.
Groq
Configure and use Groq models with NotPixel.
Mistral
Configure and use Mistral models with NotPixel.
Perplexity
Configure and use Perplexity models with NotPixel.
Together AI
Configure and use Together AI models with NotPixel.
GitHub Models
Configure and use GitHub Models models with NotPixel.
NVIDIA
Configure and use NVIDIA models with NotPixel.
Alibaba
Configure and use Alibaba models with NotPixel.
Minimax
Configure and use Minimax models with NotPixel.
Llama
Configure and use Llama models with NotPixel.
LM Studio
Configure and use LM Studio models with NotPixel.
Model Gateways
Unified APIs that provide access to multiple providers through a single API key.
OpenRouter
Route requests through the OpenRouter AI gateway.
Vercel
Route requests through the Vercel AI gateway.
Netlify
Route requests through the Netlify AI gateway.
Quick Start
Configure your API key:
OPENAI_API_KEY=sk-...Use the model:
import Ads from 'notpixel';
const ads = new Ads({
publisherId: 'pub_10565',
model: 'openai/gpt-5.2',
input: 'Your user query here',
});
const response = await ads.offer();
console.log(response.text);The SDK automatically detects API keys from your environment.
Model Format
All models use the format {provider}/{model-name}:
| Format | Example |
|---|---|
openai/{model} | openai/gpt-5.2, openai/gpt-5.2-mini |
anthropic/{model} | anthropic/claude-opus-4.5 |
google/{model} | google/gemini-3-pro |
xai/{model} | xai/grok-2 |
deepseek/{model} | deepseek/deepseek-chat |
groq/{model} | groq/llama-3.1-70b-versatile |
mistral/{model} | mistral/mistral-large-latest |
perplexity/{model} | perplexity/sonar |
together/{model} | together/deepseek-ai/DeepSeek-R1 |
github/{model} | github/gpt-4o |
nvidia/{model} | nvidia/meta/llama-3.1-70b-instruct |
alibaba/{model} | alibaba/qwen-max |
minimax/{model} | minimax/MiniMax-M2 |
llama/{model} | llama/llama-3.3-70b-instruct |
lmstudio/{model} | lmstudio/local-model |
openrouter/{provider}/{model} | openrouter/anthropic/claude-opus-4.5 |
vercel/{provider}/{model} | vercel/openai/gpt-5.2 |
netlify/{provider}/{model} | netlify/anthropic/claude-3-5-haiku |
Choosing a Model
| Use Case | Recommended Model |
|---|---|
| General purpose | openai/gpt-5.2 |
| Fast & cheap | openai/gpt-5.2-mini, groq/llama-3.1-8b |
| Complex analysis | anthropic/claude-opus-4.5 |
| Long documents | google/gemini-3-pro |
| Real-time info | xai/grok-2, perplexity/sonar |
| Code generation | deepseek/deepseek-coder |
| Local/private | lmstudio/local-model |