@mastra/mcp-docs-server 1.3.9-alpha.4 → 1.3.9-alpha.7
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/human-in-the-loop.md +2 -1
- package/.docs/docs/harness/agent-controller.md +1 -1
- package/.docs/docs/harness/durable-agents.md +17 -5
- package/.docs/docs/harness/signals.md +3 -1
- package/.docs/docs/memory/observational-memory.md +4 -2
- package/.docs/docs/studio/overview.md +8 -0
- package/.docs/docs/workflows/control-flow.md +3 -1
- package/.docs/docs/workflows/overview.md +2 -0
- package/.docs/docs/workflows/time-travel.md +1 -1
- package/.docs/integrations/voice/google.md +6 -0
- package/.docs/models/gateways/merge-gateway.md +3 -1
- package/.docs/models/gateways/netlify.md +7 -4
- package/.docs/models/gateways/openrouter.md +7 -4
- package/.docs/models/gateways/vercel.md +7 -1
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/alibaba-token-plan-cn.md +31 -30
- package/.docs/models/providers/baseten.md +27 -25
- package/.docs/models/providers/cloudflare-workers-ai.md +2 -1
- package/.docs/models/providers/coralbricks.md +5 -8
- package/.docs/models/providers/cortecs.md +4 -4
- package/.docs/models/providers/deepinfra.md +2 -1
- package/.docs/models/providers/edenai.md +12 -6
- package/.docs/models/providers/empiriolabs.md +3 -1
- package/.docs/models/providers/engy.md +12 -11
- package/.docs/models/providers/fireworks-ai.md +2 -1
- package/.docs/models/providers/huggingface.md +2 -1
- package/.docs/models/providers/hyper.md +26 -25
- package/.docs/models/providers/kilo.md +23 -20
- package/.docs/models/providers/llmgateway-providers.md +9 -5
- package/.docs/models/providers/llmgateway.md +3 -1
- package/.docs/models/providers/minimax-cn-coding-plan.md +2 -1
- package/.docs/models/providers/minimax-cn.md +3 -2
- package/.docs/models/providers/minimax-coding-plan.md +2 -1
- package/.docs/models/providers/minimax.md +3 -2
- package/.docs/models/providers/nano-gpt.md +52 -55
- package/.docs/models/providers/nearai.md +1 -1
- package/.docs/models/providers/nebius.md +2 -1
- package/.docs/models/providers/novita-ai.md +2 -1
- package/.docs/models/providers/nvidia.md +2 -1
- package/.docs/models/providers/ofox.md +2 -1
- package/.docs/models/providers/ollama-cloud.md +31 -29
- package/.docs/models/providers/opencode-go.md +2 -2
- package/.docs/models/providers/opencode.md +87 -89
- package/.docs/models/providers/prime.md +3 -1
- package/.docs/models/providers/requesty.md +4 -1
- package/.docs/models/providers/standardcompute.md +47 -8
- package/.docs/models/providers/togetherai.md +4 -1
- package/.docs/models/providers/upstage.md +8 -7
- package/.docs/models/providers/wandb.md +3 -2
- package/.docs/models/providers/zenmux.md +2 -1
- package/.docs/reference/agents/channels.md +5 -1
- package/.docs/reference/agents/durable-agent.md +11 -6
- package/.docs/reference/classifier/classifier.md +29 -5
- package/.docs/reference/client-js/agent-controller.md +2 -0
- package/.docs/reference/client-js/observability.md +117 -0
- package/.docs/reference/core/mastra-class.md +7 -1
- package/.docs/reference/evals/create-classifier-scorer.md +1 -0
- package/.docs/reference/memory/observational-memory.md +2 -2
- package/.docs/reference/observability/tracing/trace-query.md +39 -10
- package/.docs/reference/processors/classifier-processor.md +8 -6
- package/.docs/reference/processors/model-selection-processor.md +2 -2
- package/.docs/reference/processors/moderation-processor.md +5 -1
- package/.docs/reference/processors/system-prompt-scrubber.md +4 -0
- package/.docs/reference/signals/create-notification-inbox-tool.md +11 -9
- package/.docs/reference/tools/create-tool.md +2 -2
- package/.docs/reference/tools/mcp-client.md +2 -2
- package/.docs/reference/workflows/dynamic-workflow-definition.md +1 -1
- package/.docs/reference/workflows/run-methods/resume.md +1 -1
- package/.docs/reference/workflows/run-methods/timeTravel.md +15 -16
- package/.docs/reference/workflows/step.md +1 -0
- package/.docs/reference/workflows/workflow-methods/classifier.md +1 -0
- package/.docs/reference/workspace/factory-sandbox.md +2 -0
- package/package.json +8 -9
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Ollama Cloud
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 28 Ollama Cloud models through Mastra's model router. Authentication is handled automatically using the `OLLAMA_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Ollama Cloud documentation](https://docs.ollama.com/cloud).
|
|
10
10
|
|
|
@@ -36,34 +36,36 @@ for await (const chunk of stream) {
|
|
|
36
36
|
|
|
37
37
|
## Models
|
|
38
38
|
|
|
39
|
-
| Model
|
|
40
|
-
|
|
|
41
|
-
| `ollama-cloud/deepseek-v4-flash`
|
|
42
|
-
| `ollama-cloud/deepseek-v4-flash:0731`
|
|
43
|
-
| `ollama-cloud/deepseek-v4-pro`
|
|
44
|
-
| `ollama-cloud/deepseek-v4-pro:0813`
|
|
45
|
-
| `ollama-cloud/deepseek-v4.1-flash`
|
|
46
|
-
| `ollama-cloud/
|
|
47
|
-
| `ollama-cloud/
|
|
48
|
-
| `ollama-cloud/glm-5.
|
|
49
|
-
| `ollama-cloud/glm-5.
|
|
50
|
-
| `ollama-cloud/glm-5.3
|
|
51
|
-
| `ollama-cloud/
|
|
52
|
-
| `ollama-cloud/gpt-oss:
|
|
53
|
-
| `ollama-cloud/
|
|
54
|
-
| `ollama-cloud/kimi-k2.
|
|
55
|
-
| `ollama-cloud/kimi-k2.
|
|
56
|
-
| `ollama-cloud/kimi-
|
|
57
|
-
| `ollama-cloud/
|
|
58
|
-
| `ollama-cloud/minimax-m2.
|
|
59
|
-
| `ollama-cloud/minimax-
|
|
60
|
-
| `ollama-cloud/
|
|
61
|
-
| `ollama-cloud/
|
|
62
|
-
| `ollama-cloud/
|
|
63
|
-
| `ollama-cloud/
|
|
64
|
-
| `ollama-cloud/
|
|
65
|
-
| `ollama-cloud/nemotron-3-
|
|
66
|
-
| `ollama-cloud/
|
|
39
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
40
|
+
| --------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
41
|
+
| `ollama-cloud/deepseek-v4-flash` | 1.0M | | | | | | $0.22 | $0.66 |
|
|
42
|
+
| `ollama-cloud/deepseek-v4-flash:0731` | 1.0M | | | | | | $0.22 | $0.66 |
|
|
43
|
+
| `ollama-cloud/deepseek-v4-pro` | 1.0M | | | | | | $0.66 | $2 |
|
|
44
|
+
| `ollama-cloud/deepseek-v4-pro:0813` | 1.0M | | | | | | $0.66 | $2 |
|
|
45
|
+
| `ollama-cloud/deepseek-v4.1-flash` | 1.0M | | | | | | $0.15 | $0.60 |
|
|
46
|
+
| `ollama-cloud/deepseek-v4.1-flash:1017` | 1.0M | | | | | | $0.15 | $0.60 |
|
|
47
|
+
| `ollama-cloud/gemma4:31b` | 262K | | | | | | $0.14 | $0.40 |
|
|
48
|
+
| `ollama-cloud/glm-5.1` | 203K | | | | | | $1 | $3 |
|
|
49
|
+
| `ollama-cloud/glm-5.2` | 976K | | | | | | $1 | $4 |
|
|
50
|
+
| `ollama-cloud/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
51
|
+
| `ollama-cloud/glm-5.3-flash` | 1.0M | | | | | | $0.15 | $0.50 |
|
|
52
|
+
| `ollama-cloud/gpt-oss:120b` | 131K | | | | | | $0.15 | $0.60 |
|
|
53
|
+
| `ollama-cloud/gpt-oss:20b` | 131K | | | | | | $0.07 | $0.30 |
|
|
54
|
+
| `ollama-cloud/kimi-k2.5` | 262K | | | | | | — | — |
|
|
55
|
+
| `ollama-cloud/kimi-k2.6` | 262K | | | | | | $0.95 | $4 |
|
|
56
|
+
| `ollama-cloud/kimi-k2.7-code` | 262K | | | | | | $0.95 | $4 |
|
|
57
|
+
| `ollama-cloud/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
58
|
+
| `ollama-cloud/minimax-m2.5` | 205K | | | | | | — | — |
|
|
59
|
+
| `ollama-cloud/minimax-m2.7` | 197K | | | | | | $0.30 | $1 |
|
|
60
|
+
| `ollama-cloud/minimax-m3` | 512K | | | | | | $0.60 | $2 |
|
|
61
|
+
| `ollama-cloud/minimax-m3.1-flash` | 1.0M | | | | | | $0.15 | $0.60 |
|
|
62
|
+
| `ollama-cloud/mistral-large-3:675b` | 262K | | | | | | $0.50 | $2 |
|
|
63
|
+
| `ollama-cloud/mistral-large-4` | 1.0M | | | | | | $1 | $4 |
|
|
64
|
+
| `ollama-cloud/muse-spark-open` | 1.0M | | | | | | $1 | $4 |
|
|
65
|
+
| `ollama-cloud/nemotron-3-nano:30b` | 1.0M | | | | | | $0.06 | $0.24 |
|
|
66
|
+
| `ollama-cloud/nemotron-3-super` | 262K | | | | | | $0.01 | $0.60 |
|
|
67
|
+
| `ollama-cloud/nemotron-3-ultra` | 262K | | | | | | $0.10 | $3 |
|
|
68
|
+
| `ollama-cloud/qwen3.5:397b` | 262K | | | | | | $0.60 | $4 |
|
|
67
69
|
|
|
68
70
|
Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
|
|
69
71
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# OpenCode Go
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 33 OpenCode Go models through Mastra's model router. Authentication is handled automatically using the `OPENCODE_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [OpenCode Go documentation](https://opencode.ai/v2/docs/console/go/).
|
|
10
10
|
|
|
@@ -60,12 +60,12 @@ for await (const chunk of stream) {
|
|
|
60
60
|
| `opencode-go/mimo-v2.6-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
61
61
|
| `opencode-go/mimo-v2.6-pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
62
62
|
| `opencode-go/minimax-m3` | 1.0M | | | | | | $0.30 | $1 |
|
|
63
|
+
| `opencode-go/minimax-m3.1-flash-free` | 1.0M | | | | | | — | — |
|
|
63
64
|
| `opencode-go/muse-spark-1.2-contributor` | 1.0M | | | | | | $0.10 | $0.20 |
|
|
64
65
|
| `opencode-go/muse-spark-1.3-contributor` | 1.0M | | | | | | $0.10 | $0.20 |
|
|
65
66
|
| `opencode-go/qwen3.7-plus` | 1.0M | | | | | | $0.40 | $2 |
|
|
66
67
|
| `opencode-go/qwen3.8-flash` | 1.0M | | | | | | $0.15 | $0.47 |
|
|
67
68
|
| `opencode-go/qwen3.8-max` | 1.0M | | | | | | $2 | $6 |
|
|
68
|
-
| `opencode-go/space-bunny` | 1.0M | | | | | | $0.15 | $0.60 |
|
|
69
69
|
| `opencode-go/step-5-preview` | 1.0M | | | | | | $1 | $3 |
|
|
70
70
|
|
|
71
71
|
Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# OpenCode
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 128 OpenCode models through Mastra's model router. Authentication is handled automatically using the `OPENCODE_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [OpenCode documentation](https://opencode.ai/v2/docs/console/models/).
|
|
10
10
|
|
|
@@ -36,94 +36,92 @@ for await (const chunk of stream) {
|
|
|
36
36
|
|
|
37
37
|
## Models
|
|
38
38
|
|
|
39
|
-
| Model
|
|
40
|
-
|
|
|
41
|
-
| `opencode/beam-free`
|
|
42
|
-
| `opencode/big-pickle`
|
|
43
|
-
| `opencode/claude-fable-5`
|
|
44
|
-
| `opencode/claude-fable-5-1`
|
|
45
|
-
| `opencode/claude-haiku-4-5`
|
|
46
|
-
| `opencode/claude-haiku-5-5`
|
|
47
|
-
| `opencode/claude-opus-4-5`
|
|
48
|
-
| `opencode/claude-opus-4-6`
|
|
49
|
-
| `opencode/claude-opus-4-7`
|
|
50
|
-
| `opencode/claude-opus-4-8`
|
|
51
|
-
| `opencode/claude-opus-5`
|
|
52
|
-
| `opencode/claude-opus-5-5`
|
|
53
|
-
| `opencode/claude-sonnet-4`
|
|
54
|
-
| `opencode/claude-sonnet-4-5`
|
|
55
|
-
| `opencode/claude-sonnet-4-6`
|
|
56
|
-
| `opencode/claude-sonnet-5`
|
|
57
|
-
| `opencode/claude-sonnet-5-5`
|
|
58
|
-
| `opencode/deepseek-v4-flash`
|
|
59
|
-
| `opencode/deepseek-v4-flash-vision-exp`
|
|
60
|
-
| `opencode/deepseek-v4-pro`
|
|
61
|
-
| `opencode/deepseek-v4.1-flash`
|
|
62
|
-
| `opencode/deepseek-v4.1-flash-free`
|
|
63
|
-
| `opencode/gemini-3-flash`
|
|
64
|
-
| `opencode/gemini-3.1-pro`
|
|
65
|
-
| `opencode/gemini-3.5-flash`
|
|
66
|
-
| `opencode/gemini-3.5-flash-lite`
|
|
67
|
-
| `opencode/gemini-3.6-flash`
|
|
68
|
-
| `opencode/gemini-3.7-flash`
|
|
69
|
-
| `opencode/gemini-3.8-flash`
|
|
70
|
-
| `opencode/gemini-4-argon`
|
|
71
|
-
| `opencode/glm-5`
|
|
72
|
-
| `opencode/glm-5.1`
|
|
73
|
-
| `opencode/glm-5.2`
|
|
74
|
-
| `opencode/glm-5.3`
|
|
75
|
-
| `opencode/glm-5.3-flash`
|
|
76
|
-
| `opencode/glm-5.3-flash-free`
|
|
77
|
-
| `opencode/gpt-5`
|
|
78
|
-
| `opencode/gpt-5-codex`
|
|
79
|
-
| `opencode/gpt-5-nano`
|
|
80
|
-
| `opencode/gpt-5.1`
|
|
81
|
-
| `opencode/gpt-5.1-codex`
|
|
82
|
-
| `opencode/gpt-5.1-codex-max`
|
|
83
|
-
| `opencode/gpt-5.1-codex-mini`
|
|
84
|
-
| `opencode/gpt-5.2`
|
|
85
|
-
| `opencode/gpt-5.2-codex`
|
|
86
|
-
| `opencode/gpt-5.3-codex`
|
|
87
|
-
| `opencode/gpt-5.3-codex-spark`
|
|
88
|
-
| `opencode/gpt-5.4`
|
|
89
|
-
| `opencode/gpt-5.4-mini`
|
|
90
|
-
| `opencode/gpt-5.4-nano`
|
|
91
|
-
| `opencode/gpt-5.4-pro`
|
|
92
|
-
| `opencode/gpt-5.5`
|
|
93
|
-
| `opencode/gpt-5.5-pro`
|
|
94
|
-
| `opencode/gpt-5.6-luna`
|
|
95
|
-
| `opencode/gpt-5.6-sol`
|
|
96
|
-
| `opencode/gpt-5.6-terra`
|
|
97
|
-
| `opencode/gpt-6-astra`
|
|
98
|
-
| `opencode/gpt-6-luna`
|
|
99
|
-
| `opencode/gpt-6-sol`
|
|
100
|
-
| `opencode/gpt-6.1-sol`
|
|
101
|
-
| `opencode/grok-4.5`
|
|
102
|
-
| `opencode/grok-4.6`
|
|
103
|
-
| `opencode/grok-4.7`
|
|
104
|
-
| `opencode/grok-build-0.1`
|
|
105
|
-
| `opencode/kimi-k2.5`
|
|
106
|
-
| `opencode/kimi-k2.6`
|
|
107
|
-
| `opencode/kimi-k2.7-code`
|
|
108
|
-
| `opencode/kimi-k3`
|
|
109
|
-
| `opencode/
|
|
110
|
-
| `opencode/
|
|
111
|
-
| `opencode/
|
|
112
|
-
| `opencode/minimax-m2.
|
|
113
|
-
| `opencode/minimax-
|
|
114
|
-
| `opencode/minimax-m3`
|
|
115
|
-
| `opencode/mistral-large-4`
|
|
116
|
-
| `opencode/muse-spark-1.2`
|
|
117
|
-
| `opencode/muse-spark-1.3`
|
|
118
|
-
| `opencode/
|
|
119
|
-
| `opencode/nemotron-3-
|
|
120
|
-
| `opencode/nemotron-3.5-
|
|
121
|
-
| `opencode/
|
|
122
|
-
| `opencode/qwen3.
|
|
123
|
-
| `opencode/qwen3.
|
|
124
|
-
| `opencode/qwen3.8-
|
|
125
|
-
| `opencode/qwen3.8-max` | 262K | | | | | | $2 | $6 |
|
|
126
|
-
| `opencode/space-bunny-free` | 1.0M | | | | | | — | — |
|
|
39
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
40
|
+
| --------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
41
|
+
| `opencode/beam-free` | 1.0M | | | | | | — | — |
|
|
42
|
+
| `opencode/big-pickle` | 200K | | | | | | — | — |
|
|
43
|
+
| `opencode/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
|
|
44
|
+
| `opencode/claude-fable-5-1` | 1.0M | | | | | | $10 | $50 |
|
|
45
|
+
| `opencode/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
46
|
+
| `opencode/claude-haiku-5-5` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
47
|
+
| `opencode/claude-opus-4-5` | 200K | | | | | | $5 | $25 |
|
|
48
|
+
| `opencode/claude-opus-4-6` | 1.0M | | | | | | $5 | $25 |
|
|
49
|
+
| `opencode/claude-opus-4-7` | 1.0M | | | | | | $5 | $25 |
|
|
50
|
+
| `opencode/claude-opus-4-8` | 1.0M | | | | | | $5 | $25 |
|
|
51
|
+
| `opencode/claude-opus-5` | 1.0M | | | | | | $5 | $25 |
|
|
52
|
+
| `opencode/claude-opus-5-5` | 1.0M | | | | | | $4 | $20 |
|
|
53
|
+
| `opencode/claude-sonnet-4` | 1.0M | | | | | | $3 | $15 |
|
|
54
|
+
| `opencode/claude-sonnet-4-5` | 1.0M | | | | | | $3 | $15 |
|
|
55
|
+
| `opencode/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
56
|
+
| `opencode/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
|
|
57
|
+
| `opencode/claude-sonnet-5-5` | 1.0M | | | | | | $2 | $10 |
|
|
58
|
+
| `opencode/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
59
|
+
| `opencode/deepseek-v4-flash-vision-exp` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
60
|
+
| `opencode/deepseek-v4-pro` | 1.0M | | | | | | $2 | $4 |
|
|
61
|
+
| `opencode/deepseek-v4.1-flash` | 1.0M | | | | | | $0.30 | $1 |
|
|
62
|
+
| `opencode/deepseek-v4.1-flash-free` | 200K | | | | | | — | — |
|
|
63
|
+
| `opencode/gemini-3-flash` | 1.0M | | | | | | $0.50 | $3 |
|
|
64
|
+
| `opencode/gemini-3.1-pro` | 1.0M | | | | | | $2 | $12 |
|
|
65
|
+
| `opencode/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
|
|
66
|
+
| `opencode/gemini-3.5-flash-lite` | 1.0M | | | | | | $0.30 | $3 |
|
|
67
|
+
| `opencode/gemini-3.6-flash` | 1.0M | | | | | | $2 | $8 |
|
|
68
|
+
| `opencode/gemini-3.7-flash` | 1.0M | | | | | | $2 | $8 |
|
|
69
|
+
| `opencode/gemini-3.8-flash` | 1.0M | | | | | | $2 | $8 |
|
|
70
|
+
| `opencode/gemini-4-argon` | 1.0M | | | | | | $2 | $10 |
|
|
71
|
+
| `opencode/glm-5` | 205K | | | | | | $1 | $3 |
|
|
72
|
+
| `opencode/glm-5.1` | 205K | | | | | | $1 | $4 |
|
|
73
|
+
| `opencode/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
74
|
+
| `opencode/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
75
|
+
| `opencode/glm-5.3-flash` | 1.0M | | | | | | $0.15 | $0.50 |
|
|
76
|
+
| `opencode/glm-5.3-flash-free` | 200K | | | | | | — | — |
|
|
77
|
+
| `opencode/gpt-5` | 400K | | | | | | $1 | $9 |
|
|
78
|
+
| `opencode/gpt-5-codex` | 400K | | | | | | $1 | $9 |
|
|
79
|
+
| `opencode/gpt-5-nano` | 400K | | | | | | $0.05 | $0.40 |
|
|
80
|
+
| `opencode/gpt-5.1` | 400K | | | | | | $1 | $9 |
|
|
81
|
+
| `opencode/gpt-5.1-codex` | 400K | | | | | | $1 | $9 |
|
|
82
|
+
| `opencode/gpt-5.1-codex-max` | 400K | | | | | | $1 | $10 |
|
|
83
|
+
| `opencode/gpt-5.1-codex-mini` | 400K | | | | | | $0.25 | $2 |
|
|
84
|
+
| `opencode/gpt-5.2` | 400K | | | | | | $2 | $14 |
|
|
85
|
+
| `opencode/gpt-5.2-codex` | 400K | | | | | | $2 | $14 |
|
|
86
|
+
| `opencode/gpt-5.3-codex` | 400K | | | | | | $2 | $14 |
|
|
87
|
+
| `opencode/gpt-5.3-codex-spark` | 128K | | | | | | $2 | $14 |
|
|
88
|
+
| `opencode/gpt-5.4` | 1.1M | | | | | | $3 | $15 |
|
|
89
|
+
| `opencode/gpt-5.4-mini` | 400K | | | | | | $0.75 | $5 |
|
|
90
|
+
| `opencode/gpt-5.4-nano` | 400K | | | | | | $0.20 | $1 |
|
|
91
|
+
| `opencode/gpt-5.4-pro` | 1.1M | | | | | | $30 | $180 |
|
|
92
|
+
| `opencode/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
93
|
+
| `opencode/gpt-5.5-pro` | 1.1M | | | | | | $30 | $180 |
|
|
94
|
+
| `opencode/gpt-5.6-luna` | 1.1M | | | | | | $0.20 | $1 |
|
|
95
|
+
| `opencode/gpt-5.6-sol` | 1.1M | | | | | | $4 | $20 |
|
|
96
|
+
| `opencode/gpt-5.6-terra` | 1.1M | | | | | | $3 | $15 |
|
|
97
|
+
| `opencode/gpt-6-astra` | 1.1M | | | | | | $10 | $50 |
|
|
98
|
+
| `opencode/gpt-6-luna` | 1.1M | | | | | | $0.10 | $0.50 |
|
|
99
|
+
| `opencode/gpt-6-sol` | 1.1M | | | | | | $2 | $10 |
|
|
100
|
+
| `opencode/gpt-6.1-sol` | 1.1M | | | | | | $2 | $10 |
|
|
101
|
+
| `opencode/grok-4.5` | 500K | | | | | | $2 | $6 |
|
|
102
|
+
| `opencode/grok-4.6` | 500K | | | | | | $2 | $6 |
|
|
103
|
+
| `opencode/grok-4.7` | 500K | | | | | | $2 | $6 |
|
|
104
|
+
| `opencode/grok-build-0.1` | 256K | | | | | | $1 | $2 |
|
|
105
|
+
| `opencode/kimi-k2.5` | 262K | | | | | | $0.60 | $3 |
|
|
106
|
+
| `opencode/kimi-k2.6` | 262K | | | | | | $0.95 | $4 |
|
|
107
|
+
| `opencode/kimi-k2.7-code` | 262K | | | | | | $0.95 | $4 |
|
|
108
|
+
| `opencode/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
109
|
+
| `opencode/longcat-2.5-preview-free` | 1.0M | | | | | | — | — |
|
|
110
|
+
| `opencode/mimo-v2.6-flash-free` | 200K | | | | | | — | — |
|
|
111
|
+
| `opencode/minimax-m2.5` | 205K | | | | | | $0.30 | $1 |
|
|
112
|
+
| `opencode/minimax-m2.7` | 205K | | | | | | $0.30 | $1 |
|
|
113
|
+
| `opencode/minimax-m3` | 512K | | | | | | $0.30 | $1 |
|
|
114
|
+
| `opencode/minimax-m3.1-flash-free` | 1.0M | | | | | | — | — |
|
|
115
|
+
| `opencode/mistral-large-4` | 524K | | | | | | $0.68 | $2 |
|
|
116
|
+
| `opencode/muse-spark-1.2` | 1.0M | | | | | | $1 | $4 |
|
|
117
|
+
| `opencode/muse-spark-1.3` | 1.0M | | | | | | $1 | $4 |
|
|
118
|
+
| `opencode/nemotron-3-ultra-free` | 1.0M | | | | | | — | — |
|
|
119
|
+
| `opencode/nemotron-3.5-lightning-free` | 262K | | | | | | — | — |
|
|
120
|
+
| `opencode/nemotron-3.5-super-vl-free` | 1.0M | | | | | | — | — |
|
|
121
|
+
| `opencode/qwen3.5-plus` | 262K | | | | | | $0.20 | $1 |
|
|
122
|
+
| `opencode/qwen3.6-plus` | 262K | | | | | | $0.50 | $3 |
|
|
123
|
+
| `opencode/qwen3.8-flash` | 1.0M | | | | | | $0.15 | $0.47 |
|
|
124
|
+
| `opencode/qwen3.8-max` | 262K | | | | | | $2 | $6 |
|
|
127
125
|
|
|
128
126
|
Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
|
|
129
127
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Prime Inference
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 68 Prime Inference models through Mastra's model router. Authentication is handled automatically using the `PRIME_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Prime Inference documentation](https://docs.primeintellect.ai).
|
|
10
10
|
|
|
@@ -52,6 +52,7 @@ for await (const chunk of stream) {
|
|
|
52
52
|
| `prime/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.44 | $1 |
|
|
53
53
|
| `prime/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $2 | $4 |
|
|
54
54
|
| `prime/deepseek/deepseek-v4.1-flash` | 1.0M | | | | | | $0.30 | $1 |
|
|
55
|
+
| `prime/deepseek/deepseek-v4.1-flash-1017` | 1.0M | | | | | | $0.30 | $1 |
|
|
55
56
|
| `prime/google/gemini-3-flash-preview` | 1.0M | | | | | | $0.50 | $3 |
|
|
56
57
|
| `prime/google/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
|
|
57
58
|
| `prime/google/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
|
|
@@ -99,6 +100,7 @@ for await (const chunk of stream) {
|
|
|
99
100
|
| `prime/qwen/qwen3-coder-next` | 262K | | | | | | $0.30 | $2 |
|
|
100
101
|
| `prime/qwen/qwen3-vl-235b-a22b-instruct` | 262K | | | | | | $0.30 | $2 |
|
|
101
102
|
| `prime/qwen/qwen3-vl-30b-a3b-instruct` | 262K | | | | | | $0.20 | $0.70 |
|
|
103
|
+
| `prime/qwen/qwen3.8-27b` | 1.0M | | | | | | $0.99 | $3 |
|
|
102
104
|
| `prime/x-ai/grok-4.6` | 500K | | | | | | $2 | $6 |
|
|
103
105
|
| `prime/x-ai/grok-4.7` | 500K | | | | | | $2 | $5 |
|
|
104
106
|
| `prime/z-ai/glm-5.2` | 1.0M | | | | | | $2 | $5 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Requesty
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 180 Requesty models through Mastra's model router. Authentication is handled automatically using the `REQUESTY_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Requesty documentation](https://requesty.ai/solution/llm-routing/models).
|
|
10
10
|
|
|
@@ -76,6 +76,8 @@ for await (const chunk of stream) {
|
|
|
76
76
|
| `requesty/deepseek-v4-pro-0813@eu` | 1.0M | | | | | | $2 | $4 |
|
|
77
77
|
| `requesty/deepseek-v4-pro@eu` | 1.0M | | | | | | $2 | $4 |
|
|
78
78
|
| `requesty/deepseek-v4.1-flash` | 1.0M | | | | | | $0.50 | $2 |
|
|
79
|
+
| `requesty/deepseek-v4.1-flash-1017` | 1.0M | | | | | | $0.50 | $2 |
|
|
80
|
+
| `requesty/deepseek-v4.1-flash-1017@eu` | 1.0M | | | | | | $0.50 | $2 |
|
|
79
81
|
| `requesty/deepseek-v4.1-flash@eu` | 1.0M | | | | | | $0.50 | $2 |
|
|
80
82
|
| `requesty/devstral-latest` | 256K | | | | | | $0.44 | $2 |
|
|
81
83
|
| `requesty/devstral-latest@eu` | 256K | | | | | | $0.44 | $2 |
|
|
@@ -171,6 +173,7 @@ for await (const chunk of stream) {
|
|
|
171
173
|
| `requesty/minimax-m2.7` | 200K | | | | | | $0.30 | $1 |
|
|
172
174
|
| `requesty/minimax-m2.7-highspeed` | 200K | | | | | | $0.60 | $2 |
|
|
173
175
|
| `requesty/minimax-m3` | 1.0M | | | | | | $0.30 | $1 |
|
|
176
|
+
| `requesty/minimax-m3.1-flash` | 1.0M | | | | | | $0.15 | $0.60 |
|
|
174
177
|
| `requesty/minimax-m3@eu` | 1.0M | | | | | | $0.40 | $2 |
|
|
175
178
|
| `requesty/mistral-large-4` | 524K | | | | | | $0.68 | $2 |
|
|
176
179
|
| `requesty/mistral-large-4@eu` | 524K | | | | | | $0.68 | $2 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Standard Compute
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 40 Standard Compute models through Mastra's model router. Authentication is handled automatically using the `STANDARDCOMPUTE_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Standard Compute documentation](https://docs.standardcompute.com/models).
|
|
10
10
|
|
|
@@ -19,7 +19,7 @@ const agent = new Agent({
|
|
|
19
19
|
id: "my-agent",
|
|
20
20
|
name: "My Agent",
|
|
21
21
|
instructions: "You are a helpful assistant",
|
|
22
|
-
model: "standardcompute/
|
|
22
|
+
model: "standardcompute/anthropic/claude-fable-5"
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
// Generate a response
|
|
@@ -36,9 +36,48 @@ for await (const chunk of stream) {
|
|
|
36
36
|
|
|
37
37
|
## Models
|
|
38
38
|
|
|
39
|
-
| Model
|
|
40
|
-
|
|
|
41
|
-
| `standardcompute/
|
|
39
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
40
|
+
| ------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
41
|
+
| `standardcompute/anthropic/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
|
|
42
|
+
| `standardcompute/anthropic/claude-fable-5.1` | 1.0M | | | | | | $10 | $50 |
|
|
43
|
+
| `standardcompute/anthropic/claude-haiku-5.5` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
44
|
+
| `standardcompute/anthropic/claude-opus-5` | 1.0M | | | | | | $5 | $25 |
|
|
45
|
+
| `standardcompute/anthropic/claude-opus-5.5` | 1.0M | | | | | | $4 | $20 |
|
|
46
|
+
| `standardcompute/anthropic/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
|
|
47
|
+
| `standardcompute/anthropic/claude-sonnet-5.5` | 1.0M | | | | | | $2 | $10 |
|
|
48
|
+
| `standardcompute/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.08 | $0.17 |
|
|
49
|
+
| `standardcompute/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.44 | $1 |
|
|
50
|
+
| `standardcompute/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $1 | $2 |
|
|
51
|
+
| `standardcompute/deepseek/deepseek-v4-pro-0813` | 1.0M | | | | | | $1 | $3 |
|
|
52
|
+
| `standardcompute/deepseek/deepseek-v4.1-flash` | 1.0M | | | | | | $0.14 | $0.42 |
|
|
53
|
+
| `standardcompute/google/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $3 |
|
|
54
|
+
| `standardcompute/google/gemini-2.5-pro` | 1.0M | | | | | | $1 | $10 |
|
|
55
|
+
| `standardcompute/google/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
|
|
56
|
+
| `standardcompute/google/gemini-3.5-flash-lite` | 1.0M | | | | | | $0.30 | $3 |
|
|
57
|
+
| `standardcompute/google/gemini-3.8-flash` | 1.0M | | | | | | $0.75 | $4 |
|
|
58
|
+
| `standardcompute/minimax/minimax-m3` | 1.0M | | | | | | $0.30 | $1 |
|
|
59
|
+
| `standardcompute/mistralai/mistral-large-4-0` | 1.0M | | | | | | $0.68 | $2 |
|
|
60
|
+
| `standardcompute/moonshotai/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
61
|
+
| `standardcompute/openai/gpt-5.6-luna` | 1.1M | | | | | | $0.20 | $1 |
|
|
62
|
+
| `standardcompute/openai/gpt-5.6-sol` | 1.1M | | | | | | $4 | $20 |
|
|
63
|
+
| `standardcompute/openai/gpt-5.6-terra` | 1.1M | | | | | | $2 | $12 |
|
|
64
|
+
| `standardcompute/openai/gpt-6-astra` | 1.1M | | | | | | $10 | $50 |
|
|
65
|
+
| `standardcompute/openai/gpt-6-luna` | 1.1M | | | | | | $0.10 | $0.50 |
|
|
66
|
+
| `standardcompute/qwen/qwen3.7-flash` | 1.0M | | | | | | $0.03 | $0.13 |
|
|
67
|
+
| `standardcompute/qwen/qwen3.7-max` | 1.0M | | | | | | $1 | $4 |
|
|
68
|
+
| `standardcompute/qwen/qwen3.7-plus` | 1.0M | | | | | | $0.32 | $1 |
|
|
69
|
+
| `standardcompute/qwen/qwen3.8-27b` | 262K | | | | | | $0.42 | $3 |
|
|
70
|
+
| `standardcompute/qwen/qwen3.8-flash` | 1.0M | | | | | | $0.15 | $0.47 |
|
|
71
|
+
| `standardcompute/qwen/qwen3.8-max-0902` | 1.0M | | | | | | $2 | $6 |
|
|
72
|
+
| `standardcompute/standardcompute` | 1.0M | | | | | | — | — |
|
|
73
|
+
| `standardcompute/x-ai/grok-4.3` | 1.0M | | | | | | $1 | $3 |
|
|
74
|
+
| `standardcompute/xiaomi/mimo-v2.5` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
75
|
+
| `standardcompute/xiaomi/mimo-v2.5-pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
76
|
+
| `standardcompute/xiaomi/mimo-v2.6-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
77
|
+
| `standardcompute/xiaomi/mimo-v2.6-pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
78
|
+
| `standardcompute/z-ai/glm-5.2` | 1.0M | | | | | | $0.56 | $2 |
|
|
79
|
+
| `standardcompute/z-ai/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
80
|
+
| `standardcompute/z-ai/glm-5.3-flash` | 1.0M | | | | | | $0.08 | $0.50 |
|
|
42
81
|
|
|
43
82
|
Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
|
|
44
83
|
|
|
@@ -52,7 +91,7 @@ const agent = new Agent({
|
|
|
52
91
|
name: "custom-agent",
|
|
53
92
|
model: {
|
|
54
93
|
url: "https://api.stdcmpt.com/v1",
|
|
55
|
-
id: "standardcompute/
|
|
94
|
+
id: "standardcompute/anthropic/claude-fable-5",
|
|
56
95
|
apiKey: process.env.STANDARDCOMPUTE_API_KEY,
|
|
57
96
|
headers: {
|
|
58
97
|
"X-Custom-Header": "value"
|
|
@@ -70,8 +109,8 @@ const agent = new Agent({
|
|
|
70
109
|
model: ({ requestContext }) => {
|
|
71
110
|
const useAdvanced = requestContext.task === "complex";
|
|
72
111
|
return useAdvanced
|
|
73
|
-
? "standardcompute/
|
|
74
|
-
: "standardcompute/
|
|
112
|
+
? "standardcompute/z-ai/glm-5.3-flash"
|
|
113
|
+
: "standardcompute/anthropic/claude-fable-5";
|
|
75
114
|
}
|
|
76
115
|
});
|
|
77
116
|
```
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Together AI
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 32 Together AI models through Mastra's model router. Authentication is handled automatically using the `TOGETHER_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Together AI documentation](https://docs.together.ai/docs/serverless-models).
|
|
10
10
|
|
|
@@ -41,15 +41,18 @@ for await (const chunk of stream) {
|
|
|
41
41
|
| `togetherai/deepseek-ai/DeepSeek-V4.1-Flash` | 1.0M | | | | | | $0.30 | $1 |
|
|
42
42
|
| `togetherai/LiquidAI/LFM2-24B-A2B` | 33K | | | | | | $0.03 | $0.12 |
|
|
43
43
|
| `togetherai/meta-llama/Llama-3.3-70B-Instruct-Turbo` | 131K | | | | | | $1 | $1 |
|
|
44
|
+
| `togetherai/meta-models/Muse-Spark-Open-816B-A42B` | 1.0M | | | | | | $1 | $4 |
|
|
44
45
|
| `togetherai/MiniMaxAI/MiniMax-M2.7` | 197K | | | | | | $0.30 | $1 |
|
|
45
46
|
| `togetherai/MiniMaxAI/MiniMax-M3` | 524K | | | | | | $0.30 | $1 |
|
|
46
47
|
| `togetherai/moonshotai/Kimi-K3` | 1.0M | | | | | | $3 | $15 |
|
|
47
48
|
| `togetherai/nvidia/nemotron-3-ultra-550b-a55b` | 512K | | | | | | $0.60 | $4 |
|
|
49
|
+
| `togetherai/nvidia/NVIDIA-Nemotron-3.5-Super-VL` | 262K | | | | | | $0.15 | $0.50 |
|
|
48
50
|
| `togetherai/openai/gpt-oss-120b` | 131K | | | | | | $0.15 | $0.60 |
|
|
49
51
|
| `togetherai/Qwen/Qwen2.5-7B-Instruct-Turbo` | 33K | | | | | | $0.30 | $0.30 |
|
|
50
52
|
| `togetherai/Qwen/Qwen3.5-9B` | 262K | | | | | | $0.17 | $0.25 |
|
|
51
53
|
| `togetherai/Qwen/Qwen3.6-Plus` | 1.0M | | | | | | $0.50 | $3 |
|
|
52
54
|
| `togetherai/Qwen/Qwen3.7-Max` | 1.0M | | | | | | $1 | $4 |
|
|
55
|
+
| `togetherai/reflection/Beam-1.0-501B-A23B` | 1.0M | | | | | | $0.40 | $1 |
|
|
53
56
|
| `togetherai/thinkingmachines/Inkling` | 524K | | | | | | $1 | $4 |
|
|
54
57
|
| `togetherai/zai-org/GLM-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
55
58
|
| `togetherai/zai-org/GLM-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Upstage
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 5 Upstage models through Mastra's model router. Authentication is handled automatically using the `UPSTAGE_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Upstage documentation](https://developers.upstage.ai).
|
|
10
10
|
|
|
@@ -36,12 +36,13 @@ for await (const chunk of stream) {
|
|
|
36
36
|
|
|
37
37
|
## Models
|
|
38
38
|
|
|
39
|
-
| Model
|
|
40
|
-
|
|
|
41
|
-
| `upstage/solar-mini`
|
|
42
|
-
| `upstage/solar-
|
|
43
|
-
| `upstage/solar-
|
|
44
|
-
| `upstage/solar-
|
|
39
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
40
|
+
| --------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
41
|
+
| `upstage/solar-mini` | 33K | | | | | | $0.15 | $0.15 |
|
|
42
|
+
| `upstage/solar-mini4` | 524K | | | | | | $0.10 | $0.40 |
|
|
43
|
+
| `upstage/solar-pro2` | 66K | | | | | | $0.25 | $0.25 |
|
|
44
|
+
| `upstage/solar-pro3` | 131K | | | | | | $0.25 | $0.25 |
|
|
45
|
+
| `upstage/solar-pro4` | 524K | | | | | | $0.30 | $1 |
|
|
45
46
|
|
|
46
47
|
Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
|
|
47
48
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# CoreWeave
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 23 CoreWeave models through Mastra's model router. Authentication is handled automatically using the `WANDB_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [CoreWeave documentation](https://docs.wandb.ai).
|
|
10
10
|
|
|
@@ -52,11 +52,12 @@ for await (const chunk of stream) {
|
|
|
52
52
|
| `wandb/moonshotai/Kimi-K2.7-Code` | 262K | | | | | | $0.71 | $4 |
|
|
53
53
|
| `wandb/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B` | 262K | | | | | | $0.50 | $2 |
|
|
54
54
|
| `wandb/nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B` | 262K | | | | | | $0.07 | $0.20 |
|
|
55
|
-
| `wandb/nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B` | 1.0M | | | | | | $0.15 | $0.
|
|
55
|
+
| `wandb/nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B` | 1.0M | | | | | | $0.15 | $0.50 |
|
|
56
56
|
| `wandb/openai/gpt-oss-120b` | 131K | | | | | | $0.03 | $0.17 |
|
|
57
57
|
| `wandb/openai/gpt-oss-20b` | 131K | | | | | | $0.03 | $0.13 |
|
|
58
58
|
| `wandb/Qwen/Qwen3.6-35B-A3B` | 262K | | | | | | $0.25 | $1 |
|
|
59
59
|
| `wandb/Qwen/Qwen3.8-27B` | 262K | | | | | | $0.40 | $3 |
|
|
60
|
+
| `wandb/reflection/Beam-1.0-501B-A23B` | 1.0M | | | | | | $1 | $3 |
|
|
60
61
|
| `wandb/zai-org/GLM-5.2` | 1.0M | | | | | | $0.62 | $2 |
|
|
61
62
|
| `wandb/zai-org/GLM-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
62
63
|
| `wandb/zai-org/GLM-5.3-Flash` | 1.0M | | | | | | $0.15 | $0.50 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# ZenMux
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 130 ZenMux models through Mastra's model router. Authentication is handled automatically using the `ZENMUX_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [ZenMux documentation](https://docs.zenmux.ai).
|
|
10
10
|
|
|
@@ -76,6 +76,7 @@ for await (const chunk of stream) {
|
|
|
76
76
|
| `zenmux/minimax/minimax-m2.7` | 205K | | | | | | $0.31 | $1 |
|
|
77
77
|
| `zenmux/minimax/minimax-m2.7-highspeed` | 205K | | | | | | $0.61 | $2 |
|
|
78
78
|
| `zenmux/minimax/minimax-m3` | 1.0M | | | | | | $0.60 | $2 |
|
|
79
|
+
| `zenmux/minimax/minimax-m3.1-flash` | 1.0M | | | | | | $0.15 | $0.60 |
|
|
79
80
|
| `zenmux/moonshotai/kimi-k2.5` | 262K | | | | | | $0.58 | $3 |
|
|
80
81
|
| `zenmux/moonshotai/kimi-k2.6` | 262K | | | | | | $0.95 | $4 |
|
|
81
82
|
| `zenmux/moonshotai/kimi-k2.7-code` | 262K | | | | | | $0.95 | $4 |
|
|
@@ -120,7 +120,7 @@ const agent = new Agent({
|
|
|
120
120
|
|
|
121
121
|
Pass a function to `toolDisplay` for fully custom rendering. The function receives a `ToolDisplayEvent` (`running` / `result` / `error` / `approval` / `approved` / `denied`) and a `ToolDisplayContext` (`{ mode, platform }`); return `{ kind: 'post', message }` for a discrete post/edit, `{ kind: 'stream', chunk }` to push into the active streaming widget, or `undefined` to skip rendering that event.
|
|
122
122
|
|
|
123
|
-
After a user clicks Approve or Deny, Mastra sends an `approved` or `denied` event
|
|
123
|
+
After a user clicks Approve or Deny, Mastra sends an `approved` or `denied` event. Both include `byUser`, the name of the user who clicked, which is undefined in DMs. A `post` result replaces the approval card in place. If the function returns nothing, a blank message, or throws, Mastra shows the default "Approved" or "Denied" card, which names the user outside DMs.
|
|
124
124
|
|
|
125
125
|
By default, a stream result opens a streaming session when none is active. Set `openIfEmpty: false` when the chunk only applies to an existing session. Mastra skips the chunk when no session is active. Static channels ignore this option and keep their existing plain-text fallback behavior.
|
|
126
126
|
|
|
@@ -312,6 +312,8 @@ The `ResolveResourceIdContext` passed to the function:
|
|
|
312
312
|
|
|
313
313
|
**defaultResourceId** (`string`): The built-in default (${platform}:${message.author.userId}). Return this to keep the current behavior.
|
|
314
314
|
|
|
315
|
+
**requestContext** (`RequestContext`): The per-message request context. Values a channel handler sets before calling defaultHandler (for example a tenant id) are readable here, so you don't need to look them up again.
|
|
316
|
+
|
|
315
317
|
## Thread ID resolution
|
|
316
318
|
|
|
317
319
|
By default a new channel thread gets a random UUID as its internal Mastra thread id. Pass `resolveThreadId` to pick the id yourself: for example, give the thread the same id as its session to match the names your app assigns to threads it creates.
|
|
@@ -354,6 +356,8 @@ The `ResolveThreadIdContext` passed to the function:
|
|
|
354
356
|
|
|
355
357
|
**defaultThreadId** (`string`): The built-in default (a random UUID). Return this to keep the current behavior.
|
|
356
358
|
|
|
359
|
+
**requestContext** (`RequestContext`): The per-message request context, the same instance passed to resolveResourceId.
|
|
360
|
+
|
|
357
361
|
## Inline media
|
|
358
362
|
|
|
359
363
|
Controls which attachment types (images, video, PDFs, etc.) are sent as file parts to the model. Types that don't match are described as text summaries so the agent knows about the file without crashing models that reject unsupported types.
|