Chat Completions
POST /v1/chat/completions Use the OpenAI SDK with api_key and a base URL ending in /v1.
Open the Chat Completions guide →Unified Inference
Use OpenAI or Anthropic SDKs to call the same model catalog with one key and one prepaid balance.
Point your code at api.mindshub.ai and use a short model
alias. Copy the command on the right to test the endpoint.
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"}]
}' Invitation · limited places
Test the API with direct access to the product team
We’re looking for teams willing to use the API in production and tell us where it falls short.
Members receive · spend matching
100% match up to $5,000
A 100% match on your first 3 months of inference-credit purchases, up to $5,000 — matched against the credits you buy, not a grant.
Teams already building or operating AI products, workflows, or services that:
Applications are reviewed on a rolling basis and take about 3–5 minutes to complete. Applying does not guarantee acceptance.
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 Use the OpenAI SDK with api_key and a base URL ending in /v1.
Open the Chat Completions guide →POST /v1/messages Use Anthropic SDKs or Claude Code with auth_token and the 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 →
An alias can move to a newer model without changing your code. This list
comes from the live catalog; GET /v1/models shows what your
organization can use.
mindshub_air sonnet opus fable haiku gpt gpt-terra gpt-luna gpt-codex gpt-mini gpt-nano gemini gemini-flash gemini-flash-3-6 gemini-flash-3-5 gemini-flash-3 gemini-flash-lite kimi deepseek deepseek-v4-pro qwen qwen-3-7-plus glm muse-spark muse-spark-1-1 grok grok-4-5
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 parameters pass through. Unsupported ones are dropped and out-of-range values are clamped. Response headers name every change.
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.
Chat Completions and Messages keep their own event, completion, and error formats.
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 →API and agent requests appear in the same organization usage summary, grouped by model.
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 Describe a project, connect its data, and get back documents, dashboards, or apps. Cowork uses the same catalog and balance, with no client to build.
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.