Minimax
Access Minimax models through NotPixel. Authentication is handled automatically using the MINIMAX_API_KEY environment variable.
Learn more in the Minimax documentation .
Setup
1. Get API Key
- Go to Minimax Platform
- Create an account or sign in
- Generate a new API key
2. Configure Environment
.env
MINIMAX_API_KEY=your-api-keyUsage
import Ads from 'notpixel';
const ads = new Ads({
publisherId: 'pub_xxx',
model: 'minimax/MiniMax-M2',
input: 'Tell me a story about a brave knight',
});
const response = await ads.offer();
console.log(response.text);NotPixel uses the OpenAI-compatible endpoint of Minimax. Some provider-specific features may not be available.
Available Models
| Model | Context |
|---|---|
minimax/MiniMax-M2 | 197K |
Environment Variable
| Variable | Description |
|---|---|
MINIMAX_API_KEY | Your Minimax API key |