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"}]
}'
Point OpenClaw, Hermes, Claude Code, Codex or your own code at
api.mindshub.ai with one key and use Air at no charge.
"model": "mindshub_air" The free tier is for people using agents. Daily rate limits apply, and accounts that run automated bulk traffic through it can be suspended. If a limit stops you and you think that's a mistake, contact us.
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 →
Every model has a fixed alias that names one exact
version and never moves. Most lines also have a rotating
alias that always resolves to the most recent version of that line we
serve, so you take upgrades without a code change. Put either string in
model; GET /v1/models shows what your
organization can use.
| Maker | Model | Rotating alias | Fixed alias |
|---|---|---|---|
| MindsHub | MindsHub Air Free tier | mindshub_air | — |
| Anthropic | Claude Fable 5.1 | fable | fable-5-1 |
| Claude Opus 5 | opus | opus-5 | |
| Claude Fable 5 | — | fable-5 | |
| Claude Sonnet 5 | sonnet | sonnet-5 | |
| Claude Haiku 4.5 | haiku | haiku-4-5 | |
| OpenAI | GPT-6 Astra | gpt | gpt-6-astra |
| GPT 5.6 Sol | — | gpt-5-6-sol | |
| GPT 5.6 Terra | gpt-terra | gpt-terra-5-6 | |
| GPT 5.6 Luna | gpt-luna | gpt-luna-5-6 | |
| GPT 5.3 Codex | gpt-codex | gpt-codex-5-3 | |
| GPT 5.4 Mini | gpt-mini | gpt-mini-5-4 | |
| GPT 5.4 Nano | gpt-nano | gpt-nano-5-4 | |
| Gemini 3.8 Flash | gemini-flash | gemini-flash-3-8 | |
| Gemini 3.7 Flash | — | gemini-flash-3-7 | |
| Gemini 3.6 Flash | — | gemini-flash-3-6 | |
| Gemini 3.5 Flash | — | gemini-flash-3-5 | |
| Gemini 3.1 Pro Preview | gemini | gemini-3-1-pro | |
| Gemini 3.1 Flash-Lite | gemini-flash-lite | gemini-flash-lite-3-1 | |
| Gemini 3 Flash Preview | — | gemini-flash-3 | |
| Moonshot AI via Fireworks AI | Kimi K3 | kimi | kimi-k3 |
| DeepSeek via Fireworks AI | DeepSeek V4 Pro | deepseek | deepseek-v4-pro |
| DeepSeek V4.1 Flash | deepseek-v4-flash | deepseek-v4-1-flash | |
| DeepSeek V4 Flash | — | deepseek-v4-flash-0731 | |
| Alibaba via Fireworks AI | Qwen3.8-2.4T-A95B | qwen | qwen-3-8-a95b |
| Zhipu via Fireworks AI | GLM 5.3 | glm | glm-5-3 |
| GLM 5.3 Flash | glm-5-3-flash | glm-flash-5-3 | |
| GLM 5.2 | — | glm-5-2 | |
| Meta | Muse Spark 1.3 | muse-spark | muse-spark-1-3 |
| Muse Spark 1.2 | — | muse-spark-1-2 | |
| Muse Spark 1.1 | — | muse-spark-1-1 | |
| SpaceXAI | Grok 4.6 | grok | grok-4-6 |
| Grok 4.5 | — | grok-4-5 | |
| Cerebras | MindsHub Blaze | mindshub_blaze | — |
| Fireworks AI | GPT-OSS 120B (Fireworks) | — | gpt-oss-fireworks |
The MindsHub Air model, alias mindshub_air, is the free tier
within fair use. 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. Daily limits on the free tier are enforced by the API; 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.
We measure how our website is used and how our own ads perform, so we can improve both. We don’t sell your information or use it to build advertising profiles. You can opt out of this measurement here.
See our Privacy Notice and Cookie Policy for full detail.