@mastra/mcp-docs-server 1.2.13-alpha.8 → 1.2.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.docs/docs/agents/overview.md +1 -1
- package/.docs/docs/agents/supervisor-agents.md +2 -2
- package/.docs/docs/agents/using-tools.md +29 -0
- package/.docs/docs/capabilities/channels/imessage.md +181 -0
- package/.docs/docs/capabilities/channels/overview.md +1 -0
- package/.docs/docs/{evals/datasets → datasets}/overview.md +3 -3
- package/.docs/docs/{evals/datasets → datasets}/running-experiments.md +59 -2
- package/.docs/docs/editor/overview.md +201 -206
- package/.docs/docs/evals/evals-with-memory.md +1 -1
- package/.docs/docs/getting-started/develop.md +196 -0
- package/.docs/docs/index.md +78 -1
- package/.docs/docs/mastra-platform/workspaces.md +13 -13
- package/.docs/docs/memory/observational-memory.md +23 -0
- package/.docs/docs/studio/observability.md +4 -0
- package/.docs/docs/studio/overview.md +2 -2
- package/.docs/docs/workspace/search.md +1 -1
- package/.docs/guides/getting-started/quickstart.md +3 -3
- package/.docs/{docs → guides}/rag/chunking-and-embedding.md +1 -1
- package/.docs/{docs → guides}/rag/graph-rag.md +1 -1
- package/.docs/{docs → guides}/rag/overview.md +2 -2
- package/.docs/{docs → guides}/rag/retrieval.md +1 -1
- package/.docs/{docs → guides}/voice/overview.md +4 -4
- package/.docs/{docs → guides}/voice/realtime-voice.md +2 -2
- package/.docs/{docs → guides}/voice/speech-to-speech.md +1 -1
- package/.docs/{docs → guides}/voice/speech-to-text.md +1 -1
- package/.docs/{docs → guides}/voice/text-to-speech.md +2 -2
- package/.docs/models/embeddings.md +63 -65
- package/.docs/models/environment-variables.md +5 -1
- package/.docs/models/gateways/netlify.md +1 -2
- package/.docs/models/gateways/openrouter.md +5 -3
- package/.docs/models/gateways/vercel.md +8 -1
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/alibaba-cn.md +3 -1
- package/.docs/models/providers/alibaba-token-plan-cn.md +27 -25
- package/.docs/models/providers/alibaba-token-plan.md +27 -25
- package/.docs/models/providers/alibaba.md +2 -1
- package/.docs/models/providers/ambient.md +13 -12
- package/.docs/models/providers/baseten.md +3 -1
- package/.docs/models/providers/chutes.md +6 -8
- package/.docs/models/providers/crof.md +2 -1
- package/.docs/models/providers/crossmodel.md +7 -3
- package/.docs/models/providers/deepinfra.md +9 -2
- package/.docs/models/providers/digitalocean.md +34 -27
- package/.docs/models/providers/empiriolabs.md +4 -1
- package/.docs/models/providers/fireworks-ai.md +20 -19
- package/.docs/models/providers/greenpt.md +17 -8
- package/.docs/models/providers/groq.md +20 -20
- package/.docs/models/providers/huggingface.md +3 -1
- package/.docs/models/providers/hyper.md +9 -7
- package/.docs/models/providers/impossibl.md +148 -0
- package/.docs/models/providers/infomaniak.md +83 -0
- package/.docs/models/providers/kilo.md +349 -350
- package/.docs/models/providers/llmgateway.md +6 -3
- package/.docs/models/providers/mistral.md +5 -2
- package/.docs/models/providers/modal.md +5 -4
- package/.docs/models/providers/modelis.md +81 -0
- package/.docs/models/providers/nano-gpt.md +146 -148
- package/.docs/models/providers/neuralwatt.md +2 -1
- package/.docs/models/providers/ofox.md +2 -2
- package/.docs/models/providers/ollama-cloud.md +23 -22
- package/.docs/models/providers/opencode-go.md +3 -2
- package/.docs/models/providers/requesty.md +54 -45
- package/.docs/models/providers/scx.md +74 -0
- package/.docs/models/providers/tensorx.md +97 -0
- package/.docs/models/providers/togetherai.md +2 -1
- package/.docs/models/providers/umans-ai-coding-plan.md +11 -9
- package/.docs/models/providers/umans-ai.md +11 -9
- package/.docs/models/providers/wandb.md +2 -2
- package/.docs/models/providers/zai-coding-plan.md +11 -13
- package/.docs/models/providers/zhipuai-coding-plan.md +12 -12
- package/.docs/models/providers.md +5 -1
- package/.docs/reference/agents/agent.md +1 -1
- package/.docs/reference/agents/generate.md +1 -1
- package/.docs/reference/agents/getVoice.md +1 -1
- package/.docs/{docs/getting-started → reference}/build-with-ai.md +5 -110
- package/.docs/reference/cli/create-mastra.md +2 -0
- package/.docs/reference/cli/mastra.md +66 -1
- package/.docs/reference/client-js/agents.md +1 -1
- package/.docs/reference/configuration.md +2 -2
- package/.docs/reference/core/getEditor.md +1 -1
- package/.docs/reference/core/getVector.md +2 -2
- package/.docs/reference/core/listVectors.md +2 -2
- package/.docs/reference/core/mastra-class.md +1 -1
- package/.docs/reference/datasets/startExperiment.md +6 -0
- package/.docs/reference/datasets/startExperimentAsync.md +4 -0
- package/.docs/reference/editor/browser-provider.md +2 -2
- package/.docs/reference/editor/filesystem-provider.md +1 -1
- package/.docs/reference/editor/mastra-editor.md +31 -18
- package/.docs/reference/editor/prompt-blocks.md +137 -0
- package/.docs/reference/editor/sandbox-provider.md +1 -1
- package/.docs/reference/editor/storage-browser-ref.md +3 -3
- package/.docs/reference/editor/storage-workspace-ref.md +3 -3
- package/.docs/reference/editor/tool-provider.md +44 -10
- package/.docs/reference/editor/tools.md +100 -0
- package/.docs/reference/editor/versioning.md +130 -0
- package/.docs/reference/evals/mastra-scorer.md +68 -8
- package/.docs/reference/file-based-agents/config.md +39 -1
- package/.docs/reference/index.md +3 -4
- package/.docs/reference/memory/observational-memory.md +3 -1
- package/.docs/reference/memory/serialized-memory-config.md +3 -3
- package/.docs/reference/observability/tracing/interfaces.md +3 -1
- package/.docs/reference/processors/token-limiter-processor.md +15 -1
- package/.docs/reference/project-structure.md +1 -1
- package/.docs/reference/rag/database-config.md +1 -1
- package/.docs/reference/storage/composite.md +2 -0
- package/.docs/reference/streaming/agents/stream.md +1 -1
- package/.docs/reference/voice/livekit.md +3 -3
- package/.docs/reference/workspace/platform-filesystem.md +3 -3
- package/.docs/reference/workspace/platform-sandbox.md +5 -5
- package/CHANGELOG.md +30 -0
- package/README.md +1 -1
- package/package.json +6 -6
- package/.docs/docs/agent-builder/access-control.md +0 -99
- package/.docs/docs/agent-builder/browser.md +0 -63
- package/.docs/docs/agent-builder/channels.md +0 -78
- package/.docs/docs/agent-builder/configuration.md +0 -132
- package/.docs/docs/agent-builder/deploying.md +0 -124
- package/.docs/docs/agent-builder/integrations.md +0 -115
- package/.docs/docs/agent-builder/memory.md +0 -69
- package/.docs/docs/agent-builder/model-policy.md +0 -50
- package/.docs/docs/agent-builder/overview.md +0 -114
- package/.docs/docs/agent-builder/skill-registries.md +0 -31
- package/.docs/docs/agent-builder/workspace.md +0 -62
- package/.docs/docs/editor/prompts.md +0 -140
- package/.docs/docs/editor/tools.md +0 -148
- package/.docs/docs/getting-started/file-based-agents.md +0 -121
- package/.docs/docs/what-is-mastra.md +0 -161
- package/.docs/reference/client-js/agent-builder.md +0 -163
- package/.docs/reference/editor/agent-builder/agent-builder-options.md +0 -76
- package/.docs/reference/editor/agent-builder/builder-agent-defaults.md +0 -79
- package/.docs/reference/editor/agent-builder/builder-models.md +0 -66
- /package/.docs/{docs → guides}/getting-started/manual-install.md +0 -0
- /package/.docs/{docs → guides}/rag/vector-databases.md +0 -0
|
@@ -17,7 +17,7 @@ const agent = new Agent({
|
|
|
17
17
|
id: "my-agent",
|
|
18
18
|
name: "My Agent",
|
|
19
19
|
instructions: "You are a helpful assistant",
|
|
20
|
-
model: "groq/
|
|
20
|
+
model: "groq/allam-2-7b"
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
// Generate a response
|
|
@@ -32,23 +32,23 @@ for await (const chunk of stream) {
|
|
|
32
32
|
|
|
33
33
|
## Models
|
|
34
34
|
|
|
35
|
-
| Model
|
|
36
|
-
|
|
|
37
|
-
| `groq/
|
|
38
|
-
| `groq/canopylabs/orpheus-
|
|
39
|
-
| `groq/
|
|
40
|
-
| `groq/groq/compound
|
|
41
|
-
| `groq/
|
|
42
|
-
| `groq/llama-3.
|
|
43
|
-
| `groq/
|
|
44
|
-
| `groq/meta-llama/llama-prompt-guard-2-22m`
|
|
45
|
-
| `groq/meta-llama/llama-prompt-guard-2-86m`
|
|
46
|
-
| `groq/openai/gpt-oss-120b`
|
|
47
|
-
| `groq/openai/gpt-oss-20b`
|
|
48
|
-
| `groq/openai/gpt-oss-safeguard-20b`
|
|
49
|
-
| `groq/qwen/qwen3-
|
|
50
|
-
| `groq/whisper-large-v3`
|
|
51
|
-
| `groq/whisper-large-v3-turbo`
|
|
35
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
36
|
+
| ------------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
37
|
+
| `groq/allam-2-7b` | 4K | | | | | | — | — |
|
|
38
|
+
| `groq/canopylabs/orpheus-arabic-saudi` | 4K | | | | | | — | — |
|
|
39
|
+
| `groq/canopylabs/orpheus-v1-english` | 4K | | | | | | — | — |
|
|
40
|
+
| `groq/groq/compound` | 131K | | | | | | — | — |
|
|
41
|
+
| `groq/groq/compound-mini` | 131K | | | | | | — | — |
|
|
42
|
+
| `groq/llama-3.1-8b-instant` | 131K | | | | | | $0.05 | $0.08 |
|
|
43
|
+
| `groq/llama-3.3-70b-versatile` | 131K | | | | | | $0.59 | $0.79 |
|
|
44
|
+
| `groq/meta-llama/llama-prompt-guard-2-22m` | 512 | | | | | | $0.03 | $0.03 |
|
|
45
|
+
| `groq/meta-llama/llama-prompt-guard-2-86m` | 512 | | | | | | $0.04 | $0.04 |
|
|
46
|
+
| `groq/openai/gpt-oss-120b` | 131K | | | | | | $0.15 | $0.60 |
|
|
47
|
+
| `groq/openai/gpt-oss-20b` | 131K | | | | | | $0.07 | $0.30 |
|
|
48
|
+
| `groq/openai/gpt-oss-safeguard-20b` | 131K | | | | | | $0.07 | $0.30 |
|
|
49
|
+
| `groq/qwen/qwen3.6-27b` | 131K | | | | | | $0.60 | $3 |
|
|
50
|
+
| `groq/whisper-large-v3` | — | | | | | | — | — |
|
|
51
|
+
| `groq/whisper-large-v3-turbo` | — | | | | | | — | — |
|
|
52
52
|
|
|
53
53
|
## Advanced configuration
|
|
54
54
|
|
|
@@ -60,7 +60,7 @@ const agent = new Agent({
|
|
|
60
60
|
name: "custom-agent",
|
|
61
61
|
model: {
|
|
62
62
|
url: "https://api.groq.com/openai/v1",
|
|
63
|
-
id: "groq/
|
|
63
|
+
id: "groq/allam-2-7b",
|
|
64
64
|
apiKey: process.env.GROQ_API_KEY,
|
|
65
65
|
headers: {
|
|
66
66
|
"X-Custom-Header": "value"
|
|
@@ -79,7 +79,7 @@ const agent = new Agent({
|
|
|
79
79
|
const useAdvanced = requestContext.task === "complex";
|
|
80
80
|
return useAdvanced
|
|
81
81
|
? "groq/whisper-large-v3-turbo"
|
|
82
|
-
: "groq/
|
|
82
|
+
: "groq/allam-2-7b";
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
85
|
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Hugging Face
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 57 Hugging Face models through Mastra's model router. Authentication is handled automatically using the `HF_TOKEN` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Hugging Face documentation](https://huggingface.co).
|
|
8
8
|
|
|
@@ -40,6 +40,7 @@ for await (const chunk of stream) {
|
|
|
40
40
|
| `huggingface/deepseek-ai/DeepSeek-R1-0528` | 164K | | | | | | $3 | $5 |
|
|
41
41
|
| `huggingface/deepseek-ai/DeepSeek-V3.2` | 164K | | | | | | $0.28 | $0.40 |
|
|
42
42
|
| `huggingface/deepseek-ai/DeepSeek-V4-Flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
43
|
+
| `huggingface/deepseek-ai/DeepSeek-V4-Flash-0731` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
43
44
|
| `huggingface/deepseek-ai/DeepSeek-V4-Pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
44
45
|
| `huggingface/google/gemma-4-26B-A4B-it` | 262K | | | | | | $0.13 | $0.40 |
|
|
45
46
|
| `huggingface/google/gemma-4-31B-it` | 262K | | | | | | $0.14 | $0.40 |
|
|
@@ -79,6 +80,7 @@ for await (const chunk of stream) {
|
|
|
79
80
|
| `huggingface/stepfun-ai/Step-3.7-Flash` | 262K | | | | | | $0.20 | $1 |
|
|
80
81
|
| `huggingface/tencent/Hy3` | 262K | | | | | | $0.14 | $0.58 |
|
|
81
82
|
| `huggingface/thinkingmachines/Inkling` | 1.0M | | | | | | $1 | $4 |
|
|
83
|
+
| `huggingface/thinkingmachines/Inkling-Small` | 524K | | | | | | $0.50 | $1 |
|
|
82
84
|
| `huggingface/XiaomiMiMo/MiMo-V2-Flash` | 262K | | | | | | $0.10 | $0.30 |
|
|
83
85
|
| `huggingface/XiaomiMiMo/MiMo-V2.5` | 262K | | | | | | $0.40 | $2 |
|
|
84
86
|
| `huggingface/XiaomiMiMo/MiMo-V2.5-Pro` | 1.0M | | | | | | $1 | $3 |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Charm Hyper
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 25 Charm Hyper models through Mastra's model router. Authentication is handled automatically using the `HYPER_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Charm Hyper documentation](https://hyper.charm.land).
|
|
8
8
|
|
|
@@ -37,19 +37,20 @@ for await (const chunk of stream) {
|
|
|
37
37
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
38
|
| ---------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
39
|
| `hyper/deepseek-v4-flash` | 1.0M | | | | | | $0.20 | $0.40 |
|
|
40
|
+
| `hyper/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.15 | $0.30 |
|
|
40
41
|
| `hyper/deepseek-v4-pro` | 1.0M | | | | | | $2 | $5 |
|
|
41
|
-
| `hyper/gemma-4-26b-a4b-it` | 256K | | | | | | $0.
|
|
42
|
-
| `hyper/glm-5` | 203K | | | | | | $0.
|
|
42
|
+
| `hyper/gemma-4-26b-a4b-it` | 256K | | | | | | $0.13 | $0.42 |
|
|
43
|
+
| `hyper/glm-5` | 203K | | | | | | $0.85 | $3 |
|
|
43
44
|
| `hyper/glm-5.1` | 203K | | | | | | $2 | $5 |
|
|
44
45
|
| `hyper/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
45
|
-
| `hyper/gpt-oss-120b` | 131K | | | | | | $0.
|
|
46
|
-
| `hyper/kimi-k2.5` | 262K | | | | | | $0.
|
|
46
|
+
| `hyper/gpt-oss-120b` | 131K | | | | | | $0.19 | $0.70 |
|
|
47
|
+
| `hyper/kimi-k2.5` | 262K | | | | | | $0.54 | $3 |
|
|
47
48
|
| `hyper/kimi-k2.6` | 262K | | | | | | $0.95 | $4 |
|
|
48
49
|
| `hyper/kimi-k2.7-code` | 256K | | | | | | $0.95 | $4 |
|
|
49
50
|
| `hyper/kimi-k3` | 1.0M | | | | | | $3 | $16 |
|
|
50
51
|
| `hyper/llama-3.3-70b-instruct` | 128K | | | | | | $0.51 | $1 |
|
|
51
52
|
| `hyper/llama-4-maverick-17b-128e-instruct-fp8` | 430K | | | | | | $0.28 | $0.93 |
|
|
52
|
-
| `hyper/minimax-m2.7` |
|
|
53
|
+
| `hyper/minimax-m2.7` | 262K | | | | | | $0.42 | $2 |
|
|
53
54
|
| `hyper/minimax-m3` | 512K | | | | | | $0.33 | $1 |
|
|
54
55
|
| `hyper/qwen3-coder-480b-a35b-instruct-int4-mixed-ar` | 106K | | | | | | $0.57 | $2 |
|
|
55
56
|
| `hyper/qwen3-next-80b-a3b-instruct` | 262K | | | | | | $0.12 | $1 |
|
|
@@ -59,6 +60,7 @@ for await (const chunk of stream) {
|
|
|
59
60
|
| `hyper/qwen3.7-flash` | 1.0M | | | | | | $0.20 | $0.80 |
|
|
60
61
|
| `hyper/qwen3.7-max` | 1.0M | | | | | | $3 | $8 |
|
|
61
62
|
| `hyper/qwen3.7-plus` | 1.0M | | | | | | $1 | $5 |
|
|
63
|
+
| `hyper/qwen3.8-max` | 1.0M | | | | | | $2 | $6 |
|
|
62
64
|
|
|
63
65
|
## Advanced configuration
|
|
64
66
|
|
|
@@ -88,7 +90,7 @@ const agent = new Agent({
|
|
|
88
90
|
model: ({ requestContext }) => {
|
|
89
91
|
const useAdvanced = requestContext.task === "complex";
|
|
90
92
|
return useAdvanced
|
|
91
|
-
? "hyper/qwen3.
|
|
93
|
+
? "hyper/qwen3.8-max"
|
|
92
94
|
: "hyper/deepseek-v4-flash";
|
|
93
95
|
}
|
|
94
96
|
});
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# Impossibl
|
|
4
|
+
|
|
5
|
+
Access 76 Impossibl models through Mastra's model router. Authentication is handled automatically using the `IMPOSSIBL_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [Impossibl documentation](https://impossibl.com/docs/models).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
IMPOSSIBL_API_KEY=your-api-key
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Agent } from "@mastra/core/agent";
|
|
15
|
+
|
|
16
|
+
const agent = new Agent({
|
|
17
|
+
id: "my-agent",
|
|
18
|
+
name: "My Agent",
|
|
19
|
+
instructions: "You are a helpful assistant",
|
|
20
|
+
model: "impossibl/anthropic/claude-fable-5"
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// Generate a response
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
|
+
|
|
26
|
+
// Stream a response
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
|
+
for await (const chunk of stream) {
|
|
29
|
+
console.log(chunk);
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [Impossibl documentation](https://impossibl.com/docs/models) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| -------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `impossibl/anthropic/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
|
|
40
|
+
| `impossibl/anthropic/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
41
|
+
| `impossibl/anthropic/claude-opus-4-5` | 200K | | | | | | $5 | $25 |
|
|
42
|
+
| `impossibl/anthropic/claude-opus-4-6` | 1.0M | | | | | | $5 | $25 |
|
|
43
|
+
| `impossibl/anthropic/claude-opus-4-7` | 1.0M | | | | | | $5 | $25 |
|
|
44
|
+
| `impossibl/anthropic/claude-opus-4-8` | 1.0M | | | | | | $5 | $25 |
|
|
45
|
+
| `impossibl/anthropic/claude-sonnet-4-5` | 200K | | | | | | $3 | $15 |
|
|
46
|
+
| `impossibl/anthropic/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
47
|
+
| `impossibl/anthropic/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
|
|
48
|
+
| `impossibl/cerebras/gpt-oss-120b` | 131K | | | | | | $0.35 | $0.75 |
|
|
49
|
+
| `impossibl/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.19 | $0.51 |
|
|
50
|
+
| `impossibl/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $2 | $3 |
|
|
51
|
+
| `impossibl/fireworks/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
52
|
+
| `impossibl/fireworks/gpt-oss-120b` | 131K | | | | | | $0.15 | $0.60 |
|
|
53
|
+
| `impossibl/fireworks/gpt-oss-20b` | 131K | | | | | | $0.07 | $0.30 |
|
|
54
|
+
| `impossibl/google/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $3 |
|
|
55
|
+
| `impossibl/google/gemini-2.5-flash-lite` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
56
|
+
| `impossibl/google/gemini-2.5-pro` | 1.0M | | | | | | $1 | $10 |
|
|
57
|
+
| `impossibl/google/gemini-3.1-flash-lite` | 1.0M | | | | | | $0.25 | $2 |
|
|
58
|
+
| `impossibl/google/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
|
|
59
|
+
| `impossibl/google/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
|
|
60
|
+
| `impossibl/google/gemini-3.5-flash-lite` | 1.0M | | | | | | $0.30 | $3 |
|
|
61
|
+
| `impossibl/google/gemini-3.6-flash` | 1.0M | | | | | | $2 | $8 |
|
|
62
|
+
| `impossibl/groq/gpt-oss-120b` | 131K | | | | | | $0.15 | $0.60 |
|
|
63
|
+
| `impossibl/groq/gpt-oss-20b` | 131K | | | | | | $0.07 | $0.30 |
|
|
64
|
+
| `impossibl/moonshotai/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
65
|
+
| `impossibl/openai/gpt-3.5-turbo` | 16K | | | | | | $0.50 | $2 |
|
|
66
|
+
| `impossibl/openai/gpt-4-turbo` | 128K | | | | | | $10 | $30 |
|
|
67
|
+
| `impossibl/openai/gpt-4.1` | 1.0M | | | | | | $2 | $8 |
|
|
68
|
+
| `impossibl/openai/gpt-4.1-mini` | 1.0M | | | | | | $0.40 | $2 |
|
|
69
|
+
| `impossibl/openai/gpt-4.1-nano` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
70
|
+
| `impossibl/openai/gpt-4o` | 128K | | | | | | $3 | $10 |
|
|
71
|
+
| `impossibl/openai/gpt-4o-mini` | 128K | | | | | | $0.15 | $0.60 |
|
|
72
|
+
| `impossibl/openai/gpt-5` | 400K | | | | | | $1 | $10 |
|
|
73
|
+
| `impossibl/openai/gpt-5-codex` | 400K | | | | | | $1 | $10 |
|
|
74
|
+
| `impossibl/openai/gpt-5-mini` | 400K | | | | | | $0.25 | $2 |
|
|
75
|
+
| `impossibl/openai/gpt-5-nano` | 400K | | | | | | $0.05 | $0.40 |
|
|
76
|
+
| `impossibl/openai/gpt-5-pro` | 400K | | | | | | $15 | $120 |
|
|
77
|
+
| `impossibl/openai/gpt-5.1` | 400K | | | | | | $1 | $10 |
|
|
78
|
+
| `impossibl/openai/gpt-5.1-codex` | 400K | | | | | | $1 | $10 |
|
|
79
|
+
| `impossibl/openai/gpt-5.1-codex-mini` | 400K | | | | | | $0.25 | $2 |
|
|
80
|
+
| `impossibl/openai/gpt-5.2` | 400K | | | | | | $2 | $14 |
|
|
81
|
+
| `impossibl/openai/gpt-5.2-codex` | 400K | | | | | | $2 | $14 |
|
|
82
|
+
| `impossibl/openai/gpt-5.3-codex` | 400K | | | | | | $2 | $14 |
|
|
83
|
+
| `impossibl/openai/gpt-5.4` | 1.1M | | | | | | $3 | $15 |
|
|
84
|
+
| `impossibl/openai/gpt-5.4-mini` | 400K | | | | | | $0.75 | $5 |
|
|
85
|
+
| `impossibl/openai/gpt-5.4-nano` | 400K | | | | | | $0.20 | $1 |
|
|
86
|
+
| `impossibl/openai/gpt-5.4-pro` | 1.1M | | | | | | $30 | $180 |
|
|
87
|
+
| `impossibl/openai/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
88
|
+
| `impossibl/openai/gpt-5.5-pro` | 1.1M | | | | | | $30 | $180 |
|
|
89
|
+
| `impossibl/openai/gpt-5.6-luna` | 1.1M | | | | | | $0.20 | $1 |
|
|
90
|
+
| `impossibl/openai/gpt-5.6-sol` | 1.1M | | | | | | $5 | $30 |
|
|
91
|
+
| `impossibl/openai/gpt-5.6-terra` | 1.1M | | | | | | $2 | $12 |
|
|
92
|
+
| `impossibl/openai/o1` | 200K | | | | | | $15 | $60 |
|
|
93
|
+
| `impossibl/openai/o3` | 200K | | | | | | $2 | $8 |
|
|
94
|
+
| `impossibl/openai/o3-mini` | 200K | | | | | | $1 | $4 |
|
|
95
|
+
| `impossibl/openai/o4-mini` | 200K | | | | | | $1 | $4 |
|
|
96
|
+
| `impossibl/qwen/qwen3.6-flash` | 1.0M | | | | | | $0.25 | $2 |
|
|
97
|
+
| `impossibl/qwen/qwen3.7-max` | 1.0M | | | | | | $3 | $8 |
|
|
98
|
+
| `impossibl/qwen/qwen3.7-plus` | 1.0M | | | | | | $0.40 | $2 |
|
|
99
|
+
| `impossibl/qwen/qwen3.8-max-preview` | 1.0M | | | | | | $3 | $8 |
|
|
100
|
+
| `impossibl/thinkingmachines/inkling` | 66K | | | | | | $2 | $5 |
|
|
101
|
+
| `impossibl/xai/grok-4.20-0309-non-reasoning` | 1.0M | | | | | | $1 | $3 |
|
|
102
|
+
| `impossibl/xai/grok-4.20-0309-reasoning` | 1.0M | | | | | | $1 | $3 |
|
|
103
|
+
| `impossibl/xai/grok-4.3` | 1.0M | | | | | | $1 | $3 |
|
|
104
|
+
| `impossibl/xai/grok-4.5` | 500K | | | | | | $2 | $6 |
|
|
105
|
+
| `impossibl/xai/grok-build-0.1` | 256K | | | | | | $1 | $2 |
|
|
106
|
+
| `impossibl/xiaomi/mimo-v2.5` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
107
|
+
| `impossibl/zai/glm-4.5` | 131K | | | | | | $0.60 | $2 |
|
|
108
|
+
| `impossibl/zai/glm-4.5-air` | 131K | | | | | | $0.20 | $1 |
|
|
109
|
+
| `impossibl/zai/glm-4.6` | 205K | | | | | | $0.60 | $2 |
|
|
110
|
+
| `impossibl/zai/glm-4.7` | 205K | | | | | | $0.60 | $2 |
|
|
111
|
+
| `impossibl/zai/glm-5` | 205K | | | | | | $1 | $3 |
|
|
112
|
+
| `impossibl/zai/glm-5-turbo` | 200K | | | | | | $1 | $4 |
|
|
113
|
+
| `impossibl/zai/glm-5.1` | 200K | | | | | | $1 | $4 |
|
|
114
|
+
| `impossibl/zai/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
115
|
+
|
|
116
|
+
## Advanced configuration
|
|
117
|
+
|
|
118
|
+
### Custom headers
|
|
119
|
+
|
|
120
|
+
```typescript
|
|
121
|
+
const agent = new Agent({
|
|
122
|
+
id: "custom-agent",
|
|
123
|
+
name: "custom-agent",
|
|
124
|
+
model: {
|
|
125
|
+
url: "https://api.impossibl.com/v1",
|
|
126
|
+
id: "impossibl/anthropic/claude-fable-5",
|
|
127
|
+
apiKey: process.env.IMPOSSIBL_API_KEY,
|
|
128
|
+
headers: {
|
|
129
|
+
"X-Custom-Header": "value"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### Dynamic model selection
|
|
136
|
+
|
|
137
|
+
```typescript
|
|
138
|
+
const agent = new Agent({
|
|
139
|
+
id: "dynamic-agent",
|
|
140
|
+
name: "Dynamic Agent",
|
|
141
|
+
model: ({ requestContext }) => {
|
|
142
|
+
const useAdvanced = requestContext.task === "complex";
|
|
143
|
+
return useAdvanced
|
|
144
|
+
? "impossibl/zai/glm-5.2"
|
|
145
|
+
: "impossibl/anthropic/claude-fable-5";
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
```
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# Infomaniak
|
|
4
|
+
|
|
5
|
+
Access 10 Infomaniak models through Mastra's model router. Authentication is handled automatically using the `INFOMANIAK_API_KEY` environment variable. Configure `INFOMANIAK_PRODUCT_ID` as well.
|
|
6
|
+
|
|
7
|
+
Learn more in the [Infomaniak documentation](https://www.infomaniak.com/en/hosting/ai-services/open-source-models).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
INFOMANIAK_PRODUCT_ID=your-value
|
|
11
|
+
INFOMANIAK_API_KEY=your-api-key
|
|
12
|
+
```
|
|
13
|
+
|
|
14
|
+
```typescript
|
|
15
|
+
import { Agent } from "@mastra/core/agent";
|
|
16
|
+
|
|
17
|
+
const agent = new Agent({
|
|
18
|
+
id: "my-agent",
|
|
19
|
+
name: "My Agent",
|
|
20
|
+
instructions: "You are a helpful assistant",
|
|
21
|
+
model: "infomaniak/Qwen/Qwen3.5-122B-A10B-FP8"
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
// Generate a response
|
|
25
|
+
const response = await agent.generate("Hello!");
|
|
26
|
+
|
|
27
|
+
// Stream a response
|
|
28
|
+
const stream = await agent.stream("Tell me a story");
|
|
29
|
+
for await (const chunk of stream) {
|
|
30
|
+
console.log(chunk);
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [Infomaniak documentation](https://www.infomaniak.com/en/hosting/ai-services/open-source-models) for details.
|
|
35
|
+
|
|
36
|
+
## Models
|
|
37
|
+
|
|
38
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
39
|
+
| ------------------------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
40
|
+
| `infomaniak/bge_multilingual_gemma2` | 8K | | | | | | $0.08 | — |
|
|
41
|
+
| `infomaniak/google/gemma-4-31B-it` | 100K | | | | | | $0.25 | $0.50 |
|
|
42
|
+
| `infomaniak/mini_lm_l12_v2` | 128 | | | | | | — | — |
|
|
43
|
+
| `infomaniak/mistralai/Ministral-3-14B-Instruct-2512` | 100K | | | | | | $0.37 | $0.50 |
|
|
44
|
+
| `infomaniak/mistralai/Mistral-Small-4-119B-2603` | 256K | | | | | | $0.25 | $0.93 |
|
|
45
|
+
| `infomaniak/moonshotai/Kimi-K2.6` | 256K | | | | | | $0.74 | $4 |
|
|
46
|
+
| `infomaniak/nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-FP8` | 1.0M | | | | | | $0.06 | $0.25 |
|
|
47
|
+
| `infomaniak/Qwen/Qwen3.5-122B-A10B-FP8` | 200K | | | | | | $0.50 | $4 |
|
|
48
|
+
| `infomaniak/Qwen/Qwen3.5-397B-A17B-FP8` | 200K | | | | | | $0.99 | $4 |
|
|
49
|
+
| `infomaniak/swiss-ai/Apertus-v1.5-70B` | 100K | | | | | | $0.87 | $3 |
|
|
50
|
+
|
|
51
|
+
## Advanced configuration
|
|
52
|
+
|
|
53
|
+
### Custom headers
|
|
54
|
+
|
|
55
|
+
```typescript
|
|
56
|
+
const agent = new Agent({
|
|
57
|
+
id: "custom-agent",
|
|
58
|
+
name: "custom-agent",
|
|
59
|
+
model: {
|
|
60
|
+
url: "https://api.infomaniak.com/2/ai/${INFOMANIAK_PRODUCT_ID}/openai/v1",
|
|
61
|
+
id: "infomaniak/Qwen/Qwen3.5-122B-A10B-FP8",
|
|
62
|
+
apiKey: process.env.INFOMANIAK_API_KEY,
|
|
63
|
+
headers: {
|
|
64
|
+
"X-Custom-Header": "value"
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### Dynamic model selection
|
|
71
|
+
|
|
72
|
+
```typescript
|
|
73
|
+
const agent = new Agent({
|
|
74
|
+
id: "dynamic-agent",
|
|
75
|
+
name: "Dynamic Agent",
|
|
76
|
+
model: ({ requestContext }) => {
|
|
77
|
+
const useAdvanced = requestContext.task === "complex";
|
|
78
|
+
return useAdvanced
|
|
79
|
+
? "infomaniak/swiss-ai/Apertus-v1.5-70B"
|
|
80
|
+
: "infomaniak/Qwen/Qwen3.5-122B-A10B-FP8";
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
```
|