B.AI
ALIVE30+ models in one key — MiniMax M3 free
Multi-model AI gateway exposing 30+ models on one OpenAI-compatible key. MiniMax M3 is free for a limited time, others priced per call. Same sk-… key format for everything.
- 30+ models · OpenAI compatible
- MiniMax M3 free (limited)
- Max input 73K–100K tokens
- OpenAI-compatible API
- Auth: Bearer (OpenAI)
minimax-m3defaultgpt-5.2claude-sonnet-4-6claude-opus-4-8https://api.b.ai/v1/chat/completionshttps://api.b.ai/v1/completionshttps://api.b.ai/v1/models# settings.json "env" block, or your shell:
ANTHROPIC_BASE_URL=https://api.b.ai/v1
ANTHROPIC_AUTH_TOKEN=<YOUR_API_KEY>
ANTHROPIC_MODEL=minimax-m3
# Claude Code speaks the Anthropic Messages API. Use an Anthropic-compatible
# endpoint, or an OpenAI→Anthropic proxy in front of B.AI.You are being set up to use a free LLM API as your model backend.
Provider: B.AI
Base URL: https://api.b.ai/v1
Model: minimax-m3
Auth: Bearer token (OpenAI-compatible)
Key env var: BAI_API_KEY
Task:
1. Configure Claude Code to call the endpoint above using the OpenAI Chat Completions format.
2. Read the API key from the BAI_API_KEY environment variable. Do NOT
ask me to paste the key in plain text in this chat — I will set it in my env.
3. If a setting requires a base URL, use exactly: https://api.b.ai/v1
4. Send one short test message ("ping") and report back whether the call
succeeded, including the model name and latency.
If anything is missing (e.g. an account ID for the base URL), ask me for just
that value and nothing else.↳ You supply the key in your own env. apifreely never sees it.
curl https://api.b.ai/v1/chat/completions \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax-m3",
"messages": [{ "role": "user", "content": "Hello!" }]
}'{
"id": "chatcmpl-...",
"object": "chat.completion",
"model": "minimax-m3",
"choices": [
{
"index": 0,
"message": { "role": "assistant", "content": "Hello! How can I help?" },
"finish_reason": "stop"
}
],
"usage": { "prompt_tokens": 9, "completion_tokens": 12, "total_tokens": 21 }
}Is it really free?
Yes — this entry lists a free tier or promo. Some are rate-limited or time-limited, so check the rate limit and any expiry before relying on it in production.
Where is my API key stored?
Nowhere. apifreely never receives your key. You paste it into your own agent or environment — every generator here runs in your browser.
How do I connect it to my agent?
Open the Setup tab for a copy-paste config per tool, or use the Prompt Generator to get a prompt your agent can run to configure itself.
What if the endpoint needs an account ID?
Some providers (e.g. Cloudflare) include a placeholder like {ACCOUNT_ID} in the base URL — replace it with your own from the dashboard.
1 · Base URL
https://api.b.ai/v12 · API key
BAI_API_KEY=••••••••••••••••••env onlyMiniMax M3 free for a limited time; max input 73K–100K tokens per request, rate-limited if exceeded
FREE M3