@mastra/mcp-docs-server 1.2.7-alpha.8 → 1.2.8-alpha.0
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/agent-builder/integrations.md +44 -2
- package/.docs/docs/agent-builder/skill-registries.md +1 -3
- package/.docs/docs/agent-controller/overview.md +1 -1
- package/.docs/docs/agent-controller/session.md +1 -3
- package/.docs/docs/agents/code-mode.md +17 -1
- package/.docs/docs/agents/guardrails.md +8 -8
- package/.docs/docs/agents/overview.md +2 -2
- package/.docs/docs/agents/processors.md +9 -3
- package/.docs/docs/agents/skills.md +2 -4
- package/.docs/docs/agents/structured-output.md +1 -1
- package/.docs/docs/agents/supervisor-agents.md +1 -3
- package/.docs/docs/agents/using-tools.md +4 -4
- package/.docs/docs/browser/agent-browser.md +1 -3
- package/.docs/docs/browser/browser-viewer.md +1 -3
- package/.docs/docs/browser/stagehand.md +1 -1
- package/.docs/docs/capabilities/channels/overview.md +1 -3
- package/.docs/docs/deployment/mastra-server.md +2 -4
- package/.docs/docs/editor/overview.md +2 -6
- package/.docs/docs/editor/prompts.md +1 -1
- package/.docs/docs/editor/tools.md +3 -5
- package/.docs/docs/evals/custom-scorers.md +1 -3
- package/.docs/docs/evals/datasets/overview.md +4 -4
- package/.docs/docs/evals/datasets/running-experiments.md +4 -2
- package/.docs/docs/evals/evals-with-memory.md +1 -3
- package/.docs/docs/evals/gates-and-verdicts.md +17 -2
- package/.docs/docs/evals/quick-checks.md +1 -3
- package/.docs/docs/getting-started/file-based-agents.md +9 -4
- package/.docs/docs/long-running-agents/background-tasks.md +1 -1
- package/.docs/docs/long-running-agents/durable-agents.md +3 -5
- package/.docs/docs/long-running-agents/goals.md +1 -3
- package/.docs/docs/long-running-agents/signal-providers.md +1 -3
- package/.docs/docs/long-running-agents/signals.md +7 -21
- package/.docs/docs/mastra-platform/configuration.md +15 -22
- package/.docs/docs/mastra-platform/database.md +50 -6
- package/.docs/docs/mastra-platform/deploy.md +142 -0
- package/.docs/docs/mastra-platform/environments.md +103 -0
- package/.docs/docs/mastra-platform/github.md +2 -2
- package/.docs/docs/mastra-platform/overview.md +5 -5
- package/.docs/docs/mastra-platform/server.md +2 -0
- package/.docs/docs/mastra-platform/studio.md +5 -3
- package/.docs/docs/mcp/mcp-apps.md +3 -3
- package/.docs/docs/mcp/overview.md +6 -10
- package/.docs/docs/memory/overview.md +4 -4
- package/.docs/docs/observability/integrations/exporters/mastra-platform.md +1 -3
- package/.docs/docs/observability/logging.md +3 -1
- package/.docs/docs/observability/metrics/querying.md +2 -0
- package/.docs/docs/observability/tracing/overview.md +3 -1
- package/.docs/docs/server/auth/auth0.md +1 -1
- package/.docs/docs/server/auth/better-auth.md +2 -2
- package/.docs/docs/server/auth/clerk.md +1 -1
- package/.docs/docs/server/auth/firebase.md +1 -1
- package/.docs/docs/server/auth/google.md +2 -2
- package/.docs/docs/server/auth/jwt.md +2 -2
- package/.docs/docs/server/auth/okta.md +2 -2
- package/.docs/docs/server/auth/workos.md +1 -1
- package/.docs/docs/server/mastra-client.md +1 -1
- package/.docs/docs/server/mastra-server.md +1 -1
- package/.docs/docs/server/pubsub.md +1 -1
- package/.docs/docs/server/request-context.md +4 -4
- package/.docs/docs/server/server-adapters.md +8 -8
- package/.docs/docs/studio/auth.md +1 -3
- package/.docs/docs/workflows/agents-and-tools.md +3 -5
- package/.docs/docs/workflows/control-flow.md +1 -1
- package/.docs/docs/workflows/overview.md +5 -5
- package/.docs/guides/build-your-ui/assistant-ui.md +1 -1
- package/.docs/guides/build-your-ui/copilotkit/overview.md +1 -1
- package/.docs/guides/concepts/streaming.md +3 -3
- package/.docs/guides/guide/chef-michel.md +1 -1
- package/.docs/guides/guide/coding-agent.md +392 -0
- package/.docs/guides/migrations/mastra-cloud.md +5 -12
- package/.docs/models/environment-variables.md +14 -2
- package/.docs/models/gateways/azure-openai.md +15 -15
- package/.docs/models/gateways/mastra.md +2 -2
- package/.docs/models/gateways/openrouter.md +4 -7
- package/.docs/models/gateways/vercel.md +5 -10
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/abacus.md +44 -14
- package/.docs/models/providers/ai-router.md +77 -0
- package/.docs/models/providers/ambient.md +10 -6
- package/.docs/models/providers/baseten.md +1 -1
- package/.docs/models/providers/blueclaw.md +74 -0
- package/.docs/models/providers/crossmodel.md +8 -2
- package/.docs/models/providers/daoxe.md +81 -0
- package/.docs/models/providers/databricks.md +7 -2
- package/.docs/models/providers/deepinfra.md +2 -2
- package/.docs/models/providers/deepseek.md +2 -2
- package/.docs/models/providers/ebcloud.md +76 -0
- package/.docs/models/providers/empiriolabs.md +108 -0
- package/.docs/models/providers/google.md +4 -0
- package/.docs/models/providers/hpc-ai.md +16 -10
- package/.docs/models/providers/inferx.md +78 -0
- package/.docs/models/providers/llmgateway.md +2 -8
- package/.docs/models/providers/lynkr.md +73 -0
- package/.docs/models/providers/model-oracle-ai.md +87 -0
- package/.docs/models/providers/neon.md +1 -1
- package/.docs/models/providers/nvidia.md +1 -3
- package/.docs/models/providers/openai.md +12 -3
- package/.docs/models/providers/opencode.md +5 -2
- package/.docs/models/providers/pioneer.md +148 -0
- package/.docs/models/providers/routing-run.md +4 -1
- package/.docs/models/providers/snowflake-cortex.md +4 -1
- package/.docs/models/providers/stepfun-ai-step-plan.md +75 -0
- package/.docs/models/providers/stepfun-ai.md +6 -6
- package/.docs/models/providers/stepfun-step-plan.md +76 -0
- package/.docs/models/providers/stepfun.md +5 -5
- package/.docs/models/providers/unorouter.md +95 -0
- package/.docs/models/providers/vivgrid.md +5 -2
- package/.docs/models/providers/wafer.ai.md +9 -12
- package/.docs/models/providers/xai.md +1 -1
- package/.docs/models/providers/zenmux.md +5 -1
- package/.docs/models/providers.md +14 -2
- package/.docs/reference/agents/generateLegacy.md +8 -2
- package/.docs/reference/cli/mastra.md +131 -10
- package/.docs/reference/code-sdk/mount-agent-controller.md +2 -0
- package/.docs/reference/coding-agent/create-coding-agent.md +5 -4
- package/.docs/reference/evals/create-scorer.md +63 -0
- package/.docs/reference/evals/run-evals.md +2 -2
- package/.docs/reference/file-based-agents/logger.md +26 -0
- package/.docs/reference/file-based-agents/scorers.md +54 -0
- package/.docs/reference/index.md +2 -0
- package/.docs/reference/mastra-platform/api.md +1 -1
- package/.docs/reference/observability/metrics/automatic-metrics.md +8 -8
- package/.docs/reference/observability/tracing/exporters/braintrust.md +1 -0
- package/.docs/reference/observability/tracing/exporters/datadog.md +10 -9
- package/.docs/reference/observability/tracing/exporters/langsmith.md +8 -7
- package/.docs/reference/observability/tracing/exporters/posthog.md +13 -12
- package/.docs/reference/observability/tracing/exporters/sentry.md +1 -0
- package/.docs/reference/observability/tracing/interfaces.md +9 -0
- package/.docs/reference/processors/stream-error-retry-processor.md +39 -2
- package/.docs/reference/pubsub/base.md +10 -0
- package/.docs/reference/pubsub/caching-pubsub.md +8 -0
- package/.docs/reference/pubsub/redis-streams.md +12 -0
- package/.docs/reference/server/express-adapter.md +1 -3
- package/.docs/reference/server/fastify-adapter.md +1 -3
- package/.docs/reference/server/hono-adapter.md +1 -3
- package/.docs/reference/server/koa-adapter.md +1 -3
- package/.docs/reference/server/nestjs-adapter.md +1 -3
- package/.docs/reference/server/register-api-route.md +5 -4
- package/.docs/reference/templates/overview.md +1 -1
- package/.docs/reference/tools/mcp-client.md +22 -0
- package/.docs/reference/tools/mcp-server.md +161 -4
- package/.docs/reference/voice/google.md +48 -8
- package/.docs/reference/voice/speechify.md +10 -6
- package/.docs/reference/workspace/agentcore-runtime-sandbox.md +1 -3
- package/.docs/reference/workspace/agentfs-filesystem.md +1 -3
- package/.docs/reference/workspace/apple-container-sandbox.md +1 -3
- package/.docs/reference/workspace/archil-filesystem.md +1 -3
- package/.docs/reference/workspace/azure-blob-filesystem.md +1 -3
- package/.docs/reference/workspace/blaxel-sandbox.md +1 -3
- package/.docs/reference/workspace/daytona-sandbox.md +1 -3
- package/.docs/reference/workspace/docker-sandbox.md +1 -3
- package/.docs/reference/workspace/e2b-sandbox.md +20 -3
- package/.docs/reference/workspace/files-sdk-filesystem.md +1 -3
- package/.docs/reference/workspace/gcs-filesystem.md +1 -3
- package/.docs/reference/workspace/google-drive-filesystem.md +1 -3
- package/.docs/reference/workspace/local-filesystem.md +1 -3
- package/.docs/reference/workspace/local-sandbox.md +1 -3
- package/.docs/reference/workspace/modal-sandbox.md +1 -3
- package/.docs/reference/workspace/railway-sandbox.md +1 -3
- package/.docs/reference/workspace/s3-filesystem.md +1 -3
- package/.docs/reference/workspace/vercel-sandbox.md +5 -7
- package/.docs/reference/workspace/vercel-serverless.md +1 -3
- package/CHANGELOG.md +79 -0
- package/package.json +10 -10
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# OpenAI
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 56 OpenAI models through Mastra's model router. Authentication is handled automatically using the `OPENAI_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [OpenAI documentation](https://platform.openai.com/docs/models).
|
|
8
8
|
|
|
@@ -78,6 +78,7 @@ for await (const chunk of stream) {
|
|
|
78
78
|
| `openai/gpt-image-1-mini` | — | | | | | | — | — |
|
|
79
79
|
| `openai/gpt-image-1.5` | — | | | | | | — | — |
|
|
80
80
|
| `openai/gpt-image-2` | — | | | | | | $5 | $30 |
|
|
81
|
+
| `openai/gpt-realtime-2.1` | 128K | | | | | | $4 | $24 |
|
|
81
82
|
| `openai/o1` | 200K | | | | | | $15 | $60 |
|
|
82
83
|
| `openai/o1-pro` | 200K | | | | | | $150 | $600 |
|
|
83
84
|
| `openai/o3` | 200K | | | | | | $2 | $8 |
|
|
@@ -141,7 +142,7 @@ const response = await agent.generate("Hello!", {
|
|
|
141
142
|
|
|
142
143
|
**conversation** (`string | null | undefined`)
|
|
143
144
|
|
|
144
|
-
**include** (`("file_search_call.results" | "message.output_text.logprobs" | "reasoning.encrypted_content")[] | null | undefined`)
|
|
145
|
+
**include** (`("web_search_call.results" | "file_search_call.results" | "message.output_text.logprobs" | "reasoning.encrypted_content")[] | null | undefined`)
|
|
145
146
|
|
|
146
147
|
**instructions** (`string | null | undefined`)
|
|
147
148
|
|
|
@@ -157,18 +158,26 @@ const response = await agent.generate("Hello!", {
|
|
|
157
158
|
|
|
158
159
|
**promptCacheKey** (`string | null | undefined`)
|
|
159
160
|
|
|
161
|
+
**promptCacheOptions** (`{ mode?: "explicit" | "implicit" | undefined; ttl?: "30m" | undefined; } | undefined`)
|
|
162
|
+
|
|
160
163
|
**promptCacheRetention** (`"in_memory" | "24h" | null | undefined`)
|
|
161
164
|
|
|
162
165
|
**reasoningEffort** (`string | null | undefined`)
|
|
163
166
|
|
|
167
|
+
**reasoningMode** (`"standard" | "pro" | undefined`)
|
|
168
|
+
|
|
169
|
+
**reasoningContext** (`"auto" | "current_turn" | "all_turns" | undefined`)
|
|
170
|
+
|
|
164
171
|
**reasoningSummary** (`string | null | undefined`)
|
|
165
172
|
|
|
166
173
|
**safetyIdentifier** (`string | null | undefined`)
|
|
167
174
|
|
|
168
|
-
**serviceTier** (`"
|
|
175
|
+
**serviceTier** (`"auto" | "default" | "flex" | "priority" | null | undefined`)
|
|
169
176
|
|
|
170
177
|
**store** (`boolean | null | undefined`): Controls whether OpenAI stores your API requests for model training. Required to be "false" if your organization has zero data retention enabled. See: https\://platform.openai.com/docs/guides/your-data#zero-data-retention
|
|
171
178
|
|
|
179
|
+
**passThroughUnsupportedFiles** (`boolean | undefined`)
|
|
180
|
+
|
|
172
181
|
**strictJsonSchema** (`boolean | null | undefined`)
|
|
173
182
|
|
|
174
183
|
**textVerbosity** (`"low" | "medium" | "high" | null | undefined`)
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# OpenCode Zen
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 55 OpenCode Zen 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 Zen documentation](https://opencode.ai/docs/zen).
|
|
8
8
|
|
|
@@ -74,9 +74,12 @@ for await (const chunk of stream) {
|
|
|
74
74
|
| `opencode/gpt-5.4-pro` | 1.1M | | | | | | $30 | $180 |
|
|
75
75
|
| `opencode/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
76
76
|
| `opencode/gpt-5.5-pro` | 1.1M | | | | | | $30 | $180 |
|
|
77
|
+
| `opencode/gpt-5.6-luna` | 1.1M | | | | | | $1 | $6 |
|
|
78
|
+
| `opencode/gpt-5.6-sol` | 1.1M | | | | | | $5 | $30 |
|
|
79
|
+
| `opencode/gpt-5.6-terra` | 1.1M | | | | | | $3 | $15 |
|
|
77
80
|
| `opencode/grok-4.5` | 500K | | | | | | $2 | $6 |
|
|
78
81
|
| `opencode/grok-build-0.1` | 256K | | | | | | $1 | $2 |
|
|
79
|
-
| `opencode/hy3-free` |
|
|
82
|
+
| `opencode/hy3-free` | 190K | | | | | | — | — |
|
|
80
83
|
| `opencode/kimi-k2.5` | 262K | | | | | | $0.60 | $3 |
|
|
81
84
|
| `opencode/kimi-k2.6` | 262K | | | | | | $0.95 | $4 |
|
|
82
85
|
| `opencode/kimi-k2.7-code` | 262K | | | | | | $0.95 | $4 |
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# Pioneer
|
|
4
|
+
|
|
5
|
+
Access 76 Pioneer models through Mastra's model router. Authentication is handled automatically using the `PIONEER_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [Pioneer documentation](https://agent.pioneer.ai/llms.txt).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
PIONEER_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: "pioneer/HuggingFaceTB/SmolLM3-3B-Base"
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// Generate a response
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
|
+
|
|
26
|
+
// Stream a response
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
|
+
for await (const chunk of stream) {
|
|
29
|
+
console.log(chunk);
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [Pioneer documentation](https://agent.pioneer.ai/llms.txt) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ------------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `pioneer/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
40
|
+
| `pioneer/claude-opus-4-1` | 200K | | | | | | $15 | $75 |
|
|
41
|
+
| `pioneer/claude-opus-4-5` | 200K | | | | | | $5 | $25 |
|
|
42
|
+
| `pioneer/claude-opus-4-6` | 1.0M | | | | | | $5 | $25 |
|
|
43
|
+
| `pioneer/claude-opus-4-7` | 1.0M | | | | | | $5 | $25 |
|
|
44
|
+
| `pioneer/claude-opus-4-8` | 1.0M | | | | | | $5 | $25 |
|
|
45
|
+
| `pioneer/claude-sonnet-4-5` | 1.0M | | | | | | $3 | $15 |
|
|
46
|
+
| `pioneer/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
47
|
+
| `pioneer/deepseek-ai/DeepSeek-V4-Flash` | 1.0M | | | | | | $0.10 | $0.20 |
|
|
48
|
+
| `pioneer/deepseek-ai/DeepSeek-V4-Pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
49
|
+
| `pioneer/fastino/gliguard-LLMGuardrails-300M` | 8K | | | | | | $0.15 | $0.15 |
|
|
50
|
+
| `pioneer/fastino/gliner2-base-v1` | 8K | | | | | | $0.15 | $0.15 |
|
|
51
|
+
| `pioneer/fastino/gliner2-large-v1` | 8K | | | | | | $0.15 | $0.15 |
|
|
52
|
+
| `pioneer/fastino/gliner2-multi-large-v1` | 8K | | | | | | $0.15 | $0.15 |
|
|
53
|
+
| `pioneer/fastino/gliner2-multi-v1` | 8K | | | | | | $0.15 | $0.15 |
|
|
54
|
+
| `pioneer/fastino/gliner2-privacy-filter-PII-multi` | 8K | | | | | | $0.15 | $0.15 |
|
|
55
|
+
| `pioneer/gemini-3-flash` | 1.0M | | | | | | $0.50 | $3 |
|
|
56
|
+
| `pioneer/gemini-3.1-pro` | 1.0M | | | | | | $2 | $12 |
|
|
57
|
+
| `pioneer/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
|
|
58
|
+
| `pioneer/google/diffusiongemma-26B-A4B-it` | 262K | | | | | | $0.50 | $0.50 |
|
|
59
|
+
| `pioneer/google/gemma-3-4b-pt` | 33K | | | | | | $0.15 | $0.15 |
|
|
60
|
+
| `pioneer/google/gemma-4-12B-it` | 33K | | | | | | $0.25 | $0.25 |
|
|
61
|
+
| `pioneer/google/gemma-4-31B-it` | 33K | | | | | | $0.50 | $0.50 |
|
|
62
|
+
| `pioneer/google/gemma-4-E2B-it` | 33K | | | | | | $0.10 | $0.10 |
|
|
63
|
+
| `pioneer/google/gemma-4-E4B-it` | 33K | | | | | | $0.20 | $0.20 |
|
|
64
|
+
| `pioneer/gpt-4.1` | 1.0M | | | | | | $2 | $8 |
|
|
65
|
+
| `pioneer/gpt-4.1-mini` | 1.0M | | | | | | $0.40 | $2 |
|
|
66
|
+
| `pioneer/gpt-4.1-nano` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
67
|
+
| `pioneer/gpt-4o` | 128K | | | | | | $3 | $10 |
|
|
68
|
+
| `pioneer/gpt-4o-mini` | 128K | | | | | | $0.15 | $0.60 |
|
|
69
|
+
| `pioneer/gpt-5-mini` | 400K | | | | | | $0.25 | $2 |
|
|
70
|
+
| `pioneer/gpt-5-nano` | 400K | | | | | | $0.05 | $0.40 |
|
|
71
|
+
| `pioneer/gpt-5.1` | 400K | | | | | | $1 | $10 |
|
|
72
|
+
| `pioneer/gpt-5.3-codex` | 400K | | | | | | $2 | $14 |
|
|
73
|
+
| `pioneer/gpt-5.4` | 1.1M | | | | | | $3 | $15 |
|
|
74
|
+
| `pioneer/gpt-5.4-mini` | 400K | | | | | | $0.75 | $5 |
|
|
75
|
+
| `pioneer/gpt-5.4-nano` | 1.0M | | | | | | $0.20 | $1 |
|
|
76
|
+
| `pioneer/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
77
|
+
| `pioneer/HuggingFaceTB/SmolLM3-3B-Base` | 33K | | | | | | $0.15 | $0.15 |
|
|
78
|
+
| `pioneer/LiquidAI/LFM2-24B-A2B` | 33K | | | | | | $0.03 | $0.12 |
|
|
79
|
+
| `pioneer/meta-llama/Llama-3.1-8B-Instruct` | 131K | | | | | | $0.20 | $0.20 |
|
|
80
|
+
| `pioneer/meta-llama/Llama-3.2-1B-Instruct` | 131K | | | | | | $0.10 | $0.20 |
|
|
81
|
+
| `pioneer/meta-llama/Llama-3.2-3B-Instruct` | 131K | | | | | | $0.10 | $0.34 |
|
|
82
|
+
| `pioneer/meta-llama/Llama-3.3-70B-Instruct` | 131K | | | | | | $0.90 | $0.90 |
|
|
83
|
+
| `pioneer/MiniMaxAI/MiniMax-M2.7` | 205K | | | | | | $0.28 | $1 |
|
|
84
|
+
| `pioneer/MiniMaxAI/MiniMax-M3` | 1.0M | | | | | | $0.30 | $1 |
|
|
85
|
+
| `pioneer/mistral-medium-3.5` | 262K | | | | | | $2 | $8 |
|
|
86
|
+
| `pioneer/mistralai/Mistral-7B-Instruct-v0.3` | 33K | | | | | | $0.20 | $0.20 |
|
|
87
|
+
| `pioneer/mistralai/Mistral-Nemo-Instruct-2407` | 131K | | | | | | $0.02 | $0.03 |
|
|
88
|
+
| `pioneer/mistralai/Mistral-Small-4-119B-2603` | 262K | | | | | | $0.15 | $0.60 |
|
|
89
|
+
| `pioneer/moonshotai/Kimi-K2.6` | 262K | | | | | | $0.95 | $4 |
|
|
90
|
+
| `pioneer/moonshotai/Kimi-K2.7-Code` | 262K | | | | | | $0.95 | $4 |
|
|
91
|
+
| `pioneer/nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-BF16` | 262K | | | | | | $0.05 | $0.20 |
|
|
92
|
+
| `pioneer/nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-FP8` | 1.0M | | | | | | $0.09 | $0.45 |
|
|
93
|
+
| `pioneer/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16` | 1.0M | | | | | | $0.50 | $3 |
|
|
94
|
+
| `pioneer/openai/gpt-oss-120b` | 131K | | | | | | $0.15 | $0.60 |
|
|
95
|
+
| `pioneer/openai/gpt-oss-20b` | 131K | | | | | | $0.07 | $0.30 |
|
|
96
|
+
| `pioneer/pioneer/auto` | 1.0M | | | | | | — | — |
|
|
97
|
+
| `pioneer/Qwen/Qwen3-1.7B-Base` | 33K | | | | | | $0.10 | $0.10 |
|
|
98
|
+
| `pioneer/Qwen/Qwen3-32B` | 131K | | | | | | $0.90 | $0.90 |
|
|
99
|
+
| `pioneer/Qwen/Qwen3-4B-Base` | 33K | | | | | | $0.15 | $0.15 |
|
|
100
|
+
| `pioneer/Qwen/Qwen3-4B-Instruct-2507` | 262K | | | | | | $0.20 | $0.20 |
|
|
101
|
+
| `pioneer/Qwen/Qwen3-8B` | 131K | | | | | | $0.20 | $0.20 |
|
|
102
|
+
| `pioneer/Qwen/Qwen3.5-9B` | 33K | | | | | | $0.30 | $0.30 |
|
|
103
|
+
| `pioneer/Qwen/Qwen3.6-27B` | 33K | | | | | | $0.60 | $0.60 |
|
|
104
|
+
| `pioneer/Qwen/Qwen3.6-35B-A3B` | 262K | | | | | | $0.14 | $1 |
|
|
105
|
+
| `pioneer/qwen3.6-flash` | 1.0M | | | | | | $0.19 | $1 |
|
|
106
|
+
| `pioneer/qwen3.6-max-preview` | 262K | | | | | | $1 | $6 |
|
|
107
|
+
| `pioneer/qwen3.6-plus` | 1.0M | | | | | | $0.33 | $2 |
|
|
108
|
+
| `pioneer/qwen3.7-max` | 1.0M | | | | | | $1 | $4 |
|
|
109
|
+
| `pioneer/qwen3.7-plus` | 1.0M | | | | | | $0.32 | $1 |
|
|
110
|
+
| `pioneer/sakana/fugu-ultra` | 1.0M | | | | | | $5 | $30 |
|
|
111
|
+
| `pioneer/XiaomiMiMo/MiMo-V2.5` | 1.1M | | | | | | $0.14 | $0.28 |
|
|
112
|
+
| `pioneer/XiaomiMiMo/MiMo-V2.5-Pro` | 1.1M | | | | | | $0.43 | $0.87 |
|
|
113
|
+
| `pioneer/zai-org/GLM-5.1` | 203K | | | | | | $0.98 | $3 |
|
|
114
|
+
| `pioneer/zai-org/GLM-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
115
|
+
|
|
116
|
+
## Advanced configuration
|
|
117
|
+
|
|
118
|
+
### Custom headers
|
|
119
|
+
|
|
120
|
+
```typescript
|
|
121
|
+
const agent = new Agent({
|
|
122
|
+
id: "custom-agent",
|
|
123
|
+
name: "custom-agent",
|
|
124
|
+
model: {
|
|
125
|
+
url: "https://api.pioneer.ai/v1",
|
|
126
|
+
id: "pioneer/HuggingFaceTB/SmolLM3-3B-Base",
|
|
127
|
+
apiKey: process.env.PIONEER_API_KEY,
|
|
128
|
+
headers: {
|
|
129
|
+
"X-Custom-Header": "value"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### Dynamic model selection
|
|
136
|
+
|
|
137
|
+
```typescript
|
|
138
|
+
const agent = new Agent({
|
|
139
|
+
id: "dynamic-agent",
|
|
140
|
+
name: "Dynamic Agent",
|
|
141
|
+
model: ({ requestContext }) => {
|
|
142
|
+
const useAdvanced = requestContext.task === "complex";
|
|
143
|
+
return useAdvanced
|
|
144
|
+
? "pioneer/zai-org/GLM-5.2"
|
|
145
|
+
: "pioneer/HuggingFaceTB/SmolLM3-3B-Base";
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# routing.run
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 15 routing.run models through Mastra's model router. Authentication is handled automatically using the `ROUTING_RUN_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [routing.run documentation](https://docs.routing.run).
|
|
8
8
|
|
|
@@ -42,6 +42,9 @@ for await (const chunk of stream) {
|
|
|
42
42
|
| `routing-run/deepseek-v4-pro` | 1.0M | | | | | | $0.35 | $0.70 |
|
|
43
43
|
| `routing-run/glm-5.2` | 200K | | | | | | $0.80 | $2 |
|
|
44
44
|
| `routing-run/glm-5.2-nitro` | 200K | | | | | | $0.80 | $2 |
|
|
45
|
+
| `routing-run/gpt-5.6-luna` | 1.0M | | | | | | $0.70 | $4 |
|
|
46
|
+
| `routing-run/gpt-5.6-sol` | 1.0M | | | | | | $3 | $15 |
|
|
47
|
+
| `routing-run/gpt-5.6-terra` | 1.0M | | | | | | $2 | $9 |
|
|
45
48
|
| `routing-run/kimi-k2.6` | 200K | | | | | | $0.28 | $1 |
|
|
46
49
|
| `routing-run/kimi-k2.6-nitro` | 200K | | | | | | $0.28 | $1 |
|
|
47
50
|
| `routing-run/kimi-k2.7-code` | 200K | | | | | | $0.28 | $1 |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Snowflake Cortex
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 21 Snowflake Cortex models through Mastra's model router. Authentication is handled automatically using the `SNOWFLAKE_CORTEX_PAT` environment variable. Configure `SNOWFLAKE_ACCOUNT` as well.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Snowflake Cortex documentation](https://docs.snowflake.com/en/user-guide/snowflake-cortex/cortex-rest-api).
|
|
8
8
|
|
|
@@ -54,6 +54,9 @@ for await (const chunk of stream) {
|
|
|
54
54
|
| `snowflake-cortex/openai-gpt-5.2` | 400K | | | | | | — | — |
|
|
55
55
|
| `snowflake-cortex/openai-gpt-5.4` | 1.1M | | | | | | — | — |
|
|
56
56
|
| `snowflake-cortex/openai-gpt-5.5` | 1.1M | | | | | | — | — |
|
|
57
|
+
| `snowflake-cortex/openai-gpt-5.6-luna` | 1.1M | | | | | | — | — |
|
|
58
|
+
| `snowflake-cortex/openai-gpt-5.6-sol` | 1.1M | | | | | | — | — |
|
|
59
|
+
| `snowflake-cortex/openai-gpt-5.6-terra` | 1.1M | | | | | | — | — |
|
|
57
60
|
| `snowflake-cortex/snowflake-llama3.3-70b` | 128K | | | | | | — | — |
|
|
58
61
|
|
|
59
62
|
## Advanced configuration
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# StepFun Step Plan (Global)
|
|
4
|
+
|
|
5
|
+
Access 3 StepFun Step Plan (Global) models through Mastra's model router. Authentication is handled automatically using the `STEPFUN_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [StepFun Step Plan (Global) documentation](https://platform.stepfun.ai/docs/en/step-plan/integrations/reasoning-api).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
STEPFUN_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: "stepfun-ai-step-plan/step-3.5-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
|
+
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [StepFun Step Plan (Global) documentation](https://platform.stepfun.ai/docs/en/step-plan/integrations/reasoning-api) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ------------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `stepfun-ai-step-plan/step-3.5-flash` | 256K | | | | | | — | — |
|
|
40
|
+
| `stepfun-ai-step-plan/step-3.5-flash-2603` | 256K | | | | | | — | — |
|
|
41
|
+
| `stepfun-ai-step-plan/step-3.7-flash` | 256K | | | | | | — | — |
|
|
42
|
+
|
|
43
|
+
## Advanced configuration
|
|
44
|
+
|
|
45
|
+
### Custom headers
|
|
46
|
+
|
|
47
|
+
```typescript
|
|
48
|
+
const agent = new Agent({
|
|
49
|
+
id: "custom-agent",
|
|
50
|
+
name: "custom-agent",
|
|
51
|
+
model: {
|
|
52
|
+
url: "https://api.stepfun.ai/step_plan/v1",
|
|
53
|
+
id: "stepfun-ai-step-plan/step-3.5-flash",
|
|
54
|
+
apiKey: process.env.STEPFUN_API_KEY,
|
|
55
|
+
headers: {
|
|
56
|
+
"X-Custom-Header": "value"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Dynamic model selection
|
|
63
|
+
|
|
64
|
+
```typescript
|
|
65
|
+
const agent = new Agent({
|
|
66
|
+
id: "dynamic-agent",
|
|
67
|
+
name: "Dynamic Agent",
|
|
68
|
+
model: ({ requestContext }) => {
|
|
69
|
+
const useAdvanced = requestContext.task === "complex";
|
|
70
|
+
return useAdvanced
|
|
71
|
+
? "stepfun-ai-step-plan/step-3.7-flash"
|
|
72
|
+
: "stepfun-ai-step-plan/step-3.5-flash";
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
```
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
2
|
|
|
3
|
-
# StepFun (Global)
|
|
4
4
|
|
|
5
|
-
Access 8 StepFun
|
|
5
|
+
Access 8 StepFun (Global) models through Mastra's model router. Authentication is handled automatically using the `STEPFUN_API_KEY` environment variable.
|
|
6
6
|
|
|
7
|
-
Learn more in the [StepFun
|
|
7
|
+
Learn more in the [StepFun (Global) documentation](https://platform.stepfun.ai/docs/en/overview/concept).
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
STEPFUN_API_KEY=your-api-key
|
|
@@ -30,7 +30,7 @@ for await (const chunk of stream) {
|
|
|
30
30
|
}
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [StepFun
|
|
33
|
+
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [StepFun (Global) documentation](https://platform.stepfun.ai/docs/en/overview/concept) for details.
|
|
34
34
|
|
|
35
35
|
## Models
|
|
36
36
|
|
|
@@ -40,7 +40,7 @@ for await (const chunk of stream) {
|
|
|
40
40
|
| `stepfun-ai/step-2-16k` | 16K | | | | | | $5 | $16 |
|
|
41
41
|
| `stepfun-ai/step-3.5-flash` | 256K | | | | | | $0.10 | $0.30 |
|
|
42
42
|
| `stepfun-ai/step-3.5-flash-2603` | 256K | | | | | | $0.10 | $0.30 |
|
|
43
|
-
| `stepfun-ai/step-3.7-flash` | 256K | | | | | | $0.
|
|
43
|
+
| `stepfun-ai/step-3.7-flash` | 256K | | | | | | $0.18 | $1 |
|
|
44
44
|
| `stepfun-ai/step-tts-2` | — | | | | | | — | — |
|
|
45
45
|
| `stepfun-ai/stepaudio-2.5-asr` | — | | | | | | — | — |
|
|
46
46
|
| `stepfun-ai/stepaudio-2.5-tts` | — | | | | | | — | — |
|
|
@@ -54,7 +54,7 @@ const agent = new Agent({
|
|
|
54
54
|
id: "custom-agent",
|
|
55
55
|
name: "custom-agent",
|
|
56
56
|
model: {
|
|
57
|
-
url: "https://api.stepfun.ai/
|
|
57
|
+
url: "https://api.stepfun.ai/v1",
|
|
58
58
|
id: "stepfun-ai/step-1-32k",
|
|
59
59
|
apiKey: process.env.STEPFUN_API_KEY,
|
|
60
60
|
headers: {
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# StepFun Step Plan (China)
|
|
4
|
+
|
|
5
|
+
Access 4 StepFun Step Plan (China) models through Mastra's model router. Authentication is handled automatically using the `STEPFUN_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [StepFun Step Plan (China) documentation](https://platform.stepfun.com/docs/zh/step-plan/integrations/reasoning-api).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
STEPFUN_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: "stepfun-step-plan/step-3.5-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
|
+
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [StepFun Step Plan (China) documentation](https://platform.stepfun.com/docs/zh/step-plan/integrations/reasoning-api) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| --------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `stepfun-step-plan/step-3.5-flash` | 256K | | | | | | — | — |
|
|
40
|
+
| `stepfun-step-plan/step-3.5-flash-2603` | 256K | | | | | | — | — |
|
|
41
|
+
| `stepfun-step-plan/step-3.7-flash` | 256K | | | | | | — | — |
|
|
42
|
+
| `stepfun-step-plan/step-router-v1` | 256K | | | | | | — | — |
|
|
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://api.stepfun.com/step_plan/v1",
|
|
54
|
+
id: "stepfun-step-plan/step-3.5-flash",
|
|
55
|
+
apiKey: process.env.STEPFUN_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
|
+
? "stepfun-step-plan/step-router-v1"
|
|
73
|
+
: "stepfun-step-plan/step-3.5-flash";
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
```
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
2
|
|
|
3
|
-
# StepFun
|
|
3
|
+
# StepFun (China)
|
|
4
4
|
|
|
5
|
-
Access 8 StepFun models through Mastra's model router. Authentication is handled automatically using the `STEPFUN_API_KEY` environment variable.
|
|
5
|
+
Access 8 StepFun (China) models through Mastra's model router. Authentication is handled automatically using the `STEPFUN_API_KEY` environment variable.
|
|
6
6
|
|
|
7
|
-
Learn more in the [StepFun documentation](https://platform.stepfun.com/docs/zh/overview/concept).
|
|
7
|
+
Learn more in the [StepFun (China) documentation](https://platform.stepfun.com/docs/zh/overview/concept).
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
STEPFUN_API_KEY=your-api-key
|
|
@@ -30,7 +30,7 @@ for await (const chunk of stream) {
|
|
|
30
30
|
}
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [StepFun documentation](https://platform.stepfun.com/docs/zh/overview/concept) for details.
|
|
33
|
+
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [StepFun (China) documentation](https://platform.stepfun.com/docs/zh/overview/concept) for details.
|
|
34
34
|
|
|
35
35
|
## Models
|
|
36
36
|
|
|
@@ -40,7 +40,7 @@ for await (const chunk of stream) {
|
|
|
40
40
|
| `stepfun/step-2-16k` | 16K | | | | | | $5 | $16 |
|
|
41
41
|
| `stepfun/step-3.5-flash` | 256K | | | | | | $0.10 | $0.30 |
|
|
42
42
|
| `stepfun/step-3.5-flash-2603` | 256K | | | | | | $0.10 | $0.30 |
|
|
43
|
-
| `stepfun/step-3.7-flash` | 256K | | | | | | $0.
|
|
43
|
+
| `stepfun/step-3.7-flash` | 256K | | | | | | $0.18 | $1 |
|
|
44
44
|
| `stepfun/step-tts-2` | — | | | | | | — | — |
|
|
45
45
|
| `stepfun/stepaudio-2.5-asr` | — | | | | | | — | — |
|
|
46
46
|
| `stepfun/stepaudio-2.5-tts` | — | | | | | | — | — |
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# UnoRouter
|
|
4
|
+
|
|
5
|
+
Access 23 UnoRouter models through Mastra's model router. Authentication is handled automatically using the `UNOROUTER_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [UnoRouter documentation](https://unorouter.com/models).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
UNOROUTER_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: "unorouter/claude-haiku-4-5-20251001"
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// Generate a response
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
|
+
|
|
26
|
+
// Stream a response
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
|
+
for await (const chunk of stream) {
|
|
29
|
+
console.log(chunk);
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [UnoRouter documentation](https://unorouter.com/models) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `unorouter/claude-haiku-4-5-20251001` | 200K | | | | | | $1 | $6 |
|
|
40
|
+
| `unorouter/claude-opus-4-8` | 1.0M | | | | | | $0.42 | $2 |
|
|
41
|
+
| `unorouter/claude-sonnet-5` | 1.0M | | | | | | $1 | $7 |
|
|
42
|
+
| `unorouter/deepseek-v4-flash` | 1.0M | | | | | | $0.06 | $0.13 |
|
|
43
|
+
| `unorouter/deepseek-v4-flash:free` | 1.0M | | | | | | — | — |
|
|
44
|
+
| `unorouter/deepseek-v4-pro` | 1.0M | | | | | | $0.90 | $2 |
|
|
45
|
+
| `unorouter/deepseek-v4-pro:free` | 1.0M | | | | | | — | — |
|
|
46
|
+
| `unorouter/gemini-3.5-flash` | 1.0M | | | | | | $0.19 | $1 |
|
|
47
|
+
| `unorouter/gemma-4-31b-it:free` | 262K | | | | | | — | — |
|
|
48
|
+
| `unorouter/glm-4.5-flash:free` | 131K | | | | | | — | — |
|
|
49
|
+
| `unorouter/glm-5.2` | 1.0M | | | | | | $2 | $5 |
|
|
50
|
+
| `unorouter/glm-5.2:free` | 1.0M | | | | | | — | — |
|
|
51
|
+
| `unorouter/gpt-5.2` | 400K | | | | | | $1 | $8 |
|
|
52
|
+
| `unorouter/gpt-5.4` | 1.1M | | | | | | $2 | $11 |
|
|
53
|
+
| `unorouter/gpt-5.4:free` | 1.1M | | | | | | — | — |
|
|
54
|
+
| `unorouter/gpt-5.5` | 1.1M | | | | | | $0.19 | $1 |
|
|
55
|
+
| `unorouter/gpt-5.5:free` | 1.1M | | | | | | — | — |
|
|
56
|
+
| `unorouter/kimi-k2.6` | 262K | | | | | | $1 | $5 |
|
|
57
|
+
| `unorouter/minimax-m2.7` | 205K | | | | | | $0.82 | $3 |
|
|
58
|
+
| `unorouter/minimax-m2.7:free` | 205K | | | | | | — | — |
|
|
59
|
+
| `unorouter/nemotron-3-ultra-550b-a55b:free` | 1.0M | | | | | | — | — |
|
|
60
|
+
| `unorouter/qwen3.5-397b-a17b:free` | 262K | | | | | | — | — |
|
|
61
|
+
| `unorouter/step-3.7-flash:free` | 256K | | | | | | — | — |
|
|
62
|
+
|
|
63
|
+
## Advanced configuration
|
|
64
|
+
|
|
65
|
+
### Custom headers
|
|
66
|
+
|
|
67
|
+
```typescript
|
|
68
|
+
const agent = new Agent({
|
|
69
|
+
id: "custom-agent",
|
|
70
|
+
name: "custom-agent",
|
|
71
|
+
model: {
|
|
72
|
+
url: "https://api.unorouter.com/v1",
|
|
73
|
+
id: "unorouter/claude-haiku-4-5-20251001",
|
|
74
|
+
apiKey: process.env.UNOROUTER_API_KEY,
|
|
75
|
+
headers: {
|
|
76
|
+
"X-Custom-Header": "value"
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
});
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### Dynamic model selection
|
|
83
|
+
|
|
84
|
+
```typescript
|
|
85
|
+
const agent = new Agent({
|
|
86
|
+
id: "dynamic-agent",
|
|
87
|
+
name: "Dynamic Agent",
|
|
88
|
+
model: ({ requestContext }) => {
|
|
89
|
+
const useAdvanced = requestContext.task === "complex";
|
|
90
|
+
return useAdvanced
|
|
91
|
+
? "unorouter/step-3.7-flash:free"
|
|
92
|
+
: "unorouter/claude-haiku-4-5-20251001";
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Vivgrid
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 17 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
|
|
|
@@ -50,6 +50,9 @@ for await (const chunk of stream) {
|
|
|
50
50
|
| `vivgrid/gpt-5.4-mini` | 400K | | | | | | $0.75 | $5 |
|
|
51
51
|
| `vivgrid/gpt-5.4-nano` | 400K | | | | | | $0.20 | $1 |
|
|
52
52
|
| `vivgrid/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
53
|
+
| `vivgrid/gpt-5.6-luna` | 1.1M | | | | | | $1 | $6 |
|
|
54
|
+
| `vivgrid/gpt-5.6-sol` | 1.1M | | | | | | $5 | $30 |
|
|
55
|
+
| `vivgrid/gpt-5.6-terra` | 1.1M | | | | | | $3 | $15 |
|
|
53
56
|
|
|
54
57
|
## Advanced configuration
|
|
55
58
|
|
|
@@ -79,7 +82,7 @@ const agent = new Agent({
|
|
|
79
82
|
model: ({ requestContext }) => {
|
|
80
83
|
const useAdvanced = requestContext.task === "complex";
|
|
81
84
|
return useAdvanced
|
|
82
|
-
? "vivgrid/gpt-5.
|
|
85
|
+
? "vivgrid/gpt-5.6-terra"
|
|
83
86
|
: "vivgrid/deepseek-v3.2";
|
|
84
87
|
}
|
|
85
88
|
});
|