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

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

  1. Go to Minimax Platform 
  2. Create an account or sign in
  3. Generate a new API key

2. Configure Environment

.env
MINIMAX_API_KEY=your-api-key

Usage

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

ModelContext
minimax/MiniMax-M2197K

Environment Variable

VariableDescription
MINIMAX_API_KEYYour Minimax API key