Prerequisites
2
Create an API Key
- Coding Plan:Visit API Keys > Create Coding Plan Key to get your API Key
Coding Plan only supports MiniMax text models. See Coding Plan Overview for details.
- 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 Text, Video, Speech, and Image.
.env file.3
Recharg Account
Access Billing/Balance page to top up if needed.
Make your first call
1
Install Anthropic SDK
2
Call API
Python
3
Example output
Next steps
Text Generation
Explore MiniMax’s latest text models
Image to Video
Create image-to-video tasks with Hailuo 2.3
Text to Video
Create text-to-video tasks with Hailuo 2.3
Synchronous Text-to-Speech
Perform real-time speech synthesis with Speech 2.6
Async Long TTS
Perform asynchronous speech synthesis with Speech 2.6
Voice Clone
Create voice cloning tasks
Music Generation
Compose music with Music 2.0