MiniMax API (OpenAI Compatible)
MiniMax provides low-latency, high-quality models (abab series) that excel in creative writing, role-playing, and logical reasoning.
🚀 Key Specs
- Model Support:
abab6.5s(Speech/Fast),abab7(Latest/Smart). - Initial Free Credits: 10M Tokens for new users upon registration.
- Context Window: 128k - 256k depending on the model.
- Style: Fully OpenAI API compatible.
🗝 How to get an API Key
- Visit MiniMax Platform (platform.minimaxi.com).
- Register an account and navigate to API Keys.
- Create a new secret key.
🛠 Usage Example (Python/OpenAI Library)
from openai import OpenAI
client = OpenAI(
api_key="<MiniMax API Key>",
base_url="https://api.minimax.chat/v1"
)
response = client.chat.completions.create(
model="abab6.5s-chat",
messages=[{"role": "user", "content": "Write a short poem about the moon."}],
stream=False
)
print(response.choices[0].message.content)