Skip to main content
1

Register or Login

Access MiniMax API Platform, register or login .
2

Get a Key

  • Pay-as-you-go:Visit API Keys > Create new secret key to get your API Key
    Pay-as-you-go supports all modality models, including language, Video, Speech, and Image.
  • Token Plan:Visit Billing > Token Plan to view your Subscription Key
    The Subscription Key is used for included Token Plan credits and purchased Credits. It can exist before paid resources are available, and becomes usable when you have a Token Plan seat or Credits access. See Token Plan Overview for details.
After generating an API Key, we recommend you export it as an environment variable in terminal or save it to a .env file.
# Compatible Anthropic API (Recommended)
export ANTHROPIC_BASE_URL=https://api.minimax.io/anthropic
export ANTHROPIC_API_KEY=${YOUR_API_KEY}
3

Add resources

For pay-as-you-go, access Billing/Balance to top up if needed. For Token Plan, buy a subscription or Credits, or use resources assigned by your Team.