@mastra/mcp-docs-server 1.3.13-alpha.5 → 1.3.13-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/resumable-streams.md +3 -3
- package/.docs/docs/agents/tools.md +1 -0
- package/.docs/docs/deployment/mastra-server.md +10 -2
- package/.docs/docs/deployment/workers.md +3 -1
- package/.docs/docs/harness/durable-agents.md +64 -2
- package/.docs/docs/memory/semantic-recall.md +24 -1
- package/.docs/docs/observability/integrations/exporters/mastra-storage.md +41 -0
- package/.docs/docs/sandbox/skills.md +32 -3
- package/.docs/docs/server/custom-adapters.md +40 -11
- package/.docs/docs/server/middleware.md +1 -1
- package/.docs/docs/workflows/overview.md +12 -0
- package/.docs/docs/workflows/suspend-and-resume.md +1 -1
- package/.docs/integrations/agentic-ui/ai-sdk-ui.md +46 -0
- package/.docs/models/gateways/merge-gateway.md +2 -1
- package/.docs/models/gateways/netlify.md +4 -2
- package/.docs/models/gateways/openrouter.md +5 -3
- package/.docs/models/gateways/vercel.md +4 -1
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/anthropic.md +2 -1
- package/.docs/models/providers/chutes.md +5 -4
- package/.docs/models/providers/cloudflare-workers-ai.md +0 -13
- package/.docs/models/providers/crossmodel.md +5 -1
- package/.docs/models/providers/deepinfra.md +2 -1
- package/.docs/models/providers/edenai.md +7 -8
- package/.docs/models/providers/google.md +2 -2
- package/.docs/models/providers/kilo.md +21 -19
- package/.docs/models/providers/llmgateway-providers.md +440 -433
- package/.docs/models/providers/llmgateway.md +5 -1
- package/.docs/models/providers/meta.md +5 -4
- package/.docs/models/providers/nano-gpt.md +34 -43
- package/.docs/models/providers/opencode-go.md +2 -2
- package/.docs/models/providers/opencode.md +8 -5
- package/.docs/models/providers/prime.md +4 -4
- package/.docs/models/providers/wandb.md +1 -1
- package/.docs/reference/agent-controller/session.md +1 -1
- package/.docs/reference/agents/channels.md +79 -0
- package/.docs/reference/agents/durable-agent.md +5 -3
- package/.docs/reference/ai-sdk/chat-route.md +33 -2
- package/.docs/reference/build-with-ai.md +12 -2
- package/.docs/reference/code-sdk/mount-agent-controller.md +5 -1
- package/.docs/reference/connect/credential.md +2 -1
- package/.docs/reference/core/mastra-class.md +1 -1
- package/.docs/reference/evals/create-scorer.md +3 -1
- package/.docs/reference/file-based-agents/tools.md +3 -3
- package/.docs/reference/index.md +1 -0
- package/.docs/reference/memory/memory-class.md +1 -1
- package/.docs/reference/observability/tracing/configuration.md +3 -0
- package/.docs/reference/observability/tracing/exporters/mastra-platform-exporter.md +33 -0
- package/.docs/reference/observability/tracing/exporters/mastra-storage-exporter.md +30 -0
- package/.docs/reference/observability/tracing/interfaces.md +2 -0
- package/.docs/reference/processors/processor-interface.md +1 -1
- package/.docs/reference/processors/semantic-recall-processor.md +5 -3
- package/.docs/reference/processors/skill-search-processor.md +3 -0
- package/.docs/reference/processors/skills-processor.md +84 -0
- package/.docs/reference/pubsub/lease-provider.md +4 -2
- package/.docs/reference/pubsub/redis-streams.md +1 -1
- package/.docs/reference/rag/graph-rag.md +1 -1
- package/.docs/reference/streaming/agents/MastraModelOutput.md +7 -8
- package/.docs/reference/workers/overview.md +2 -2
- package/.docs/reference/workflows/run-methods/resume.md +1 -1
- package/.docs/reference/workflows/run.md +1 -1
- package/.docs/reference/workspace/factory-sandbox.md +7 -7
- package/.docs/reference/workspace/platform-sandbox.md +21 -6
- package/.docs/reference/workspace/workspace-class.md +5 -5
- package/package.json +4 -5
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# DevPass (LLM Gateway)
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 203 DevPass (LLM Gateway) models through Mastra's model router. Authentication is handled automatically using the `LLMGATEWAY_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [DevPass (LLM Gateway) documentation](https://llmgateway.io/docs).
|
|
10
10
|
|
|
@@ -41,6 +41,7 @@ for await (const chunk of stream) {
|
|
|
41
41
|
| `llmgateway/auto` | 128K | | | | | | — | — |
|
|
42
42
|
| `llmgateway/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
|
|
43
43
|
| `llmgateway/claude-fable-5-1` | 1.0M | | | | | | $10 | $50 |
|
|
44
|
+
| `llmgateway/claude-fable-5-2` | 1.0M | | | | | | $8 | $40 |
|
|
44
45
|
| `llmgateway/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
45
46
|
| `llmgateway/claude-haiku-4-5-20251001` | 200K | | | | | | $1 | $5 |
|
|
46
47
|
| `llmgateway/claude-haiku-5-5` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
@@ -59,10 +60,12 @@ for await (const chunk of stream) {
|
|
|
59
60
|
| `llmgateway/custom` | 128K | | | | | | — | — |
|
|
60
61
|
| `llmgateway/deepseek-v3.2` | 164K | | | | | | $0.26 | $0.38 |
|
|
61
62
|
| `llmgateway/deepseek-v4-flash` | 1.1M | | | | | | $0.08 | $0.15 |
|
|
63
|
+
| `llmgateway/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.44 | $1 |
|
|
62
64
|
| `llmgateway/deepseek-v4-pro` | 1.1M | | | | | | $0.66 | $2 |
|
|
63
65
|
| `llmgateway/deepseek-v4.1-flash` | 1.1M | | | | | | $0.14 | $0.54 |
|
|
64
66
|
| `llmgateway/deepseek-v4.1-flash-1017` | 1.1M | | | | | | $0.14 | $0.54 |
|
|
65
67
|
| `llmgateway/deepseek-v4.1-flash-cyber` | 1.0M | | | | | | $0.30 | $1 |
|
|
68
|
+
| `llmgateway/deepseek-v4.1-flash-uncensored` | 1.0M | | | | | | $0.18 | $0.65 |
|
|
66
69
|
| `llmgateway/fugu-max` | 1.0M | | | | | | $2 | $6 |
|
|
67
70
|
| `llmgateway/fugu-ultra` | 1.0M | | | | | | $5 | $30 |
|
|
68
71
|
| `llmgateway/fugu-ultra-v2.0` | 1.0M | | | | | | $5 | $30 |
|
|
@@ -187,6 +190,7 @@ for await (const chunk of stream) {
|
|
|
187
190
|
| `llmgateway/mistral-medium-3-5` | 262K | | | | | | $2 | $8 |
|
|
188
191
|
| `llmgateway/mistral-small-2506` | 128K | | | | | | $0.10 | $0.30 |
|
|
189
192
|
| `llmgateway/mistral-small-2603` | 262K | | | | | | $0.15 | $0.60 |
|
|
193
|
+
| `llmgateway/muse-ember-1.0` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
190
194
|
| `llmgateway/muse-glimmer-30b` | 131K | | | | | | $0.30 | $1 |
|
|
191
195
|
| `llmgateway/muse-spark-1.1` | 1.0M | | | | | | $1 | $4 |
|
|
192
196
|
| `llmgateway/muse-spark-1.2` | 1.0M | | | | | | $1 | $4 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Meta
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 7 Meta models through Mastra's model router. Authentication is handled automatically using the `META_MODEL_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Meta documentation](https://dev.meta.ai/docs).
|
|
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: "meta/muse-
|
|
22
|
+
model: "meta/muse-ember-1.0"
|
|
23
23
|
});
|
|
24
24
|
|
|
25
25
|
// Generate a response
|
|
@@ -38,6 +38,7 @@ for await (const chunk of stream) {
|
|
|
38
38
|
|
|
39
39
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
40
40
|
| --------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
41
|
+
| `meta/muse-ember-1.0` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
41
42
|
| `meta/muse-spark-1.1` | 1.0M | | | | | | $1 | $4 |
|
|
42
43
|
| `meta/muse-spark-1.2` | 1.0M | | | | | | $1 | $4 |
|
|
43
44
|
| `meta/muse-spark-1.2-contributor` | 1.0M | | | | | | $0.10 | $0.20 |
|
|
@@ -59,7 +60,7 @@ const agent = new Agent({
|
|
|
59
60
|
name: "custom-agent",
|
|
60
61
|
model: {
|
|
61
62
|
url: "https://api.meta.ai/v1",
|
|
62
|
-
id: "meta/muse-
|
|
63
|
+
id: "meta/muse-ember-1.0",
|
|
63
64
|
apiKey: process.env.META_MODEL_API_KEY,
|
|
64
65
|
headers: {
|
|
65
66
|
"X-Custom-Header": "value"
|
|
@@ -80,7 +81,7 @@ const agent = new Agent({
|
|
|
80
81
|
const useAdvanced = requestContext.task === "complex";
|
|
81
82
|
return useAdvanced
|
|
82
83
|
? "meta/muse-wonder-1.0"
|
|
83
|
-
: "meta/muse-
|
|
84
|
+
: "meta/muse-ember-1.0";
|
|
84
85
|
}
|
|
85
86
|
});
|
|
86
87
|
```
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# NanoGPT
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 632 NanoGPT models through Mastra's model router. Authentication is handled automatically using the `NANO_GPT_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [NanoGPT documentation](https://docs.nano-gpt.com).
|
|
10
10
|
|
|
@@ -43,7 +43,6 @@ for await (const chunk of stream) {
|
|
|
43
43
|
| `nano-gpt/abliteration-ai/abliterated-model-large` | 1.0M | | | | | | $3 | $5 |
|
|
44
44
|
| `nano-gpt/abliteration-ai/abliterated-model-large-flash` | 1.0M | | | | | | $1 | $2 |
|
|
45
45
|
| `nano-gpt/abliteration-ai/abliterated-model-large-v2` | 1.0M | | | | | | $3 | $5 |
|
|
46
|
-
| `nano-gpt/agnes-3.0-flash` | 524K | | | | | | $0.05 | $0.15 |
|
|
47
46
|
| `nano-gpt/aion-labs/aion-2.0` | 131K | | | | | | $0.80 | $2 |
|
|
48
47
|
| `nano-gpt/aion-labs/aion-3.0` | 131K | | | | | | $3 | $6 |
|
|
49
48
|
| `nano-gpt/aion-labs/aion-3.0-mini` | 131K | | | | | | $0.70 | $1 |
|
|
@@ -60,6 +59,7 @@ for await (const chunk of stream) {
|
|
|
60
59
|
| `nano-gpt/anthracite-org/magnum-v4-72b` | 16K | | | | | | $2 | $3 |
|
|
61
60
|
| `nano-gpt/anthropic/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
|
|
62
61
|
| `nano-gpt/anthropic/claude-fable-5.1` | 1.0M | | | | | | $10 | $50 |
|
|
62
|
+
| `nano-gpt/anthropic/claude-fable-5.2` | 1.0M | | | | | | $10 | $50 |
|
|
63
63
|
| `nano-gpt/anthropic/claude-fable-latest` | 1.0M | | | | | | $10 | $50 |
|
|
64
64
|
| `nano-gpt/anthropic/claude-haiku-4.5` | 200K | | | | | | $1 | $5 |
|
|
65
65
|
| `nano-gpt/anthropic/claude-haiku-4.5:thinking` | 200K | | | | | | $1 | $5 |
|
|
@@ -94,7 +94,6 @@ for await (const chunk of stream) {
|
|
|
94
94
|
| `nano-gpt/anthropic/claude-sonnet-5.5:thinking` | 1.0M | | | | | | $2 | $10 |
|
|
95
95
|
| `nano-gpt/anthropic/claude-sonnet-latest` | 1.0M | | | | | | $2 | $10 |
|
|
96
96
|
| `nano-gpt/arcee-ai/trinity-large-thinking` | 262K | | | | | | $0.25 | $0.90 |
|
|
97
|
-
| `nano-gpt/asi1-mini` | 128K | | | | | | $1 | $1 |
|
|
98
97
|
| `nano-gpt/auto-model` | 1.0M | | | | | | — | — |
|
|
99
98
|
| `nano-gpt/auto-model-basic` | 1.0M | | | | | | $10 | $20 |
|
|
100
99
|
| `nano-gpt/auto-model-premium` | 1.0M | | | | | | $10 | $20 |
|
|
@@ -102,8 +101,6 @@ for await (const chunk of stream) {
|
|
|
102
101
|
| `nano-gpt/bytedance-seed/seed-2-1-turbo` | 262K | | | | | | $0.50 | $3 |
|
|
103
102
|
| `nano-gpt/bytedance-seed/seed-2.0-code` | 262K | | | | | | $0.50 | $3 |
|
|
104
103
|
| `nano-gpt/bytedance-seed/seed-2.0-lite` | 262K | | | | | | $0.25 | $2 |
|
|
105
|
-
| `nano-gpt/bytedance/doubao-seed-2.1-pro` | 256K | | | | | | $1 | $5 |
|
|
106
|
-
| `nano-gpt/bytedance/doubao-seed-2.1-turbo` | 256K | | | | | | $0.50 | $3 |
|
|
107
104
|
| `nano-gpt/bytedance/doubao-seed-character` | 128K | | | | | | $0.15 | $0.37 |
|
|
108
105
|
| `nano-gpt/celeris-1` | 8K | | | | | | $2 | $6 |
|
|
109
106
|
| `nano-gpt/claw-high` | 1.0M | | | | | | $0.60 | $1 |
|
|
@@ -128,8 +125,8 @@ for await (const chunk of stream) {
|
|
|
128
125
|
| `nano-gpt/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
129
126
|
| `nano-gpt/deepseek/deepseek-v4-flash-0423` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
130
127
|
| `nano-gpt/deepseek/deepseek-v4-flash-0423:thinking` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
131
|
-
| `nano-gpt/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.
|
|
132
|
-
| `nano-gpt/deepseek/deepseek-v4-flash-0731:thinking` | 1.0M | | | | | | $0.
|
|
128
|
+
| `nano-gpt/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.05 | $0.16 |
|
|
129
|
+
| `nano-gpt/deepseek/deepseek-v4-flash-0731:thinking` | 1.0M | | | | | | $0.05 | $0.16 |
|
|
133
130
|
| `nano-gpt/deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.10 | $0.60 |
|
|
134
131
|
| `nano-gpt/deepseek/deepseek-v4-flash-vision-exp` | 1.0M | | | | | | $0.22 | $0.65 |
|
|
135
132
|
| `nano-gpt/deepseek/deepseek-v4-flash:thinking` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
@@ -138,14 +135,8 @@ for await (const chunk of stream) {
|
|
|
138
135
|
| `nano-gpt/deepseek/deepseek-v4-pro-0813:thinking` | 1.0M | | | | | | $0.66 | $2 |
|
|
139
136
|
| `nano-gpt/deepseek/deepseek-v4-pro:thinking` | 1.0M | | | | | | $0.70 | $1 |
|
|
140
137
|
| `nano-gpt/deepseek/deepseek-v4.1-flash` | 1.0M | | | | | | $0.02 | $0.40 |
|
|
141
|
-
| `nano-gpt/deepseek/deepseek-v4.1-flash-0910-uncensored` | 524K | | | | | | $0.33 | $1 |
|
|
142
|
-
| `nano-gpt/deepseek/deepseek-v4.1-flash-0910-uncensored:thinking` | 524K | | | | | | $0.33 | $1 |
|
|
143
138
|
| `nano-gpt/deepseek/deepseek-v4.1-flash-1017` | 1.0M | | | | | | $0.10 | $0.60 |
|
|
144
|
-
| `nano-gpt/deepseek/deepseek-v4.1-flash-1017-uncensored` | 1.0M | | | | | | $0.33 | $1 |
|
|
145
|
-
| `nano-gpt/deepseek/deepseek-v4.1-flash-1017-uncensored:thinking` | 1.0M | | | | | | $0.33 | $1 |
|
|
146
139
|
| `nano-gpt/deepseek/deepseek-v4.1-flash-1017:thinking` | 1.0M | | | | | | $0.10 | $0.60 |
|
|
147
|
-
| `nano-gpt/deepseek/deepseek-v4.1-flash-uncensored` | 1.0M | | | | | | $0.33 | $1 |
|
|
148
|
-
| `nano-gpt/deepseek/deepseek-v4.1-flash-uncensored:thinking` | 1.0M | | | | | | $0.33 | $1 |
|
|
149
140
|
| `nano-gpt/deepseek/deepseek-v4.1-flash:thinking` | 1.0M | | | | | | $0.02 | $0.40 |
|
|
150
141
|
| `nano-gpt/Doctor-Shotgun/MS3.2-24B-Magnum-Diamond` | 33K | | | | | | $0.49 | $0.49 |
|
|
151
142
|
| `nano-gpt/doubao-seed-2-0-code-preview-260215` | 256K | | | | | | $0.78 | $4 |
|
|
@@ -155,9 +146,6 @@ for await (const chunk of stream) {
|
|
|
155
146
|
| `nano-gpt/elorian/glimpse` | 262K | | | | | | $0.63 | $3 |
|
|
156
147
|
| `nano-gpt/Envoid/Llama-3.05-Nemotron-Tenyxchat-Storybreaker-70B` | 16K | | | | | | $0.49 | $0.49 |
|
|
157
148
|
| `nano-gpt/Envoid/Llama-3.05-NT-Storybreaker-Ministral-70B` | 16K | | | | | | $0.49 | $0.49 |
|
|
158
|
-
| `nano-gpt/ernie-5.0-thinking-preview` | 128K | | | | | | $1 | $4 |
|
|
159
|
-
| `nano-gpt/ernie-5.1` | 119K | | | | | | $0.75 | $3 |
|
|
160
|
-
| `nano-gpt/ernie-5.1:thinking` | 119K | | | | | | $0.75 | $3 |
|
|
161
149
|
| `nano-gpt/EVA-UNIT-01/EVA-LLaMA-3.33-70B-v0.0` | 33K | | | | | | $2 | $2 |
|
|
162
150
|
| `nano-gpt/EVA-UNIT-01/EVA-LLaMA-3.33-70B-v0.1` | 33K | | | | | | $2 | $2 |
|
|
163
151
|
| `nano-gpt/EVA-UNIT-01/EVA-Qwen2.5-32B-v0.2` | 16K | | | | | | $0.80 | $0.80 |
|
|
@@ -224,7 +212,6 @@ for await (const chunk of stream) {
|
|
|
224
212
|
| `nano-gpt/Gemma-4-31B-Queen` | 262K | | | | | | $0.31 | $0.31 |
|
|
225
213
|
| `nano-gpt/Gemma-4-31B-SDFT-Heretic-RP` | 262K | | | | | | $0.31 | $0.31 |
|
|
226
214
|
| `nano-gpt/Gemma-4-31B-StyleTune` | 262K | | | | | | $0.31 | $0.31 |
|
|
227
|
-
| `nano-gpt/glm-4-long` | 1.0M | | | | | | $0.20 | $0.20 |
|
|
228
215
|
| `nano-gpt/GLM-4.6-Derestricted-v5` | 131K | | | | | | $0.40 | $2 |
|
|
229
216
|
| `nano-gpt/google/diffusiongemma` | 262K | | | | | | $0.05 | $0.15 |
|
|
230
217
|
| `nano-gpt/google/gemini-3-flash-preview` | 1.0M | | | | | | $0.50 | $3 |
|
|
@@ -244,9 +231,9 @@ for await (const chunk of stream) {
|
|
|
244
231
|
| `nano-gpt/google/gemini-flash-latest` | 1.0M | | | | | | $0.75 | $4 |
|
|
245
232
|
| `nano-gpt/google/gemini-flash-lite-latest` | 1.0M | | | | | | $0.30 | $3 |
|
|
246
233
|
| `nano-gpt/google/gemini-pro-latest` | 1.0M | | | | | | $2 | $12 |
|
|
247
|
-
| `nano-gpt/google/gemma-4-26b-a4b-it` | 262K | | | | | | $0.
|
|
234
|
+
| `nano-gpt/google/gemma-4-26b-a4b-it` | 262K | | | | | | $0.02 | $0.07 |
|
|
248
235
|
| `nano-gpt/google/gemma-4-26b-a4b-it-cybersecurity` | 262K | | | | | | $0.11 | $0.33 |
|
|
249
|
-
| `nano-gpt/google/gemma-4-26b-a4b-it:thinking` | 262K | | | | | | $0.
|
|
236
|
+
| `nano-gpt/google/gemma-4-26b-a4b-it:thinking` | 262K | | | | | | $0.02 | $0.07 |
|
|
250
237
|
| `nano-gpt/google/gemma-4-31b-it` | 262K | | | | | | $0.14 | $0.40 |
|
|
251
238
|
| `nano-gpt/google/gemma-4-31b-it:thinking` | 262K | | | | | | $0.10 | $0.34 |
|
|
252
239
|
| `nano-gpt/google/gemma4-31b-splituntied` | 262K | | | | | | $0.10 | $0.30 |
|
|
@@ -293,7 +280,7 @@ for await (const chunk of stream) {
|
|
|
293
280
|
| `nano-gpt/meta-llama/llama-3.1-8b-instruct` | 131K | | | | | | $0.02 | $0.04 |
|
|
294
281
|
| `nano-gpt/meta-llama/llama-3.2-3b-instruct` | 131K | | | | | | $0.03 | $0.05 |
|
|
295
282
|
| `nano-gpt/meta-llama/llama-3.3-70b-instruct` | 131K | | | | | | $0.05 | $0.23 |
|
|
296
|
-
| `nano-gpt/meta-llama/llama-4-maverick` | 1.0M | | | | | | $0.
|
|
283
|
+
| `nano-gpt/meta-llama/llama-4-maverick` | 1.0M | | | | | | $0.15 | $0.60 |
|
|
297
284
|
| `nano-gpt/meta-llama/llama-4-scout` | 328K | | | | | | $0.09 | $0.46 |
|
|
298
285
|
| `nano-gpt/meta/muse-glimmer-30b` | 131K | | | | | | $0.35 | $2 |
|
|
299
286
|
| `nano-gpt/meta/muse-spark-1.1` | 1.0M | | | | | | $1 | $4 |
|
|
@@ -365,6 +352,7 @@ for await (const chunk of stream) {
|
|
|
365
352
|
| `nano-gpt/NeverSleep/Lumimaid-v0.2-70B` | 16K | | | | | | $1 | $2 |
|
|
366
353
|
| `nano-gpt/nex-agi/nex-n2.5-mini` | 262K | | | | | | $0.03 | $0.10 |
|
|
367
354
|
| `nano-gpt/nex-agi/nex-n2.5-pro` | 262K | | | | | | $0.07 | $0.25 |
|
|
355
|
+
| `nano-gpt/nex-agi/nex-n2.6` | 262K | | | | | | $0.15 | $0.50 |
|
|
368
356
|
| `nano-gpt/nothingiisreal/L3.1-70B-Celeste-V0.1-BF16` | 33K | | | | | | $0.49 | $0.49 |
|
|
369
357
|
| `nano-gpt/nvidia/Llama-3.1-Nemotron-70B-Instruct-HF` | 16K | | | | | | $0.36 | $0.41 |
|
|
370
358
|
| `nano-gpt/nvidia/Llama-3.3-Nemotron-Super-49B-v1` | 128K | | | | | | $0.15 | $0.15 |
|
|
@@ -421,7 +409,7 @@ for await (const chunk of stream) {
|
|
|
421
409
|
| `nano-gpt/openai/gpt-latest` | 1.1M | | | | | | $10 | $50 |
|
|
422
410
|
| `nano-gpt/openai/gpt-luna-latest` | 1.1M | | | | | | $0.10 | $0.50 |
|
|
423
411
|
| `nano-gpt/openai/gpt-oss-120b` | 128K | | | | | | $0.03 | $0.15 |
|
|
424
|
-
| `nano-gpt/openai/gpt-oss-20b` | 131K | | | | | | $0.
|
|
412
|
+
| `nano-gpt/openai/gpt-oss-20b` | 131K | | | | | | $0.02 | $0.03 |
|
|
425
413
|
| `nano-gpt/openai/gpt-oss-safeguard-20b` | 131K | | | | | | $0.07 | $0.30 |
|
|
426
414
|
| `nano-gpt/openai/gpt-sol-latest` | 1.1M | | | | | | $2 | $10 |
|
|
427
415
|
| `nano-gpt/openai/gpt-terra-latest` | 1.1M | | | | | | $1 | $5 |
|
|
@@ -430,7 +418,11 @@ for await (const chunk of stream) {
|
|
|
430
418
|
| `nano-gpt/openai/o3` | 200K | | | | | | $2 | $8 |
|
|
431
419
|
| `nano-gpt/openai/o3-mini-low` | 200K | | | | | | $1 | $4 |
|
|
432
420
|
| `nano-gpt/openai/o3-pro-2025-06-10` | 200K | | | | | | $22 | $88 |
|
|
421
|
+
| `nano-gpt/orca/orcacyber-flash-1.0` | 1.0M | | | | | | $0.80 | $2 |
|
|
422
|
+
| `nano-gpt/orca/orcacyber-flash-1.0:thinking` | 1.0M | | | | | | $0.80 | $2 |
|
|
423
|
+
| `nano-gpt/orca/orcacyber-glm-5.3-flash` | 1.0M | | | | | | $0.80 | $2 |
|
|
433
424
|
| `nano-gpt/orca/orcacyber-k3.1-pro` | 1.0M | | | | | | $4 | $20 |
|
|
425
|
+
| `nano-gpt/orca/orcacyber-mimo-flash` | 1.0M | | | | | | $0.80 | $2 |
|
|
434
426
|
| `nano-gpt/orca/orcacyber-minimax-m3.1-flash` | 262K | | | | | | $0.80 | $2 |
|
|
435
427
|
| `nano-gpt/orca/orcacyber-qwen3.8-flash-next` | 262K | | | | | | $0.80 | $2 |
|
|
436
428
|
| `nano-gpt/orca/orcacyber-zero-1.5` | 999K | | | | | | $3 | $8 |
|
|
@@ -472,8 +464,8 @@ for await (const chunk of stream) {
|
|
|
472
464
|
| `nano-gpt/qwen/qwen3-vl-235b-a22b-thinking` | 131K | | | | | | $0.50 | $6 |
|
|
473
465
|
| `nano-gpt/qwen/qwen3.5-122b-a10b` | 131K | | | | | | $0.26 | $2 |
|
|
474
466
|
| `nano-gpt/qwen/qwen3.5-122b-a10b:thinking` | 131K | | | | | | $0.26 | $2 |
|
|
475
|
-
| `nano-gpt/qwen/qwen3.5-27b` | 260K | | | | | | $0.
|
|
476
|
-
| `nano-gpt/qwen/qwen3.5-27b:thinking` | 260K | | | | | | $0.
|
|
467
|
+
| `nano-gpt/qwen/qwen3.5-27b` | 260K | | | | | | $0.20 | $2 |
|
|
468
|
+
| `nano-gpt/qwen/qwen3.5-27b:thinking` | 260K | | | | | | $0.20 | $2 |
|
|
477
469
|
| `nano-gpt/qwen/qwen3.5-35b-a3b` | 260K | | | | | | $0.14 | $1 |
|
|
478
470
|
| `nano-gpt/qwen/qwen3.5-35b-a3b:thinking` | 260K | | | | | | $0.14 | $1 |
|
|
479
471
|
| `nano-gpt/qwen/qwen3.5-397b-a17b` | 262K | | | | | | $0.39 | $2 |
|
|
@@ -557,30 +549,29 @@ for await (const chunk of stream) {
|
|
|
557
549
|
| `nano-gpt/stepfun/step-5-preview` | 1.0M | | | | | | $1 | $3 |
|
|
558
550
|
| `nano-gpt/synth-2.5-flash` | 30K | | | | | | $0.03 | $0.10 |
|
|
559
551
|
| `nano-gpt/synth-2.5-pro` | 30K | | | | | | $0.10 | $0.20 |
|
|
560
|
-
| `nano-gpt/TEE/deepseek-v3.2` | 164K | | | | | | $
|
|
561
|
-
| `nano-gpt/TEE/deepseek-v4.1-flash` | 1.0M | | | | | | $0.
|
|
552
|
+
| `nano-gpt/TEE/deepseek-v3.2` | 164K | | | | | | $1 | $1 |
|
|
553
|
+
| `nano-gpt/TEE/deepseek-v4.1-flash` | 1.0M | | | | | | $0.60 | $1 |
|
|
562
554
|
| `nano-gpt/TEE/gemma-4-26b-a4b-uncensored` | 66K | | | | | | $0.15 | $0.70 |
|
|
563
555
|
| `nano-gpt/TEE/gemma-4-31b-it` | 262K | | | | | | $0.15 | $0.46 |
|
|
564
|
-
| `nano-gpt/TEE/gemma4-31b` | 262K | | | | | | $0.
|
|
565
|
-
| `nano-gpt/TEE/gemma4-31b:thinking` | 262K | | | | | | $0.
|
|
566
|
-
| `nano-gpt/TEE/glm-5.1` | 203K | | | | | | $0.
|
|
567
|
-
| `nano-gpt/TEE/glm-5.1-thinking` | 203K | | | | | | $0.
|
|
556
|
+
| `nano-gpt/TEE/gemma4-31b` | 262K | | | | | | $0.12 | $0.37 |
|
|
557
|
+
| `nano-gpt/TEE/gemma4-31b:thinking` | 262K | | | | | | $0.12 | $0.37 |
|
|
558
|
+
| `nano-gpt/TEE/glm-5.1` | 203K | | | | | | $0.90 | $3 |
|
|
559
|
+
| `nano-gpt/TEE/glm-5.1-thinking` | 203K | | | | | | $0.90 | $3 |
|
|
568
560
|
| `nano-gpt/TEE/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
569
561
|
| `nano-gpt/TEE/glm-5.2:thinking` | 1.0M | | | | | | $1 | $4 |
|
|
570
562
|
| `nano-gpt/TEE/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
571
563
|
| `nano-gpt/TEE/glm-5.3-flash` | 1.0M | | | | | | $0.15 | $0.50 |
|
|
572
|
-
| `nano-gpt/TEE/gpt-oss-120b` | 131K | | | | | | $
|
|
573
|
-
| `nano-gpt/TEE/kimi-k2.6` | 262K | | | | | | $
|
|
574
|
-
| `nano-gpt/TEE/kimi-k3` | 1.0M | | | | | | $
|
|
564
|
+
| `nano-gpt/TEE/gpt-oss-120b` | 131K | | | | | | $0.15 | $0.60 |
|
|
565
|
+
| `nano-gpt/TEE/kimi-k2.6` | 262K | | | | | | $0.39 | $2 |
|
|
566
|
+
| `nano-gpt/TEE/kimi-k3` | 1.0M | | | | | | $2 | $10 |
|
|
567
|
+
| `nano-gpt/TEE/kimi-k3.1-pro` | 262K | | | | | | $4 | $20 |
|
|
575
568
|
| `nano-gpt/TEE/llama3-3-70b` | 128K | | | | | | $2 | $3 |
|
|
576
|
-
| `nano-gpt/TEE/qwen2.5-vl-72b-instruct` | 66K | | | | | | $0.70 | $0.70 |
|
|
577
|
-
| `nano-gpt/TEE/qwen3.5-397b-a17b` | 262K | | | | | | $0.55 | $4 |
|
|
578
569
|
| `nano-gpt/TEE/qwen3.6-27b` | 262K | | | | | | $0.32 | $3 |
|
|
579
570
|
| `nano-gpt/TEE/qwen3.6-35b-a3b` | 262K | | | | | | $0.20 | $1 |
|
|
580
|
-
| `nano-gpt/TEE/qwen3.8-27b` | 262K | | | | | | $0.
|
|
571
|
+
| `nano-gpt/TEE/qwen3.8-27b` | 262K | | | | | | $0.20 | $3 |
|
|
581
572
|
| `nano-gpt/tencent/hy3` | 262K | | | | | | $0.07 | $0.26 |
|
|
582
573
|
| `nano-gpt/tencent/hy4` | 1.0M | | | | | | $0.46 | $1 |
|
|
583
|
-
| `nano-gpt/tencent/hy4-preview` | 1.0M | | | | | | $0.
|
|
574
|
+
| `nano-gpt/tencent/hy4-preview` | 1.0M | | | | | | $0.83 | $3 |
|
|
584
575
|
| `nano-gpt/TheDrummer/Anubis-70B-v1` | 66K | | | | | | $0.31 | $0.31 |
|
|
585
576
|
| `nano-gpt/TheDrummer/Anubis-70B-v1.1` | 32K | | | | | | $0.31 | $0.31 |
|
|
586
577
|
| `nano-gpt/TheDrummer/artemis-31b-v1.2` | 66K | | | | | | $0.10 | $0.45 |
|
|
@@ -637,11 +628,11 @@ for await (const chunk of stream) {
|
|
|
637
628
|
| `nano-gpt/z-ai/GLM-4.5:thinking` | 128K | | | | | | $0.30 | $1 |
|
|
638
629
|
| `nano-gpt/z-ai/glm-4.5v` | 66K | | | | | | $0.60 | $2 |
|
|
639
630
|
| `nano-gpt/z-ai/glm-4.5v:thinking` | 66K | | | | | | $0.60 | $2 |
|
|
640
|
-
| `nano-gpt/z-ai/glm-4.6` | 200K | | | | | | $0.
|
|
641
|
-
| `nano-gpt/z-ai/glm-4.6-original` | 256K | | | | | | $0.
|
|
642
|
-
| `nano-gpt/z-ai/GLM-4.6-turbo` | 205K | | | | | | $
|
|
643
|
-
| `nano-gpt/z-ai/GLM-4.6-turbo:thinking` | 205K | | | | | | $
|
|
644
|
-
| `nano-gpt/z-ai/glm-4.6:thinking` | 200K | | | | | | $0.
|
|
631
|
+
| `nano-gpt/z-ai/glm-4.6` | 200K | | | | | | $0.55 | $2 |
|
|
632
|
+
| `nano-gpt/z-ai/glm-4.6-original` | 256K | | | | | | $0.55 | $2 |
|
|
633
|
+
| `nano-gpt/z-ai/GLM-4.6-turbo` | 205K | | | | | | $0.55 | $2 |
|
|
634
|
+
| `nano-gpt/z-ai/GLM-4.6-turbo:thinking` | 205K | | | | | | $0.55 | $2 |
|
|
635
|
+
| `nano-gpt/z-ai/glm-4.6:thinking` | 200K | | | | | | $0.55 | $2 |
|
|
645
636
|
| `nano-gpt/z-ai/glm-4.6v` | 128K | | | | | | $0.30 | $0.90 |
|
|
646
637
|
| `nano-gpt/z-ai/glm-4.6v-original` | 128K | | | | | | $0.60 | $0.90 |
|
|
647
638
|
| `nano-gpt/z-ai/glm-4.7` | 200K | | | | | | $0.40 | $2 |
|
|
@@ -657,8 +648,8 @@ for await (const chunk of stream) {
|
|
|
657
648
|
| `nano-gpt/z-ai/glm-5:thinking` | 200K | | | | | | $0.60 | $2 |
|
|
658
649
|
| `nano-gpt/z-ai/glm-5.1` | 200K | | | | | | $0.70 | $3 |
|
|
659
650
|
| `nano-gpt/z-ai/glm-5.1:thinking` | 200K | | | | | | $0.70 | $3 |
|
|
660
|
-
| `nano-gpt/z-ai/glm-5.2` | 1.0M | | | | | | $0.
|
|
661
|
-
| `nano-gpt/z-ai/glm-5.2:thinking` | 1.0M | | | | | | $0.
|
|
651
|
+
| `nano-gpt/z-ai/glm-5.2` | 1.0M | | | | | | $0.42 | $1 |
|
|
652
|
+
| `nano-gpt/z-ai/glm-5.2:thinking` | 1.0M | | | | | | $0.42 | $1 |
|
|
662
653
|
| `nano-gpt/z-ai/glm-5.3` | 1.0M | | | | | | $0.60 | $1 |
|
|
663
654
|
| `nano-gpt/z-ai/glm-5.3-flash` | 1.0M | | | | | | $0.10 | $0.30 |
|
|
664
655
|
| `nano-gpt/z-ai/glm-5.3-flash-apex` | 1.0M | | | | | | $0.15 | $0.50 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# OpenCode Go
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 40 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
|
|
|
@@ -40,7 +40,6 @@ for await (const chunk of stream) {
|
|
|
40
40
|
| ---------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
41
41
|
| `opencode-go/beam-free` | 1.0M | | | | | | — | — |
|
|
42
42
|
| `opencode-go/claude-haiku-5-5` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
43
|
-
| `opencode-go/crouton-alpha-free` | 1.0M | | | | | | — | — |
|
|
44
43
|
| `opencode-go/deepseek-v4-pro` | 1.0M | | | | | | $0.66 | $2 |
|
|
45
44
|
| `opencode-go/deepseek-v4.1-flash` | 1.0M | | | | | | $0.15 | $0.60 |
|
|
46
45
|
| `opencode-go/gemini-4-argon` | 1.0M | | | | | | $2 | $10 |
|
|
@@ -58,6 +57,7 @@ for await (const chunk of stream) {
|
|
|
58
57
|
| `opencode-go/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
59
58
|
| `opencode-go/kimi-k3.1-pro` | 1.0M | | | | | | $2 | $10 |
|
|
60
59
|
| `opencode-go/longcat-2.0` | 1.0M | | | | | | $0.30 | $1 |
|
|
60
|
+
| `opencode-go/longcat-2.5-free` | 1.0M | | | | | | — | — |
|
|
61
61
|
| `opencode-go/mimo-v2.5` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
62
62
|
| `opencode-go/mimo-v2.5-pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
63
63
|
| `opencode-go/mimo-v2.6-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# OpenCode
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 137 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
|
|
|
@@ -42,6 +42,7 @@ for await (const chunk of stream) {
|
|
|
42
42
|
| `opencode/big-pickle` | 200K | | | | | | — | — |
|
|
43
43
|
| `opencode/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
|
|
44
44
|
| `opencode/claude-fable-5-1` | 1.0M | | | | | | $10 | $50 |
|
|
45
|
+
| `opencode/claude-fable-5-2` | 1.0M | | | | | | $8 | $40 |
|
|
45
46
|
| `opencode/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
46
47
|
| `opencode/claude-haiku-5-5` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
47
48
|
| `opencode/claude-opus-4-5` | 200K | | | | | | $5 | $25 |
|
|
@@ -54,7 +55,6 @@ for await (const chunk of stream) {
|
|
|
54
55
|
| `opencode/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
55
56
|
| `opencode/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
|
|
56
57
|
| `opencode/claude-sonnet-5-5` | 1.0M | | | | | | $2 | $10 |
|
|
57
|
-
| `opencode/crouton-alpha-free` | 1.0M | | | | | | — | — |
|
|
58
58
|
| `opencode/deepseek-v4-pro` | 1.0M | | | | | | $2 | $3 |
|
|
59
59
|
| `opencode/deepseek-v4.1-flash` | 1.0M | | | | | | $0.30 | $1 |
|
|
60
60
|
| `opencode/deepseek-v4.1-flash-free` | 200K | | | | | | — | — |
|
|
@@ -63,9 +63,9 @@ for await (const chunk of stream) {
|
|
|
63
63
|
| `opencode/gemini-3.1-pro` | 1.0M | | | | | | $2 | $12 |
|
|
64
64
|
| `opencode/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
|
|
65
65
|
| `opencode/gemini-3.5-flash-lite` | 1.0M | | | | | | $0.30 | $3 |
|
|
66
|
-
| `opencode/gemini-3.6-flash` | 1.0M | | | | | | $
|
|
67
|
-
| `opencode/gemini-3.7-flash` | 1.0M | | | | | | $
|
|
68
|
-
| `opencode/gemini-3.8-flash` | 1.0M | | | | | | $
|
|
66
|
+
| `opencode/gemini-3.6-flash` | 1.0M | | | | | | $0.75 | $4 |
|
|
67
|
+
| `opencode/gemini-3.7-flash` | 1.0M | | | | | | $0.75 | $4 |
|
|
68
|
+
| `opencode/gemini-3.8-flash` | 1.0M | | | | | | $0.75 | $4 |
|
|
69
69
|
| `opencode/gemini-4-argon` | 1.0M | | | | | | $2 | $10 |
|
|
70
70
|
| `opencode/glm-5` | 205K | | | | | | $1 | $3 |
|
|
71
71
|
| `opencode/glm-5.1` | 205K | | | | | | $1 | $4 |
|
|
@@ -107,11 +107,14 @@ for await (const chunk of stream) {
|
|
|
107
107
|
| `opencode/kimi-k2.6` | 262K | | | | | | $0.95 | $4 |
|
|
108
108
|
| `opencode/kimi-k2.7-code` | 262K | | | | | | $0.95 | $4 |
|
|
109
109
|
| `opencode/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
110
|
+
| `opencode/longcat-2.5-free` | 1.0M | | | | | | — | — |
|
|
110
111
|
| `opencode/mimo-v2.6-flash-free` | 200K | | | | | | — | — |
|
|
111
112
|
| `opencode/minimax-m2.5` | 205K | | | | | | $0.30 | $1 |
|
|
112
113
|
| `opencode/minimax-m2.7` | 205K | | | | | | $0.30 | $1 |
|
|
113
114
|
| `opencode/minimax-m3` | 512K | | | | | | $0.30 | $1 |
|
|
115
|
+
| `opencode/minimax-m3.1-flash-free` | 1.0M | | | | | | — | — |
|
|
114
116
|
| `opencode/mistral-large-4` | 524K | | | | | | $0.68 | $2 |
|
|
117
|
+
| `opencode/muse-ember-1.0` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
115
118
|
| `opencode/muse-spark-1.2` | 1.0M | | | | | | $1 | $4 |
|
|
116
119
|
| `opencode/muse-spark-1.3` | 1.0M | | | | | | $1 | $4 |
|
|
117
120
|
| `opencode/muse-wonder-1.0` | 1.0M | | | | | | $4 | $20 |
|
|
@@ -51,8 +51,8 @@ for await (const chunk of stream) {
|
|
|
51
51
|
| `prime/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.44 | $1 |
|
|
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
|
-
| `prime/deepseek/deepseek-v4.1-flash` | 1.0M | | | | | | $0.
|
|
55
|
-
| `prime/deepseek/deepseek-v4.1-flash-1017` | 1.0M | | | | | | $0.
|
|
54
|
+
| `prime/deepseek/deepseek-v4.1-flash` | 1.0M | | | | | | $0.04 | $1 |
|
|
55
|
+
| `prime/deepseek/deepseek-v4.1-flash-1017` | 1.0M | | | | | | $0.04 | $0.70 |
|
|
56
56
|
| `prime/google/gemini-3-flash-preview` | 1.0M | | | | | | $0.50 | $3 |
|
|
57
57
|
| `prime/google/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
|
|
58
58
|
| `prime/google/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
|
|
@@ -106,8 +106,8 @@ for await (const chunk of stream) {
|
|
|
106
106
|
| `prime/x-ai/grok-4.6` | 500K | | | | | | $2 | $6 |
|
|
107
107
|
| `prime/x-ai/grok-4.7` | 500K | | | | | | $2 | $5 |
|
|
108
108
|
| `prime/z-ai/glm-5.2` | 1.0M | | | | | | $2 | $5 |
|
|
109
|
-
| `prime/z-ai/glm-5.3` | 1.0M | | | | | | $0.
|
|
110
|
-
| `prime/z-ai/glm-5.3-flash` | 1.0M | | | | | | $0.
|
|
109
|
+
| `prime/z-ai/glm-5.3` | 1.0M | | | | | | $0.40 | $2 |
|
|
110
|
+
| `prime/z-ai/glm-5.3-flash` | 1.0M | | | | | | $0.05 | $0.25 |
|
|
111
111
|
|
|
112
112
|
Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
|
|
113
113
|
|
|
@@ -53,7 +53,7 @@ for await (const chunk of stream) {
|
|
|
53
53
|
| `wandb/moonshotai/Kimi-K2.7-Code` | 262K | | | | | | $0.60 | $3 |
|
|
54
54
|
| `wandb/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B` | 262K | | | | | | $0.50 | $2 |
|
|
55
55
|
| `wandb/nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B` | 262K | | | | | | $0.07 | $0.20 |
|
|
56
|
-
| `wandb/nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B` | 1.0M | | | | | | $0.15 | $0.
|
|
56
|
+
| `wandb/nvidia/NVIDIA-Nemotron-3.5-Super-VL-120B-A12B` | 1.0M | | | | | | $0.15 | $0.47 |
|
|
57
57
|
| `wandb/openai/gpt-oss-120b` | 131K | | | | | | $0.03 | $0.17 |
|
|
58
58
|
| `wandb/openai/gpt-oss-20b` | 131K | | | | | | $0.03 | $0.13 |
|
|
59
59
|
| `wandb/Qwen/Qwen3.6-35B-A3B` | 262K | | | | | | $0.10 | $0.89 |
|
|
@@ -38,7 +38,7 @@ The session is organized into sub-objects, each owning one domain of per-convers
|
|
|
38
38
|
|
|
39
39
|
**mode** (`SessionMode`): Active mode selection. See mode methods below.
|
|
40
40
|
|
|
41
|
-
**model** (`SessionModel`): Active model selection
|
|
41
|
+
**model** (`SessionModel`): Active model selection. One model is persisted per thread and stays active when the session changes modes. See model methods below.
|
|
42
42
|
|
|
43
43
|
**om** (`SessionOM`): Observer and reflector model settings for observational memory.
|
|
44
44
|
|
|
@@ -106,6 +106,8 @@ const agent = new Agent({
|
|
|
106
106
|
|
|
107
107
|
**streaming** (`boolean | { updateIntervalMs?: number }`): Stream agent text deltas to the channel as the agent generates them instead of buffering and posting once per step. Requires the underlying adapter to support post-and-edit streaming. Slack defaults to true; other adapters default to false. (Default: `false (true for Slack)`)
|
|
108
108
|
|
|
109
|
+
**generativeUI** (`boolean`): \*\*Experimental. Slack only; ignored on other adapters.\*\* Gives runs on the Slack adapter a render_card tool. The agent calls it with a json-render spec and the card is posted to the thread as Block Kit. Invalid specs return a list of issues to the agent instead of posting. Requires the optional @json-render/chat package. See Generative UI cards. (Default: `false`)
|
|
110
|
+
|
|
109
111
|
**textFormat** (`'markdown' | 'plain'`): Dialect for the agent's final reply text. 'markdown' (the default) posts replies as markdown: adapters with native markdown rendering (Slack) render it directly, others convert it to their platform format. 'plain' posts replies as literal plain text, restoring the pre-markdown behavior for agents prompted to emit a platform dialect such as Slack mrkdwn. Applies to final reply text only; tool cards, error messages, and tripwire notices are unaffected. Native streaming is always markdown regardless of this setting. (Default: `'markdown'`)
|
|
110
112
|
|
|
111
113
|
**textDisplay** (`'show' | 'hidden'`): Whether the agent's reply text is posted to the channel. 'hidden' never posts reply text, so the agent's own messages reach the channel only through tools you give it, such as a reply tool. Tool display, approval prompts, error messages, and typing status are unaffected, and the text still reaches the agent's stream and memory. (Default: `'show'`)
|
|
@@ -230,6 +232,83 @@ const agent = new Agent({
|
|
|
230
232
|
})
|
|
231
233
|
```
|
|
232
234
|
|
|
235
|
+
## Generative UI cards
|
|
236
|
+
|
|
237
|
+
> **Experimental:** `generativeUI` is experimental and may change in a minor release.
|
|
238
|
+
|
|
239
|
+
Set `generativeUI: true` on the Slack adapter to let the agent post structured cards (status summaries, key/value fields, tables, charts, images, and link buttons) instead of long markdown replies. Install the optional peer first:
|
|
240
|
+
|
|
241
|
+
**npm**:
|
|
242
|
+
|
|
243
|
+
```bash
|
|
244
|
+
npm install @json-render/chat
|
|
245
|
+
```
|
|
246
|
+
|
|
247
|
+
**pnpm**:
|
|
248
|
+
|
|
249
|
+
```bash
|
|
250
|
+
pnpm add @json-render/chat
|
|
251
|
+
```
|
|
252
|
+
|
|
253
|
+
**Yarn**:
|
|
254
|
+
|
|
255
|
+
```bash
|
|
256
|
+
yarn add @json-render/chat
|
|
257
|
+
```
|
|
258
|
+
|
|
259
|
+
**Bun**:
|
|
260
|
+
|
|
261
|
+
```bash
|
|
262
|
+
bun add @json-render/chat
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
`@json-render/chat` requires zod 4, so projects still on zod 3 can't enable `generativeUI` yet.
|
|
266
|
+
|
|
267
|
+
`@mastra/core` loads `@json-render/chat` at runtime, so `mastra build` and `mastra deploy` don't pick it up on their own. Add it to [`bundler.dynamicPackages`](https://mastra.ai/reference/core/mastra-class) so it's included in the build output:
|
|
268
|
+
|
|
269
|
+
```typescript
|
|
270
|
+
import { Mastra } from '@mastra/core'
|
|
271
|
+
import { supportAgent } from './agents/support-agent'
|
|
272
|
+
|
|
273
|
+
export const mastra = new Mastra({
|
|
274
|
+
agents: { supportAgent },
|
|
275
|
+
bundler: { dynamicPackages: ['@json-render/chat'] },
|
|
276
|
+
})
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
```typescript
|
|
280
|
+
import { Agent } from '@mastra/core/agent'
|
|
281
|
+
import { createSlackAdapter } from '@chat-adapter/slack'
|
|
282
|
+
|
|
283
|
+
export const supportAgent = new Agent({
|
|
284
|
+
id: 'support-agent',
|
|
285
|
+
name: 'Support Agent',
|
|
286
|
+
instructions: 'You are a helpful support assistant.',
|
|
287
|
+
model: 'openai/gpt-6.1-sol',
|
|
288
|
+
channels: {
|
|
289
|
+
adapters: {
|
|
290
|
+
slack: { adapter: createSlackAdapter(), generativeUI: true },
|
|
291
|
+
},
|
|
292
|
+
},
|
|
293
|
+
})
|
|
294
|
+
```
|
|
295
|
+
|
|
296
|
+
Runs on that adapter get a `render_card` tool whose description lists the available components. The agent passes a flat spec of `{ root, elements }`, where the root element is a `Card`:
|
|
297
|
+
|
|
298
|
+
```json
|
|
299
|
+
{
|
|
300
|
+
"root": "card",
|
|
301
|
+
"elements": {
|
|
302
|
+
"card": { "type": "Card", "props": { "title": "Deploy status" }, "children": ["fields"] },
|
|
303
|
+
"fields": { "type": "Fields", "children": ["env", "version"] },
|
|
304
|
+
"env": { "type": "Field", "props": { "label": "Environment", "value": "beta" } },
|
|
305
|
+
"version": { "type": "Field", "props": { "label": "Version", "value": "1.8.1" } }
|
|
306
|
+
}
|
|
307
|
+
}
|
|
308
|
+
```
|
|
309
|
+
|
|
310
|
+
The tool returns `{ ok: true, messageId }` once the card is posted. When the spec is invalid or exceeds the platform's limits (on Slack, one table and 100 rows per card), it returns `{ ok: false, issues }` without posting, so the agent can fix the spec and call it again. The tool call itself isn't rendered as a tool card. Interactive buttons aren't available yet. Cards can link out with `LinkButton`.
|
|
311
|
+
|
|
233
312
|
## Custom typing status
|
|
234
313
|
|
|
235
314
|
Pass a function to `typingStatus` to customize the status copy. The function is called once per stream chunk; return a string to set the status, or `false` / `null` / `undefined` to leave the current status unchanged. Return values are de-duplicated so the platform only sees a call when the status changes. When the run ends, any status it set is cleared automatically so runs that finish without posting a message don't leave a stale status on the thread.
|
|
@@ -212,7 +212,7 @@ Indexed replay is limited to events still available in the configured cache. The
|
|
|
212
212
|
|
|
213
213
|
A failed cache write loses only that event from the cache. It has no `index`, and the events written before and after it still replay when the cache numbers and appends an event in one step. The in-memory and Valkey caches always do. `RedisServerCache` does while Redis scripting works, and switches to two steps when the client has no `eval` or Redis Cluster rejects the script with `CROSSSLOT`. A custom cache that keeps the default `listPushIndexed()` also takes two steps. A two-step cache can leave a gap that makes offset replay skip later events, so replay such a log without an `offset` and skip indexes already processed. Cache replay can't recover an event the cache never stored. A transport that retains it, such as `RedisStreamsPubSub`, can still deliver it without an `index`.
|
|
214
214
|
|
|
215
|
-
An evented agent (`createEventedAgent()`) on a cross-process PubSub, such as Redis Streams,
|
|
215
|
+
An evented agent (`createEventedAgent()`) on a cross-process PubSub, such as Redis Streams, can use the default in-memory server cache when its steps run in the process that started the run. That process numbers the events. Use a shared cache such as `RedisServerCache` on the `Mastra` instance when steps run in another process, such as a dedicated worker started with `workers: true`. That process can't share the in-memory counter, so its events aren't numbered and an offset can't skip them. Mastra logs a warning in the worker when this happens. Also use a shared cache when an observer reconnects through another process, such as a different server replica, because it can't replay from the starting process's in-memory cache.
|
|
216
216
|
|
|
217
217
|
By default `observe()` waits indefinitely for events. If the process running the run stops unexpectedly, the run stops producing events but never emits a completion event, so the observed stream would wait forever. Pass `idleTimeoutMs` to end the stream after a bounded period of silence. Before timing out, `observe()` can consult an optional `isAlive` check. Return `true` while work continues, such as during a long-running tool call or a pause for human input. A `false` result ends the stream with an error, as does omitting `isAlive`. A transient throw from `isAlive` is treated as "still alive", so a momentary check failure never ends a live stream.
|
|
218
218
|
|
|
@@ -268,7 +268,9 @@ const { runId } = await durableAgent.stream('Summarize the document')
|
|
|
268
268
|
durableAgent.abortRunStream(runId)
|
|
269
269
|
```
|
|
270
270
|
|
|
271
|
-
Publishing the abort request over PubSub requires a shared backend in a multi-process deployment, such as [`RedisStreamsPubSub`](https://mastra.ai/reference/pubsub/redis-streams). The default `EventEmitterPubSub` only reaches runs in the same process.
|
|
271
|
+
Publishing the abort request over PubSub requires a shared backend in a multi-process deployment, such as [`RedisStreamsPubSub`](https://mastra.ai/reference/pubsub/redis-streams). The default `EventEmitterPubSub` only reaches runs in the same process. A run parked on a tool approval is cancelled only in this process: another process sharing the storage can still approve it. To cancel a parked run on every server, call the server's `POST /agents/:agentId/runs/:runId/abort` route, which records the cancellation in storage so a later approval or resume is refused with `409 Conflict` (`AGENT_RESUME_ABORTED_RUN`).
|
|
272
|
+
|
|
273
|
+
`InngestAgent` doesn't implement this method. Cancel an Inngest run with the `abort()` returned by its `stream()`.
|
|
272
274
|
|
|
273
275
|
Stopping a durable run through `abortRunStream()` or `abortThreadStream()` requires `@mastra/core@1.62.0` or later. Earlier versions record the abort without stopping the run.
|
|
274
276
|
|
|
@@ -427,7 +429,7 @@ Model and tool calls after the checkpoint may run again. Make tool side effects
|
|
|
427
429
|
|
|
428
430
|
The server's `POST /agents/:agentId/recover` route returns ownership, already-in-progress, suspended-run, and inactive-run conflicts as `409 Conflict`. An unavailable checkpoint returns `500 Internal Server Error`.
|
|
429
431
|
|
|
430
|
-
**options.force** (`boolean`): Take the run over even while another execution holds it. That execution loses the run and stops, and streams for the run drop the events it still publishes. Its writes are rejected when the storage adapter supports run fencing. (Default: `false`)
|
|
432
|
+
**options.force** (`boolean`): Take the run over even while another execution holds it. That execution loses the run and stops, and streams for the run drop the events it still publishes. Its writes are rejected when the storage adapter supports run fencing. Tools still running in that execution can finish, so the same tool call can run twice. See make tools safe to repeat. (Default: `false`)
|
|
431
433
|
|
|
432
434
|
Returns: [`Promise<DurableAgentStreamResult>`](#durableagentstreamresult)
|
|
433
435
|
|