Chat Completions
POST /v1/chat/completions Best documented and most widely supported. Use api_key and the base URL ending in /v1.
Open the Chat Completions guide →Unified Inference
Keep the SDK your code already speaks. Call every major model through OpenAI Chat Completions or Anthropic Messages, on one key and one bill.
Point your existing code at api.mindshub.ai and keep
everything else. Reference any model by its short alias — the command
on the right is real; copy it and run it.
https://api.mindshub.ai/v1 with api_key.
https://api.mindshub.ai without /v1 and
require auth_token, so the client sends
Authorization: Bearer.
curl https://api.mindshub.ai/v1/chat/completions \
-H "Authorization: Bearer $MINDSHUB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "sonnet",
"messages": [{"role": "user", "content": "Hello"}]
}' All three formats reach the same catalog and the same bill. Start with Chat Completions for new work; use Messages for Anthropic SDKs and Claude Code.
POST /v1/chat/completions Best documented and most widely supported. Use api_key and the base URL ending in /v1.
Open the Chat Completions guide →POST /v1/messages For Anthropic SDKs and Claude Code. Use auth_token and the host-only base URL without /v1.
Open the Messages guide →POST /v1/responses Input is accepted today, but Responses-shaped output and SDK helpers are still upgrading. Use Chat Completions for production.
Read the current Responses status →
Reference a model by its short alias, not a provider version string —
when the underlying model is upgraded, the alias stays the same. This
list renders from the same live catalog the API serves;
GET /v1/models is authoritative, including whether each
model is enabled for your organization.
mindshub_air sonnet opus fable haiku gpt gpt-terra gpt-luna gpt-codex gpt-mini gpt-nano gemini gemini-flash kimi deepseek qwen glm muse-spark grok
By default, organizations receive 5 million included monthly tokens
on mindshub_air. Every other model, embeddings, web
search, and priced cache writes draw from one prepaid organization
wallet.
Input, output, cached input, and cache writes are metered separately. Cached input is roughly a tenth of the ordinary input rate. Included-token limits can vary by organization — your entitlements response is authoritative.
Caching is automatic on most of the catalog. Claude-family models use
cache_control breakpoints on Messages.
Supported generation parameters pass through. Unsupported parameters are dropped and out-of-range values are clamped — with every change named in response headers, so nothing shifts silently.
POST /v1/chat/completions model: gemini-flash
top_k · max_tokens · reasoning_effort
← 200 OK
X-MindsHub-Dropped-Params: top_k
X-MindsHub-Clamped-Params: max_tokens=requested>applied Nothing changed? No adaptation headers. Provider value restrictions can still return a 400.
Existing stream parsers keep working on Chat Completions and Messages. Each protocol keeps its own completion and failure signals — the docs spell them out.
Compare API behavior →Function tools, image input, and built-in web search are supported where the selected model and request format support them.
See working examples →Every API and coding-agent request lands in the same organization usage summary, grouped by model when you need it.
Usage and wallet docs →Every request format reaches the same models, the same wallet, and the same usage summary.
Compare all three APIs →POST /v1/chat/completions Production POST /v1/messages Production POST /v1/responses Mid-upgrade GET /v1/models Live POST /v1/embeddings Live Usage summary Live Choose which categories of cookies and similar technologies you allow us to use on this site. You can change these choices at any time via the Cookie preferences link in the footer.
Required for the site to work — the anonymous session cookie that lets us measure aggregate traffic. Always on.
Anonymous usage measurement (PostHog server-side). Helps us understand which pages are useful.
Click-ID attribution to ad platforms (Google, X, LinkedIn) and identified events so we can measure ad performance.
California, Virginia, Colorado, Connecticut, Utah, and other US state privacy laws give you the right to opt out of the “sale” or “sharing” of your personal information for cross-context behavioral advertising. We don’t sell your information for money, but we do share identifiers with our advertising partners to measure ad performance. You can opt out here.
See our Privacy Notice and Cookie Policy for full detail.