Auto
mb-auto/planPicks the model for you: the strongest frontier model (Claude) while your plan’s frontier limits have room, then MegaBrain Core (open models such as GLM and Kimi) until they reset. Without a plan it uses MegaBrain Core, paid from credits in the desktop app.
Uptime and speed
Loading…
Pricing
Charged from your prepaid balance for the tokens actually used.
Apps and activity
Loading…
Technical details
How to connect
The API is OpenAI-compatible: the official SDKs, LangChain and any client with a "base URL" field work.
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://getmegabrain.com/api/gateway/v1',
apiKey: process.env.MEGABRAIN_API_KEY,
})
const response = await client.chat.completions.create({
model: 'mb-auto/plan',
messages: [{ role: 'user', content: 'Hello!' }],
})Questions
How much does the Auto API cost?
$3.34 per 1M input tokens and $17 per 1M output tokens, charged from a prepaid US-dollar balance for the tokens actually used. There is no subscription.
What is the context window of Auto?
1,000,000 tokens (1M), with up to 64,000 tokens in one reply.
How do I call Auto through the API?
Send an OpenAI-compatible request to https://getmegabrain.com/api/gateway/v1/chat/completions with "model": "mb-auto/plan" and your MegaBrain API key as a Bearer token. The official OpenAI SDKs, LangChain and any client with a base URL setting work; the same key also reaches image and video models.
What input does Auto accept?
It accepts Text and Images and produces Text.
Can I try Auto before paying?
Sign-up is free and open to everyone. Adding a card (nothing is charged) gives $1.00 of credit to try any model; after that every model is charged from a balance you top up by card.
Start using Auto
Create an account, top up from $10, get a key in your dashboard and send your first request.