Prerequisites
2
Create an API Key
- Coding Plan:Create an API Key in Billing > API Keys page.
- Pay-as-you-go:Create an API Key in Settings > API Keys page.
.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