@mastra/mcp-docs-server 1.2.19-alpha.4 → 1.2.19
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/channels.md +28 -1
- package/.docs/docs/deployment/cloud-providers.md +1 -0
- package/.docs/docs/deployment/mastra-server.md +19 -0
- package/.docs/docs/deployment/overview.md +1 -0
- package/.docs/docs/deployment/workers.md +2 -2
- package/.docs/docs/harness/durable-agents.md +1 -1
- package/.docs/docs/mastra-platform/api.md +54 -0
- package/.docs/docs/mastra-platform/deploy.md +101 -0
- package/.docs/docs/mastra-platform/observability.md +3 -1
- package/.docs/docs/mastra-platform/server.md +6 -11
- package/.docs/docs/mastra-platform/studio.md +8 -10
- package/.docs/docs/memory/semantic-recall.md +19 -0
- package/.docs/docs/observability/feedback.md +14 -0
- package/.docs/docs/observability/integrations/exporters/mastra-storage.md +19 -14
- package/.docs/docs/observability/metrics/overview.md +31 -44
- package/.docs/docs/sandbox/overview.md +43 -0
- package/.docs/docs/server/middleware.md +30 -0
- package/.docs/docs/server/server-adapters.md +109 -34
- package/.docs/docs/storage.md +2 -0
- package/.docs/docs/subagents.md +6 -6
- package/.docs/integrations/channels/github.md +56 -9
- package/.docs/integrations/channels/imessage.md +150 -8
- package/.docs/integrations/databases/elasticsearch.md +156 -0
- package/.docs/integrations/databases/libsql.md +16 -0
- package/.docs/integrations/databases/mongodb.md +1 -1
- package/.docs/integrations/databases/postgresql.md +26 -0
- package/.docs/integrations/databases/valkey.md +99 -0
- package/.docs/integrations/deploy/kubernetes-helm.md +332 -0
- package/.docs/integrations/deploy/kubernetes.md +1 -1
- package/.docs/integrations/deploy/render.md +47 -61
- package/.docs/integrations/sandboxes/daytona.md +52 -0
- package/.docs/integrations/sandboxes/e2b-desktop.md +128 -0
- package/.docs/integrations/sandboxes/e2b.md +6 -0
- package/.docs/integrations/sandboxes/vercel.md +2 -2
- package/.docs/integrations/tools/parallel.md +240 -0
- package/.docs/integrations.md +5 -0
- package/.docs/models/environment-variables.md +9 -0
- package/.docs/models/gateways/netlify.md +12 -5
- package/.docs/models/gateways/openrouter.md +5 -10
- package/.docs/models/gateways/vercel.md +5 -5
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/agentrouter.md +17 -34
- package/.docs/models/providers/agnes.md +75 -0
- package/.docs/models/providers/aixy.md +73 -0
- package/.docs/models/providers/aki-io.md +14 -13
- package/.docs/models/providers/chutes.md +2 -2
- package/.docs/models/providers/cline-pass.md +4 -2
- package/.docs/models/providers/crof.md +3 -8
- package/.docs/models/providers/deepseek.md +4 -6
- package/.docs/models/providers/edenai.md +14 -14
- package/.docs/models/providers/evroc.md +3 -2
- package/.docs/models/providers/gmicloud.md +6 -4
- package/.docs/models/providers/huggingface.md +2 -1
- package/.docs/models/providers/hyper.md +5 -5
- package/.docs/models/providers/inceptron.md +2 -2
- package/.docs/models/providers/iteracompute.md +73 -0
- package/.docs/models/providers/kilo.md +26 -27
- package/.docs/models/providers/llmgateway-providers.md +18 -9
- package/.docs/models/providers/llmgateway.md +3 -5
- package/.docs/models/providers/llmtech.md +73 -0
- package/.docs/models/providers/nano-gpt.md +22 -13
- package/.docs/models/providers/neosmith.md +104 -0
- package/.docs/models/providers/nvidia.md +3 -1
- package/.docs/models/providers/ofox.md +2 -1
- package/.docs/models/providers/openai.md +2 -2
- package/.docs/models/providers/opencode-go.md +3 -2
- package/.docs/models/providers/opper.md +112 -0
- package/.docs/models/providers/pendra.md +78 -0
- package/.docs/models/providers/requesty.md +1 -1
- package/.docs/models/providers/standardcompute.md +73 -0
- package/.docs/models/providers/vivgrid.md +2 -1
- package/.docs/models/providers/wandb.md +2 -1
- package/.docs/models/providers/zai.md +2 -1
- package/.docs/models/providers.md +9 -0
- package/.docs/reference/agents/channels.md +1 -1
- package/.docs/reference/ai-sdk/handle-chat-stream.md +11 -0
- package/.docs/reference/ai-sdk/with-sse-heartbeat.md +47 -0
- package/.docs/reference/cli/mastra.md +10 -4
- package/.docs/reference/client-js/observability.md +1 -1
- package/.docs/reference/index.md +5 -0
- package/.docs/reference/observability/feedback.md +4 -0
- package/.docs/reference/observability/metrics/automatic-metrics.md +1 -1
- package/.docs/reference/observability/metrics/queries.md +462 -0
- package/.docs/reference/pubsub/valkey-streams.md +84 -0
- package/.docs/reference/rag/vector-databases.md +4 -4
- package/.docs/reference/server/elysia-adapter.md +184 -0
- package/.docs/reference/server/express-adapter.md +6 -8
- package/.docs/reference/server/hono-adapter.md +19 -6
- package/.docs/reference/storage/turso.md +88 -0
- package/.docs/reference/streaming/ChunkType.md +29 -1
- package/.docs/reference/streaming/agents/stream.md +1 -3
- package/.docs/reference/tools/mcp-client.md +41 -9
- package/.docs/reference/vectors/mongodb.md +11 -11
- package/.docs/reference/vectors/pg.md +2 -0
- package/.docs/reference/workspace/local-sandbox.md +2 -0
- package/.docs/reference/workspace/platform-sandbox.md +3 -1
- package/.docs/reference/workspace/sandbox.md +143 -3
- package/CHANGELOG.md +81 -0
- package/package.json +6 -6
- package/.docs/docs/observability/metrics/querying.md +0 -314
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# NanoGPT
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 608 NanoGPT models through Mastra's model router. Authentication is handled automatically using the `NANO_GPT_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [NanoGPT documentation](https://docs.nano-gpt.com).
|
|
8
8
|
|
|
@@ -46,7 +46,6 @@ for await (const chunk of stream) {
|
|
|
46
46
|
| `nano-gpt/alibaba/qwen3.6-flash` | 992K | | | | | | $0.19 | $1 |
|
|
47
47
|
| `nano-gpt/amazon/nova-2-lite-v1` | 1.0M | | | | | | $0.51 | $4 |
|
|
48
48
|
| `nano-gpt/amazon/nova-lite-v1` | 300K | | | | | | $0.06 | $0.24 |
|
|
49
|
-
| `nano-gpt/amazon/nova-micro-v1` | 128K | | | | | | $0.04 | $0.14 |
|
|
50
49
|
| `nano-gpt/amazon/nova-pro-v1` | 300K | | | | | | $0.80 | $3 |
|
|
51
50
|
| `nano-gpt/anthracite-org/magnum-v2-72b` | 16K | | | | | | $2 | $3 |
|
|
52
51
|
| `nano-gpt/anthracite-org/magnum-v4-72b` | 16K | | | | | | $2 | $3 |
|
|
@@ -211,6 +210,8 @@ for await (const chunk of stream) {
|
|
|
211
210
|
| `nano-gpt/Gemma-4-31B-Cognitive-Unshackled` | 262K | | | | | | $0.31 | $0.31 |
|
|
212
211
|
| `nano-gpt/Gemma-4-31B-DarkIdol` | 262K | | | | | | $0.31 | $0.31 |
|
|
213
212
|
| `nano-gpt/Gemma-4-31B-GarnetV2` | 262K | | | | | | $0.31 | $0.31 |
|
|
213
|
+
| `nano-gpt/Gemma-4-31B-MeroMero-v2` | 262K | | | | | | $0.08 | $0.33 |
|
|
214
|
+
| `nano-gpt/Gemma-4-31B-MeroMero-v2:thinking` | 262K | | | | | | $0.08 | $0.33 |
|
|
214
215
|
| `nano-gpt/Gemma-4-31B-Queen` | 262K | | | | | | $0.31 | $0.31 |
|
|
215
216
|
| `nano-gpt/gemma-4-e2b-it` | 131K | | | | | | $0.02 | $0.10 |
|
|
216
217
|
| `nano-gpt/gemma-4-e4b-it` | 131K | | | | | | $0.04 | $0.20 |
|
|
@@ -240,11 +241,13 @@ for await (const chunk of stream) {
|
|
|
240
241
|
| `nano-gpt/google/gemini-3.5-flash-thinking` | 1.0M | | | | | | $2 | $9 |
|
|
241
242
|
| `nano-gpt/google/gemini-3.6-flash` | 1.0M | | | | | | $0.75 | $4 |
|
|
242
243
|
| `nano-gpt/google/gemini-3.7-flash` | 1.0M | | | | | | $0.38 | $2 |
|
|
243
|
-
| `nano-gpt/google/gemini-flash-latest` | 1.0M | | | | | | $0.
|
|
244
|
+
| `nano-gpt/google/gemini-flash-latest` | 1.0M | | | | | | $0.38 | $2 |
|
|
244
245
|
| `nano-gpt/google/gemini-flash-lite-latest` | 1.0M | | | | | | $0.30 | $3 |
|
|
245
246
|
| `nano-gpt/google/gemini-pro-latest` | 1.0M | | | | | | $2 | $12 |
|
|
246
247
|
| `nano-gpt/google/gemma-4-26b-a4b-it` | 262K | | | | | | $0.08 | $0.33 |
|
|
247
248
|
| `nano-gpt/google/gemma-4-26b-a4b-it:thinking` | 262K | | | | | | $0.13 | $0.40 |
|
|
249
|
+
| `nano-gpt/google/gemma-4-26b-a4b-uncensored` | 262K | | | | | | $0.08 | $0.33 |
|
|
250
|
+
| `nano-gpt/google/gemma-4-26b-a4b-uncensored:thinking` | 262K | | | | | | $0.08 | $0.33 |
|
|
248
251
|
| `nano-gpt/google/gemma-4-31b-it` | 262K | | | | | | $0.08 | $0.33 |
|
|
249
252
|
| `nano-gpt/google/gemma-4-31b-it:thinking` | 262K | | | | | | $0.10 | $0.35 |
|
|
250
253
|
| `nano-gpt/Gryphe/MythoMax-L2-13b` | 4K | | | | | | $0.10 | $0.10 |
|
|
@@ -259,11 +262,8 @@ for await (const chunk of stream) {
|
|
|
259
262
|
| `nano-gpt/huihui-ai/Qwen2.5-32B-Instruct-abliterated` | 33K | | | | | | $0.70 | $0.70 |
|
|
260
263
|
| `nano-gpt/hunyuan-turbos-20250226` | 24K | | | | | | $0.19 | $0.37 |
|
|
261
264
|
| `nano-gpt/ibm-granite/granite-4.1-8b` | 131K | | | | | | $0.05 | $0.10 |
|
|
262
|
-
| `nano-gpt/inclusionai/ling-2.6-1t` | 262K | | | | | | $0.30 | $3 |
|
|
263
|
-
| `nano-gpt/inclusionai/ling-2.6-flash` | 262K | | | | | | $0.10 | $0.30 |
|
|
264
265
|
| `nano-gpt/inclusionai/ling-3.0-flash` | 262K | | | | | | $0.07 | $0.22 |
|
|
265
266
|
| `nano-gpt/inclusionai/ling-3.0-flash:thinking` | 262K | | | | | | $0.07 | $0.22 |
|
|
266
|
-
| `nano-gpt/inclusionai/ring-2.6-1t` | 262K | | | | | | $0.30 | $3 |
|
|
267
267
|
| `nano-gpt/inflatebot/MN-12B-Mag-Mell-R1` | 16K | | | | | | $0.49 | $0.49 |
|
|
268
268
|
| `nano-gpt/inflection/inflection-3-pi` | 8K | | | | | | $2 | $10 |
|
|
269
269
|
| `nano-gpt/inflection/inflection-3-productivity` | 8K | | | | | | $2 | $10 |
|
|
@@ -402,12 +402,12 @@ for await (const chunk of stream) {
|
|
|
402
402
|
| `nano-gpt/openai/gpt-5.5` | 1.0M | | | | | | $5 | $30 |
|
|
403
403
|
| `nano-gpt/openai/gpt-5.6-luna` | 1.1M | | | | | | $0.10 | $0.60 |
|
|
404
404
|
| `nano-gpt/openai/gpt-5.6-luna-pro` | 1.1M | | | | | | $0.10 | $0.60 |
|
|
405
|
-
| `nano-gpt/openai/gpt-5.6-sol` | 1.1M | | | | | | $
|
|
406
|
-
| `nano-gpt/openai/gpt-5.6-sol-pro` | 1.1M | | | | | | $
|
|
405
|
+
| `nano-gpt/openai/gpt-5.6-sol` | 1.1M | | | | | | $2 | $10 |
|
|
406
|
+
| `nano-gpt/openai/gpt-5.6-sol-pro` | 1.1M | | | | | | $2 | $10 |
|
|
407
407
|
| `nano-gpt/openai/gpt-5.6-terra` | 1.1M | | | | | | $1 | $6 |
|
|
408
408
|
| `nano-gpt/openai/gpt-5.6-terra-pro` | 1.1M | | | | | | $1 | $6 |
|
|
409
|
-
| `nano-gpt/openai/gpt-chat-latest` | 1.1M | | | | | | $
|
|
410
|
-
| `nano-gpt/openai/gpt-latest` | 1.1M | | | | | | $
|
|
409
|
+
| `nano-gpt/openai/gpt-chat-latest` | 1.1M | | | | | | $2 | $10 |
|
|
410
|
+
| `nano-gpt/openai/gpt-latest` | 1.1M | | | | | | $2 | $10 |
|
|
411
411
|
| `nano-gpt/openai/gpt-oss-120b` | 128K | | | | | | $0.35 | $0.75 |
|
|
412
412
|
| `nano-gpt/openai/gpt-oss-20b` | 128K | | | | | | $0.20 | $0.30 |
|
|
413
413
|
| `nano-gpt/openai/gpt-oss-safeguard-20b` | 128K | | | | | | $0.07 | $0.30 |
|
|
@@ -425,6 +425,10 @@ for await (const chunk of stream) {
|
|
|
425
425
|
| `nano-gpt/openai/o4-mini-high` | 200K | | | | | | $1 | $4 |
|
|
426
426
|
| `nano-gpt/ornith-ai/ornith-1.5-35b-a3b` | 262K | | | | | | $0.10 | $0.40 |
|
|
427
427
|
| `nano-gpt/ornith-ai/ornith-1.5-35b-a3b:thinking` | 262K | | | | | | $0.10 | $0.40 |
|
|
428
|
+
| `nano-gpt/ornith-ai/ornith-1.5-397b` | 262K | | | | | | $0.90 | $4 |
|
|
429
|
+
| `nano-gpt/ornith-ai/ornith-1.5-397b:thinking` | 262K | | | | | | $0.90 | $4 |
|
|
430
|
+
| `nano-gpt/ornith-ai/ornith-1.5-9b` | 262K | | | | | | $0.05 | $0.10 |
|
|
431
|
+
| `nano-gpt/ornith-ai/ornith-1.5-9b:thinking` | 262K | | | | | | $0.05 | $0.10 |
|
|
428
432
|
| `nano-gpt/pamanseau/OpenReasoning-Nemotron-32B` | 33K | | | | | | $0.10 | $0.40 |
|
|
429
433
|
| `nano-gpt/perceptron/perceptron-mk1` | 33K | | | | | | $0.15 | $2 |
|
|
430
434
|
| `nano-gpt/perplexity-academic-researcher` | 127K | | | | | | $2 | $8 |
|
|
@@ -463,9 +467,13 @@ for await (const chunk of stream) {
|
|
|
463
467
|
| `nano-gpt/qwen/qwen3.5-plus` | 984K | | | | | | $0.40 | $2 |
|
|
464
468
|
| `nano-gpt/qwen/qwen3.5-plus-thinking` | 984K | | | | | | $0.40 | $2 |
|
|
465
469
|
| `nano-gpt/qwen/Qwen3.6-35B-A3B` | 262K | | | | | | $0.11 | $0.80 |
|
|
466
|
-
| `nano-gpt/qwen/qwen3.6-35b-a3b-uncensored` |
|
|
470
|
+
| `nano-gpt/qwen/qwen3.6-35b-a3b-uncensored` | 262K | | | | | | $0.15 | $0.50 |
|
|
471
|
+
| `nano-gpt/qwen/qwen3.6-35b-a3b-uncensored:thinking` | 262K | | | | | | $0.15 | $0.50 |
|
|
467
472
|
| `nano-gpt/qwen/Qwen3.6-35B-A3B:thinking` | 262K | | | | | | $0.11 | $0.80 |
|
|
468
|
-
| `nano-gpt/qwen/qwen3.8-27b-
|
|
473
|
+
| `nano-gpt/qwen/qwen3.8-27b-obliterated` | 262K | | | | | | $0.18 | $0.50 |
|
|
474
|
+
| `nano-gpt/qwen/qwen3.8-27b-obliterated:thinking` | 262K | | | | | | $0.18 | $0.50 |
|
|
475
|
+
| `nano-gpt/qwen/qwen3.8-27b-uncensored` | 262K | | | | | | $0.18 | $0.50 |
|
|
476
|
+
| `nano-gpt/qwen/qwen3.8-27b-uncensored:thinking` | 262K | | | | | | $0.18 | $0.50 |
|
|
469
477
|
| `nano-gpt/qwen25-vl-72b-instruct` | 32K | | | | | | $0.70 | $0.70 |
|
|
470
478
|
| `nano-gpt/qwen3-30b-a3b-instruct-2507` | 256K | | | | | | $0.20 | $0.50 |
|
|
471
479
|
| `nano-gpt/qwen3-coder-30b-a3b-instruct` | 128K | | | | | | $0.10 | $0.40 |
|
|
@@ -553,6 +561,7 @@ for await (const chunk of stream) {
|
|
|
553
561
|
| `nano-gpt/TEE/qwen3.6-27b` | 262K | | | | | | $0.32 | $3 |
|
|
554
562
|
| `nano-gpt/TEE/qwen3.6-35b-a3b` | 262K | | | | | | $0.20 | $1 |
|
|
555
563
|
| `nano-gpt/TEE/qwen3.6-35b-a3b-uncensored` | 131K | | | | | | $0.30 | $2 |
|
|
564
|
+
| `nano-gpt/TEE/qwen3.8-27b` | 262K | | | | | | $0.40 | $3 |
|
|
556
565
|
| `nano-gpt/tencent/Hunyuan-MT-7B` | 8K | | | | | | $10 | $20 |
|
|
557
566
|
| `nano-gpt/tencent/hy3` | 262K | | | | | | $0.07 | $0.26 |
|
|
558
567
|
| `nano-gpt/TheDrummer/Anubis-70B-v1` | 66K | | | | | | $0.31 | $0.31 |
|
|
@@ -581,7 +590,7 @@ for await (const chunk of stream) {
|
|
|
581
590
|
| `nano-gpt/upstage/solar-pro-3` | 128K | | | | | | $0.15 | $0.60 |
|
|
582
591
|
| `nano-gpt/upstage/solar-pro4` | 524K | | | | | | $0.03 | $0.12 |
|
|
583
592
|
| `nano-gpt/upstage/solar-pro4:thinking` | 524K | | | | | | $0.03 | $0.12 |
|
|
584
|
-
| `nano-gpt/venice-uncensored` | 128K | | | | | | $0.40 | $
|
|
593
|
+
| `nano-gpt/venice-uncensored` | 128K | | | | | | $0.40 | $2 |
|
|
585
594
|
| `nano-gpt/VongolaChouko/Starcannon-Unleashed-12B-v1.0` | 16K | | | | | | $0.49 | $0.49 |
|
|
586
595
|
| `nano-gpt/x-ai/grok-4.20` | 2.0M | | | | | | $2 | $6 |
|
|
587
596
|
| `nano-gpt/x-ai/grok-4.20-multi-agent` | 2.0M | | | | | | $2 | $6 |
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# NeoSmith
|
|
4
|
+
|
|
5
|
+
Access 4 NeoSmith models through Mastra's model router. Authentication is handled automatically using the `NEOSMITH_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [NeoSmith documentation](https://neosmith.ai/docs).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
NEOSMITH_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: "neosmith/neosmith.intelligent-basic"
|
|
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
|
+
> **Note:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [NeoSmith documentation](https://neosmith.ai/docs) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| --------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `neosmith/neosmith.intelligent-basic` | 1.0M | | | | | | $1 | $4 |
|
|
40
|
+
| `neosmith/neosmith.intelligent-maestro` | 1.0M | | | | | | $2 | $12 |
|
|
41
|
+
| `neosmith/neosmith.intelligent-pro` | 1.0M | | | | | | $2 | $8 |
|
|
42
|
+
| `neosmith/neosmith.neolite` | 512K | | | | | | $0.60 | $2 |
|
|
43
|
+
|
|
44
|
+
## Advanced configuration
|
|
45
|
+
|
|
46
|
+
### Custom headers
|
|
47
|
+
|
|
48
|
+
```typescript
|
|
49
|
+
const agent = new Agent({
|
|
50
|
+
id: "custom-agent",
|
|
51
|
+
name: "custom-agent",
|
|
52
|
+
model: {
|
|
53
|
+
url: "https://router.neosmith.ai/v1",
|
|
54
|
+
id: "neosmith/neosmith.intelligent-basic",
|
|
55
|
+
apiKey: process.env.NEOSMITH_API_KEY,
|
|
56
|
+
headers: {
|
|
57
|
+
"X-Custom-Header": "value"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Dynamic model selection
|
|
64
|
+
|
|
65
|
+
```typescript
|
|
66
|
+
const agent = new Agent({
|
|
67
|
+
id: "dynamic-agent",
|
|
68
|
+
name: "Dynamic Agent",
|
|
69
|
+
model: ({ requestContext }) => {
|
|
70
|
+
const useAdvanced = requestContext.task === "complex";
|
|
71
|
+
return useAdvanced
|
|
72
|
+
? "neosmith/neosmith.neolite"
|
|
73
|
+
: "neosmith/neosmith.intelligent-basic";
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
## Direct provider installation
|
|
79
|
+
|
|
80
|
+
This provider can also be installed directly as a standalone package, which can be used instead of the Mastra model router string. View the [package documentation](https://www.npmjs.com/package/@ai-sdk/openai) for more details.
|
|
81
|
+
|
|
82
|
+
**npm**:
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
npm install @ai-sdk/openai
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
**pnpm**:
|
|
89
|
+
|
|
90
|
+
```bash
|
|
91
|
+
pnpm add @ai-sdk/openai
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
**Yarn**:
|
|
95
|
+
|
|
96
|
+
```bash
|
|
97
|
+
yarn add @ai-sdk/openai
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
**Bun**:
|
|
101
|
+
|
|
102
|
+
```bash
|
|
103
|
+
bun add @ai-sdk/openai
|
|
104
|
+
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Nvidia
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 102 Nvidia models through Mastra's model router. Authentication is handled automatically using the `NVIDIA_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Nvidia documentation](https://docs.api.nvidia.com/nim/).
|
|
8
8
|
|
|
@@ -44,6 +44,7 @@ for await (const chunk of stream) {
|
|
|
44
44
|
| `nvidia/black-forest-labs/flux.1-dev` | 4K | | | | | | — | — |
|
|
45
45
|
| `nvidia/bytedance/seed-oss-36b-instruct` | 262K | | | | | | — | — |
|
|
46
46
|
| `nvidia/deepseek-ai/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
47
|
+
| `nvidia/deepseek-ai/deepseek-v4-flash-0731` | 1.0M | | | | | | — | — |
|
|
47
48
|
| `nvidia/deepseek-ai/deepseek-v4-pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
48
49
|
| `nvidia/google/gemma-2-2b-it` | 128K | | | | | | — | — |
|
|
49
50
|
| `nvidia/google/gemma-3-12b-it` | 131K | | | | | | — | — |
|
|
@@ -78,6 +79,7 @@ for await (const chunk of stream) {
|
|
|
78
79
|
| `nvidia/mistralai/mistral-small-4-119b-2603` | 128K | | | | | | — | — |
|
|
79
80
|
| `nvidia/mistralai/mixtral-8x22b-instruct` | 66K | | | | | | — | — |
|
|
80
81
|
| `nvidia/mistralai/mixtral-8x7b-instruct` | 33K | | | | | | — | — |
|
|
82
|
+
| `nvidia/moonshotai/kimi-k3` | 1.0M | | | | | | — | — |
|
|
81
83
|
| `nvidia/nvidia/active-speaker-detection` | — | | | | | | — | — |
|
|
82
84
|
| `nvidia/nvidia/bevformer` | 128K | | | | | | — | — |
|
|
83
85
|
| `nvidia/nvidia/cosmos-predict1-5b` | — | | | | | | — | — |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Ofox
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 111 Ofox models through Mastra's model router. Authentication is handled automatically using the `OFOX_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Ofox documentation](https://ofox.ai/docs).
|
|
8
8
|
|
|
@@ -71,6 +71,7 @@ for await (const chunk of stream) {
|
|
|
71
71
|
| `ofox/bailian/qwen3.8-max` | 1.0M | | | | | | $2 | $6 |
|
|
72
72
|
| `ofox/deepseek/deepseek-v3.2` | 128K | | | | | | $0.29 | $0.43 |
|
|
73
73
|
| `ofox/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.44 | $1 |
|
|
74
|
+
| `ofox/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.44 | $1 |
|
|
74
75
|
| `ofox/deepseek/deepseek-v4-flash-vision-exp` | 1.0M | | | | | | $0.44 | $1 |
|
|
75
76
|
| `ofox/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $1 | $4 |
|
|
76
77
|
| `ofox/deepseek/deepseek-v4-pro-0423` | 1.0M | | | | | | $1 | $4 |
|
|
@@ -58,9 +58,9 @@ for await (const chunk of stream) {
|
|
|
58
58
|
| `openai/gpt-5.4-pro` | 1.1M | | | | | | $30 | $180 |
|
|
59
59
|
| `openai/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
60
60
|
| `openai/gpt-5.5-pro` | 1.1M | | | | | | $30 | $180 |
|
|
61
|
-
| `openai/gpt-5.6` | 1.1M | | | | | | $
|
|
61
|
+
| `openai/gpt-5.6` | 1.1M | | | | | | $4 | $20 |
|
|
62
62
|
| `openai/gpt-5.6-luna` | 1.1M | | | | | | $0.20 | $1 |
|
|
63
|
-
| `openai/gpt-5.6-sol` | 1.1M | | | | | | $
|
|
63
|
+
| `openai/gpt-5.6-sol` | 1.1M | | | | | | $4 | $20 |
|
|
64
64
|
| `openai/gpt-5.6-terra` | 1.1M | | | | | | $2 | $12 |
|
|
65
65
|
| `openai/gpt-image-1-mini` | — | | | | | | — | — |
|
|
66
66
|
| `openai/gpt-image-1.5` | — | | | | | | — | — |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# OpenCode Go
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 30 OpenCode Go models through Mastra's model router. Authentication is handled automatically using the `OPENCODE_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [OpenCode Go documentation](https://opencode.ai/docs/zen).
|
|
8
8
|
|
|
@@ -43,11 +43,12 @@ for await (const chunk of stream) {
|
|
|
43
43
|
| `opencode-go/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
44
44
|
| `opencode-go/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
45
45
|
| `opencode-go/gpt-5.6-luna` | 1.1M | | | | | | $0.20 | $1 |
|
|
46
|
-
| `opencode-go/grok-4.
|
|
46
|
+
| `opencode-go/grok-4.6` | 500K | | | | | | $2 | $6 |
|
|
47
47
|
| `opencode-go/hy3` | 256K | | | | | | $0.02 | $0.07 |
|
|
48
48
|
| `opencode-go/kimi-k2.6` | 262K | | | | | | $0.95 | $4 |
|
|
49
49
|
| `opencode-go/kimi-k2.7-code` | 262K | | | | | | $0.95 | $4 |
|
|
50
50
|
| `opencode-go/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
51
|
+
| `opencode-go/longcat-2.0` | 1.0M | | | | | | $0.30 | $1 |
|
|
51
52
|
| `opencode-go/mimo-v2.5` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
52
53
|
| `opencode-go/mimo-v2.5-pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
53
54
|
| `opencode-go/minimax-m2.7` | 205K | | | | | | $0.30 | $1 |
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# Opper
|
|
4
|
+
|
|
5
|
+
Access 40 Opper models through Mastra's model router. Authentication is handled automatically using the `OPPER_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [Opper documentation](https://opper.ai/models).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
OPPER_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: "opper/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
|
+
> **Note:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [Opper documentation](https://opper.ai/models) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| -------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `opper/anthropic/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
|
|
40
|
+
| `opper/anthropic/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
41
|
+
| `opper/anthropic/claude-opus-4-5` | 200K | | | | | | $5 | $25 |
|
|
42
|
+
| `opper/anthropic/claude-opus-4-6` | 1.0M | | | | | | $5 | $25 |
|
|
43
|
+
| `opper/anthropic/claude-opus-4-7` | 1.0M | | | | | | $5 | $25 |
|
|
44
|
+
| `opper/anthropic/claude-opus-4-8` | 1.0M | | | | | | $5 | $25 |
|
|
45
|
+
| `opper/anthropic/claude-opus-5` | 1.0M | | | | | | $5 | $25 |
|
|
46
|
+
| `opper/anthropic/claude-sonnet-4-5` | 200K | | | | | | $3 | $15 |
|
|
47
|
+
| `opper/anthropic/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
48
|
+
| `opper/anthropic/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
|
|
49
|
+
| `opper/gemini/gemini-3-flash-preview` | 1.0M | | | | | | $0.50 | $3 |
|
|
50
|
+
| `opper/gemini/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
|
|
51
|
+
| `opper/gemini/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
|
|
52
|
+
| `opper/gemini/gemini-3.5-flash-lite` | 1.0M | | | | | | $0.30 | $3 |
|
|
53
|
+
| `opper/meta/muse-spark-1.2` | 1.0M | | | | | | $1 | $4 |
|
|
54
|
+
| `opper/minimax/m3` | 1.0M | | | | | | $0.60 | $2 |
|
|
55
|
+
| `opper/mistral/devstral-2512` | 262K | | | | | | $0.40 | $2 |
|
|
56
|
+
| `opper/mistral/mistral-large-2512` | 262K | | | | | | $0.50 | $2 |
|
|
57
|
+
| `opper/mistral/mistral-small-2603` | 256K | | | | | | $0.15 | $0.60 |
|
|
58
|
+
| `opper/moonshot/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
59
|
+
| `opper/openai/gpt-5.3-chat-latest` | 128K | | | | | | $2 | $14 |
|
|
60
|
+
| `opper/openai/gpt-5.3-codex` | 400K | | | | | | $2 | $14 |
|
|
61
|
+
| `opper/openai/gpt-5.4` | 1.1M | | | | | | $3 | $15 |
|
|
62
|
+
| `opper/openai/gpt-5.4-mini` | 400K | | | | | | $0.75 | $5 |
|
|
63
|
+
| `opper/openai/gpt-5.4-nano` | 400K | | | | | | $0.20 | $1 |
|
|
64
|
+
| `opper/openai/gpt-5.4-pro` | 1.1M | | | | | | $30 | $180 |
|
|
65
|
+
| `opper/openai/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
66
|
+
| `opper/openai/gpt-5.5-pro` | 1.1M | | | | | | $30 | $180 |
|
|
67
|
+
| `opper/openai/gpt-5.6-luna` | 1.1M | | | | | | $0.20 | $1 |
|
|
68
|
+
| `opper/openai/gpt-5.6-sol` | 1.1M | | | | | | $5 | $30 |
|
|
69
|
+
| `opper/openai/gpt-5.6-terra` | 1.1M | | | | | | $2 | $12 |
|
|
70
|
+
| `opper/perplexity/sonar` | 128K | | | | | | $1 | $1 |
|
|
71
|
+
| `opper/perplexity/sonar-pro` | 200K | | | | | | $3 | $15 |
|
|
72
|
+
| `opper/perplexity/sonar-reasoning-pro` | 128K | | | | | | $2 | $8 |
|
|
73
|
+
| `opper/vertexai/gemini-3.7-flash` | 1.0M | | | | | | $0.75 | $4 |
|
|
74
|
+
| `opper/vertexai/gemini-3.7-flash-eu` | 1.0M | | | | | | $0.75 | $4 |
|
|
75
|
+
| `opper/xai/grok-4.3` | 1.0M | | | | | | $1 | $3 |
|
|
76
|
+
| `opper/xai/grok-4.5` | 500K | | | | | | $2 | $6 |
|
|
77
|
+
| `opper/xai/grok-4.6` | 500K | | | | | | $2 | $6 |
|
|
78
|
+
| `opper/xai/grok-build-0.1` | 256K | | | | | | $1 | $2 |
|
|
79
|
+
|
|
80
|
+
## Advanced configuration
|
|
81
|
+
|
|
82
|
+
### Custom headers
|
|
83
|
+
|
|
84
|
+
```typescript
|
|
85
|
+
const agent = new Agent({
|
|
86
|
+
id: "custom-agent",
|
|
87
|
+
name: "custom-agent",
|
|
88
|
+
model: {
|
|
89
|
+
url: "https://api.opper.ai/v3/compat",
|
|
90
|
+
id: "opper/anthropic/claude-fable-5",
|
|
91
|
+
apiKey: process.env.OPPER_API_KEY,
|
|
92
|
+
headers: {
|
|
93
|
+
"X-Custom-Header": "value"
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Dynamic model selection
|
|
100
|
+
|
|
101
|
+
```typescript
|
|
102
|
+
const agent = new Agent({
|
|
103
|
+
id: "dynamic-agent",
|
|
104
|
+
name: "Dynamic Agent",
|
|
105
|
+
model: ({ requestContext }) => {
|
|
106
|
+
const useAdvanced = requestContext.task === "complex";
|
|
107
|
+
return useAdvanced
|
|
108
|
+
? "opper/xai/grok-build-0.1"
|
|
109
|
+
: "opper/anthropic/claude-fable-5";
|
|
110
|
+
}
|
|
111
|
+
});
|
|
112
|
+
```
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# Pendra
|
|
4
|
+
|
|
5
|
+
Access 6 Pendra models through Mastra's model router. Authentication is handled automatically using the `PENDRA_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [Pendra documentation](https://pendra.ai/docs/integrations/opencode).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
PENDRA_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: "pendra/deepseek-v4-flash"
|
|
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
|
+
> **Note:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [Pendra documentation](https://pendra.ai/docs/integrations/opencode) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| -------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `pendra/deepseek-v4-flash` | 1.0M | | | | | | — | — |
|
|
40
|
+
| `pendra/glm-4.7-flash` | 200K | | | | | | — | — |
|
|
41
|
+
| `pendra/gpt-oss:120b` | 131K | | | | | | — | — |
|
|
42
|
+
| `pendra/llama3.3:70b` | 128K | | | | | | — | — |
|
|
43
|
+
| `pendra/qwen3-coder:30b` | 262K | | | | | | — | — |
|
|
44
|
+
| `pendra/qwen3.6:27b` | 262K | | | | | | — | — |
|
|
45
|
+
|
|
46
|
+
## Advanced configuration
|
|
47
|
+
|
|
48
|
+
### Custom headers
|
|
49
|
+
|
|
50
|
+
```typescript
|
|
51
|
+
const agent = new Agent({
|
|
52
|
+
id: "custom-agent",
|
|
53
|
+
name: "custom-agent",
|
|
54
|
+
model: {
|
|
55
|
+
url: "https://api.pendra.ai/api/v1",
|
|
56
|
+
id: "pendra/deepseek-v4-flash",
|
|
57
|
+
apiKey: process.env.PENDRA_API_KEY,
|
|
58
|
+
headers: {
|
|
59
|
+
"X-Custom-Header": "value"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Dynamic model selection
|
|
66
|
+
|
|
67
|
+
```typescript
|
|
68
|
+
const agent = new Agent({
|
|
69
|
+
id: "dynamic-agent",
|
|
70
|
+
name: "Dynamic Agent",
|
|
71
|
+
model: ({ requestContext }) => {
|
|
72
|
+
const useAdvanced = requestContext.task === "complex";
|
|
73
|
+
return useAdvanced
|
|
74
|
+
? "pendra/qwen3.6:27b"
|
|
75
|
+
: "pendra/deepseek-v4-flash";
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
```
|
|
@@ -107,7 +107,7 @@ for await (const chunk of stream) {
|
|
|
107
107
|
| `requesty/gpt-5.5@eu` | 1.1M | | | | | | $5 | $27 |
|
|
108
108
|
| `requesty/gpt-5.6-luna` | 1.1M | | | | | | $0.18 | $1 |
|
|
109
109
|
| `requesty/gpt-5.6-luna@eu` | 1.1M | | | | | | $0.20 | $1 |
|
|
110
|
-
| `requesty/gpt-5.6-sol` | 1.1M | | | | | | $
|
|
110
|
+
| `requesty/gpt-5.6-sol` | 1.1M | | | | | | $4 | $18 |
|
|
111
111
|
| `requesty/gpt-5.6-sol@eu` | 1.1M | | | | | | $5 | $30 |
|
|
112
112
|
| `requesty/gpt-5.6-terra` | 1.1M | | | | | | $2 | $11 |
|
|
113
113
|
| `requesty/gpt-5.6-terra@eu` | 1.1M | | | | | | $2 | $12 |
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# Standard Compute
|
|
4
|
+
|
|
5
|
+
Access 1 Standard Compute model through Mastra's model router. Authentication is handled automatically using the `STANDARDCOMPUTE_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [Standard Compute documentation](https://standardcompute.com/models).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
STANDARDCOMPUTE_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: "standardcompute/standardcompute"
|
|
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
|
+
> **Note:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [Standard Compute documentation](https://standardcompute.com/models) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| --------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `standardcompute/standardcompute` | 1.0M | | | | | | — | — |
|
|
40
|
+
|
|
41
|
+
## Advanced configuration
|
|
42
|
+
|
|
43
|
+
### Custom headers
|
|
44
|
+
|
|
45
|
+
```typescript
|
|
46
|
+
const agent = new Agent({
|
|
47
|
+
id: "custom-agent",
|
|
48
|
+
name: "custom-agent",
|
|
49
|
+
model: {
|
|
50
|
+
url: "https://api.stdcmpt.com/v1",
|
|
51
|
+
id: "standardcompute/standardcompute",
|
|
52
|
+
apiKey: process.env.STANDARDCOMPUTE_API_KEY,
|
|
53
|
+
headers: {
|
|
54
|
+
"X-Custom-Header": "value"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Dynamic model selection
|
|
61
|
+
|
|
62
|
+
```typescript
|
|
63
|
+
const agent = new Agent({
|
|
64
|
+
id: "dynamic-agent",
|
|
65
|
+
name: "Dynamic Agent",
|
|
66
|
+
model: ({ requestContext }) => {
|
|
67
|
+
const useAdvanced = requestContext.task === "complex";
|
|
68
|
+
return useAdvanced
|
|
69
|
+
? "standardcompute/standardcompute"
|
|
70
|
+
: "standardcompute/standardcompute";
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Vivgrid
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 21 Vivgrid models through Mastra's model router. Authentication is handled automatically using the `VIVGRID_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Vivgrid documentation](https://docs.vivgrid.com/models).
|
|
8
8
|
|
|
@@ -41,6 +41,7 @@ for await (const chunk of stream) {
|
|
|
41
41
|
| `vivgrid/deepseek-v4-pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
42
42
|
| `vivgrid/gemini-3.1-flash-lite-preview` | 1.0M | | | | | | $0.25 | $2 |
|
|
43
43
|
| `vivgrid/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
|
|
44
|
+
| `vivgrid/gemini-3.7-flash` | 1.0M | | | | | | $0.75 | $4 |
|
|
44
45
|
| `vivgrid/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
45
46
|
| `vivgrid/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
46
47
|
| `vivgrid/gpt-5-mini` | 272K | | | | | | $0.25 | $2 |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Weights & Biases
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 30 Weights & Biases models through Mastra's model router. Authentication is handled automatically using the `WANDB_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Weights & Biases documentation](https://docs.wandb.ai).
|
|
8
8
|
|
|
@@ -42,6 +42,7 @@ for await (const chunk of stream) {
|
|
|
42
42
|
| `wandb/deepseek-ai/DeepSeek-V4-Pro` | 1.0M | | | | | | $1 | $3 |
|
|
43
43
|
| `wandb/google/gemma-4-31B-it` | 262K | | | | | | $0.10 | $0.34 |
|
|
44
44
|
| `wandb/ibm-granite/granite-4.1-8b` | 131K | | | | | | $0.05 | $0.10 |
|
|
45
|
+
| `wandb/ibm-granite/granite-4.2-8b` | 131K | | | | | | $0.10 | $0.15 |
|
|
45
46
|
| `wandb/JetBrains/Mellum2-12B-A2.5B-Instruct` | 131K | | | | | | $0.05 | $0.10 |
|
|
46
47
|
| `wandb/meta-llama/Llama-3.1-70B-Instruct` | 128K | | | | | | $0.80 | $0.80 |
|
|
47
48
|
| `wandb/meta-llama/Llama-3.1-8B-Instruct` | 128K | | | | | | $0.22 | $0.22 |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Z.AI
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 15 Z.AI models through Mastra's model router. Authentication is handled automatically using the `ZHIPU_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Z.AI documentation](https://docs.z.ai/guides/overview/pricing).
|
|
8
8
|
|
|
@@ -49,6 +49,7 @@ for await (const chunk of stream) {
|
|
|
49
49
|
| `zai/glm-5-turbo` | 200K | | | | | | $1 | $4 |
|
|
50
50
|
| `zai/glm-5.1` | 200K | | | | | | $1 | $4 |
|
|
51
51
|
| `zai/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
52
|
+
| `zai/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
52
53
|
| `zai/glm-5v-turbo` | 200K | | | | | | $1 | $4 |
|
|
53
54
|
|
|
54
55
|
## Advanced configuration
|