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 →MindsHub 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"}]
}' You pay for what you use, from a prepaid balance. There is no monthly fee, and you don’t need a plan.
Each model costs what its provider charges for it. We add nothing on top.
A few rates are rounded up to the next cent per million tokens.
When a provider charges less for input it has cached, you pay the lower rate too.
Jev, TypeSafe’s decision model, is free on every account within usage limits. Past them, its input is billed at the listed rate. Its output is free.
Jev API guide →To try the API, a free account includes the MindsHub Air model within usage limits. No card needed. Fair-use policy →
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 versioned 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
account can use. The branded aliases for the MindsHub Air model and
MindsHub Blaze have no fixed counterpart.
| Maker | Model | Rotating alias | Fixed alias |
|---|---|---|---|
| MindsHub | MindsHub Blaze via Cerebras | mindshub_blaze | — |
| MindsHub Air Free tier | mindshub_air | — | |
| Anthropic | Claude Fable 5.1 | fable | fable-5-1 |
| Claude Opus 5 | — | opus-5 | |
| Claude Fable 5 | — | fable-5 | |
| Claude Sonnet 5 | — | sonnet-5 | |
| Claude Haiku 4.5 | — | haiku-4-5 | |
| Claude Haiku 5.5 | haiku | haiku-5-5 | |
| Claude Opus 5.5 | opus | opus-5-5 | |
| Claude Sonnet 5.5 | sonnet | sonnet-5-5 | |
| Claude Fable 5.2 | — | fable-5-2 | |
| OpenAI | GPT-6 Astra | gpt | gpt-6-astra |
| GPT 5.6 Sol | — | gpt-5-6-sol | |
| GPT 5.6 Terra | — | gpt-terra-5-6 | |
| GPT-6.1 Terra | gpt-terra | gpt-terra-6-1 | |
| GPT 5.6 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 | |
| GPT-6 Sol | — | gpt-sol-6 | |
| GPT-6 Luna | gpt-luna | gpt-luna-6 | |
| GPT-6.1 Sol | gpt-sol | gpt-sol-6-1 | |
| GPT-6.2 Astra | — | gpt-6-2-astra | |
| GPT-6.2 Sol | — | gpt-sol-6-2 | |
| Gemini 4 Argon | gemini-argon | gemini-argon-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 | |
| Gemini 4 Neon | gemini-neon | gemini-neon-4 | |
| Moonshot AI | Kimi K3 via Fireworks AI | kimi | kimi-k3 |
| Kimi K3.1 Pro | kimi-pro | kimi-k3-1-pro | |
| DeepSeek | DeepSeek V4.1 Flash via Mnma | — | deepseek-v4-1-flash |
| DeepSeek V4.1 Flash 1017 via Fireworks AI | deepseek-v4-flash | deepseek-v4-1-flash-1017 | |
| Alibaba via Fireworks AI | Qwen3.8-2.4T-A95B | qwen | qwen-3-8-a95b |
| Zhipu via Mnma | GLM 5.3 | glm | glm-5-3 |
| GLM 5.3 Flash | glm-5-3-flash | glm-flash-5-3 | |
| 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 | |
| Muse Wonder 1.0 | muse-wonder | muse-wonder-1-0 | |
| Muse Ember 1.0 | muse-ember | muse-ember-1-0 | |
| SpaceXAI | Grok 4.6 | — | grok-4-6 |
| Grok 4.5 | — | grok-4-5 | |
| Grok 4.7 | grok | grok-4-7 | |
| Fireworks AI | Kimi K3.1 Pro (Fireworks) | — | kimi-k3-1-pro-fireworks |
| DeepSeek V4.1 Flash (Fireworks) | — | deepseek-v4-1-flash-fireworks | |
| GLM 5.3 (Fireworks) | — | glm-5-3-fireworks | |
| GLM 5.3 Flash (Fireworks) | — | glm-5-3-flash-fireworks | |
| Mnma | Kimi K3.1 Pro (MNMA) | — | kimi-k3-1-pro-mnma |
Model usage, embeddings, web search and priced cache writes all draw from one prepaid balance.
Input, output, cached input, and cache writes are metered separately. Cached input is roughly a tenth of the ordinary input rate. Usage 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 usage summary, grouped by model.
Usage and billing docs →Every request format reaches the same models, the same balance, 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. MindsHub Agents 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 and to remember your privacy choices. Always on.
Helps us understand how visitors use our website, including which pages and features they interact with, including clicks and pointer positions in heatmaps. Where permitted, limited audience measurement uses first-party cookies before a choice.
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. This also turns off optional website analytics.
See our Privacy Notice and Cookie Policy for full detail.