@mastra/mcp-docs-server 1.2.17-alpha.7 → 1.2.17
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/course/02-agent-tools-mcp/32-conclusion.md +1 -1
- package/.docs/docs/agents/code-mode.md +3 -3
- package/.docs/docs/agents/guardrails.md +1 -1
- package/.docs/docs/agents/{agent-approval.md → human-in-the-loop.md} +5 -5
- package/.docs/docs/agents/networks.md +3 -3
- package/.docs/docs/agents/overview.md +7 -7
- package/.docs/docs/agents/processors.md +3 -3
- package/.docs/docs/agents/{using-tools.md → tools.md} +7 -7
- package/.docs/docs/{server/auth → auth}/custom-auth-provider.md +1 -1
- package/.docs/docs/{server/auth → auth}/fga.md +27 -1
- package/.docs/docs/{server/auth.md → auth/overview.md} +4 -4
- package/.docs/docs/{server/auth → auth}/simple-auth.md +1 -1
- package/.docs/docs/{server/auth → auth}/workers.md +2 -2
- package/.docs/docs/{capabilities/channels.md → channels.md} +2 -2
- package/.docs/docs/{agents → connections}/a2a.md +2 -2
- package/.docs/docs/{agents → connections}/acp.md +18 -6
- package/.docs/docs/{mcp/overview.md → connections/mcp.md} +1 -1
- package/.docs/docs/connections/overview.md +5 -5
- package/.docs/docs/{agents → connections}/sdk-agents.md +3 -1
- package/.docs/docs/deployment/cloud-providers.md +1 -0
- package/.docs/docs/deployment/mastra-server.md +2 -2
- package/.docs/docs/deployment/overview.md +2 -1
- package/.docs/docs/deployment/sandbox.md +3 -3
- package/.docs/docs/deployment/workers.md +4 -4
- package/.docs/docs/guides/multi-agent-systems.md +7 -7
- package/.docs/docs/guides/streaming.md +1 -1
- package/.docs/docs/harness/agent-controller.md +5 -3
- package/.docs/docs/{long-running-agents → harness}/background-tasks.md +5 -5
- package/.docs/docs/{long-running-agents → harness}/durable-agents.md +18 -2
- package/.docs/docs/{long-running-agents → harness}/goals.md +6 -6
- package/.docs/docs/harness/overview.md +11 -10
- package/.docs/docs/{long-running-agents → harness}/schedules.md +5 -5
- package/.docs/docs/{long-running-agents → harness}/signal-providers.md +4 -4
- package/.docs/docs/mastra-platform/deploy.md +1 -1
- package/.docs/docs/mastra-platform/overview.md +1 -1
- package/.docs/docs/mastra-platform/server.md +1 -1
- package/.docs/docs/memory/message-history.md +1 -1
- package/.docs/docs/memory/overview.md +4 -4
- package/.docs/docs/memory/working-memory.md +1 -1
- package/.docs/docs/observability/integrations/exporters/mastra-storage.md +1 -1
- package/.docs/docs/{workspace → sandbox}/filesystem.md +2 -2
- package/.docs/docs/{workspace → sandbox}/lsp.md +3 -3
- package/.docs/docs/{workspace/sandbox.md → sandbox/overview.md} +4 -3
- package/.docs/docs/{workspace → sandbox}/search.md +2 -2
- package/.docs/docs/{workspace → sandbox}/skills.md +5 -5
- package/.docs/docs/server/custom-api-routes.md +2 -2
- package/.docs/docs/server/mastra-client.md +2 -2
- package/.docs/docs/server/{mastra-server.md → overview.md} +3 -3
- package/.docs/docs/server/pubsub.md +2 -2
- package/.docs/docs/server/server-adapters.md +4 -4
- package/.docs/docs/{agents/skills.md → skills.md} +4 -4
- package/.docs/docs/{storage/overview.md → storage.md} +2 -1
- package/.docs/docs/studio/auth.md +4 -4
- package/.docs/docs/studio/overview.md +2 -2
- package/.docs/docs/{capabilities/subagents.md → subagents.md} +35 -5
- package/.docs/docs/workflows/agents-and-tools.md +1 -1
- package/.docs/docs/workflows/control-flow.md +0 -4
- package/.docs/docs/workflows/human-in-the-loop.md +0 -4
- package/.docs/docs/workflows/overview.md +1 -1
- package/.docs/docs/workflows/scheduled-workflows.md +2 -2
- package/.docs/docs/workflows/snapshots.md +1 -1
- package/.docs/docs/workflows/suspend-and-resume.md +0 -4
- package/.docs/integrations/agentic-ui/ai-sdk-ui.md +1 -1
- package/.docs/integrations/agentic-ui/copilotkit.md +1 -1
- package/.docs/integrations/auth/google.md +2 -2
- package/.docs/integrations/auth/workos.md +1 -1
- package/.docs/integrations/browsers/agent-browser.md +2 -2
- package/.docs/integrations/browsers/browser-viewer.md +6 -6
- package/.docs/integrations/browsers/firecrawl.md +1 -1
- package/.docs/integrations/browsers/stagehand.md +2 -2
- package/.docs/integrations/channels/discord.md +2 -2
- package/.docs/integrations/channels/github.md +1 -1
- package/.docs/integrations/channels/imessage.md +4 -4
- package/.docs/integrations/channels/slack.md +5 -5
- package/.docs/integrations/channels/teams.md +2 -2
- package/.docs/integrations/channels/telegram.md +2 -2
- package/.docs/integrations/channels/whatsapp.md +2 -2
- package/.docs/integrations/databases/postgresql.md +1 -0
- package/.docs/integrations/deploy/amazon-ec2.md +2 -2
- package/.docs/integrations/deploy/aws-lambda.md +3 -3
- package/.docs/integrations/deploy/azure-app-services.md +2 -2
- package/.docs/integrations/deploy/cloudflare.md +2 -2
- package/.docs/integrations/deploy/digital-ocean.md +3 -3
- package/.docs/integrations/deploy/kubernetes.md +11 -11
- package/.docs/integrations/deploy/netlify.md +3 -3
- package/.docs/integrations/deploy/render.md +389 -0
- package/.docs/integrations/deploy/vercel.md +2 -2
- package/.docs/integrations/file-storage/amazon-s3.md +1 -1
- package/.docs/integrations/file-storage/azure-blob.md +1 -1
- package/.docs/integrations/file-storage/google-cloud-storage.md +1 -1
- package/.docs/integrations/file-storage/mesa.md +2 -2
- package/.docs/integrations/file-storage/vercel-files.md +1 -1
- package/.docs/integrations/frameworks/astro.md +6 -2
- package/.docs/integrations/frameworks/electron.md +1 -1
- package/.docs/integrations/frameworks/express.md +1 -1
- package/.docs/integrations/frameworks/hono.md +1 -1
- package/.docs/integrations/frameworks/nestjs.md +1 -1
- package/.docs/integrations/frameworks/next-js.md +6 -2
- package/.docs/integrations/frameworks/nuxt.md +1 -1
- package/.docs/integrations/frameworks/sveltekit.md +1 -1
- package/.docs/integrations/frameworks/vite-react.md +6 -2
- package/.docs/integrations/sandboxes/agentcore.md +1 -1
- package/.docs/integrations/sandboxes/apple-container.md +1 -1
- package/.docs/integrations/sandboxes/cloudflare-sandbox.md +118 -0
- package/.docs/integrations/sandboxes/daytona.md +1 -1
- package/.docs/integrations/sandboxes/docker.md +4 -3
- package/.docs/integrations/sandboxes/e2b.md +1 -1
- package/.docs/integrations/sandboxes/modal.md +1 -1
- package/.docs/integrations/sandboxes/railway.md +11 -0
- package/.docs/integrations.md +4 -0
- package/.docs/models/environment-variables.md +8 -2
- package/.docs/models/gateways/merge-gateway.md +212 -0
- package/.docs/models/gateways/openrouter.md +5 -1
- package/.docs/models/gateways/vercel.md +22 -1
- package/.docs/models/gateways.md +1 -0
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/alibaba-token-plan-cn.md +2 -1
- package/.docs/models/providers/alibaba-token-plan.md +2 -1
- package/.docs/models/providers/ambient.md +2 -2
- package/.docs/models/providers/amd.md +73 -0
- package/.docs/models/providers/arcee.md +79 -0
- package/.docs/models/providers/baseten.md +1 -1
- package/.docs/models/providers/cerebras.md +2 -3
- package/.docs/models/providers/chutes.md +2 -1
- package/.docs/models/providers/cloudflare-workers-ai.md +3 -2
- package/.docs/models/providers/cortecs.md +2 -1
- package/.docs/models/providers/crof.md +1 -1
- package/.docs/models/providers/crossmodel.md +3 -2
- package/.docs/models/providers/deepinfra.md +5 -1
- package/.docs/models/providers/digitalocean.md +3 -2
- package/.docs/models/providers/edenai.md +19 -5
- package/.docs/models/providers/empiriolabs.md +10 -1
- package/.docs/models/providers/hetzner.md +6 -8
- package/.docs/models/providers/huggingface.md +4 -1
- package/.docs/models/providers/hyper.md +9 -8
- package/.docs/models/providers/inferx.md +19 -13
- package/.docs/models/providers/jalapeno.md +89 -0
- package/.docs/models/providers/kilo.md +17 -14
- package/.docs/models/providers/kosmik.md +73 -0
- package/.docs/models/providers/llmgateway.md +3 -3
- package/.docs/models/providers/llmtr.md +35 -10
- package/.docs/models/providers/nano-gpt.md +18 -19
- package/.docs/models/providers/ofox.md +3 -3
- package/.docs/models/providers/opencode-go.md +2 -2
- package/.docs/models/providers/requesty.md +3 -3
- package/.docs/models/providers/runinfra.md +76 -0
- package/.docs/models/providers/sakana.md +3 -2
- package/.docs/models/providers/scnet-token-plan.md +85 -0
- package/.docs/models/providers/scx-ai.md +76 -0
- package/.docs/models/providers/togetherai.md +2 -1
- package/.docs/models/providers/umans-ai-coding-plan.md +2 -1
- package/.docs/models/providers/umans-ai.md +2 -1
- package/.docs/models/providers/vivgrid.md +2 -1
- package/.docs/models/providers/wandb.md +2 -1
- package/.docs/models/providers/xai.md +2 -1
- package/.docs/models/providers.md +7 -2
- package/.docs/reference/acp/acp-agent.md +2 -2
- package/.docs/reference/acp/create-acp-tool.md +1 -1
- package/.docs/reference/agent-controller/agent-controller-class.md +2 -2
- package/.docs/reference/agents/agent.md +2 -2
- package/.docs/reference/agents/channels.md +2 -2
- package/.docs/reference/agents/createSkill.md +2 -2
- package/.docs/reference/agents/durable-agent.md +1 -1
- package/.docs/reference/agents/generate.md +3 -1
- package/.docs/reference/agents/getSkill.md +1 -1
- package/.docs/reference/agents/listSkills.md +1 -1
- package/.docs/reference/agents/listSuspendedRuns.md +6 -6
- package/.docs/reference/agents/listTools.md +2 -2
- package/.docs/reference/agents/network.md +3 -1
- package/.docs/reference/ai-sdk/chat-route.md +1 -1
- package/.docs/reference/ai-sdk/handle-chat-stream.md +1 -1
- package/.docs/reference/ai-sdk/handle-network-stream.md +2 -2
- package/.docs/reference/ai-sdk/handle-workflow-stream.md +1 -1
- package/.docs/reference/ai-sdk/network-route.md +2 -2
- package/.docs/reference/ai-sdk/to-ai-sdk-messages.md +1 -1
- package/.docs/reference/ai-sdk/to-ai-sdk-stream.md +1 -1
- package/.docs/reference/ai-sdk/workflow-route.md +1 -1
- package/.docs/reference/auth/fga.md +7 -5
- package/.docs/reference/auth/jwt.md +1 -1
- package/.docs/reference/browser/agent-browser.md +2 -2
- package/.docs/reference/browser/browser-viewer.md +2 -2
- package/.docs/reference/browser/firecrawl-browser.md +1 -1
- package/.docs/reference/browser/mastra-browser.md +1 -1
- package/.docs/reference/browser/stagehand-browser.md +2 -2
- package/.docs/reference/build-with-ai.md +2 -2
- package/.docs/reference/channels/channel-provider.md +1 -1
- package/.docs/reference/channels/slack-provider.md +1 -1
- package/.docs/reference/cli/mastra.md +2 -0
- package/.docs/reference/client-js/agents.md +24 -4
- package/.docs/reference/coding-agent/create-coding-agent.md +142 -13
- package/.docs/reference/configuration.md +6 -6
- package/.docs/reference/core/getEditor.md +1 -1
- package/.docs/reference/core/getMCPServer.md +1 -1
- package/.docs/reference/core/getMCPServerById.md +1 -1
- package/.docs/reference/core/getTool.md +1 -1
- package/.docs/reference/core/getToolById.md +1 -1
- package/.docs/reference/core/listMCPServers.md +1 -1
- package/.docs/reference/core/listTools.md +1 -1
- package/.docs/reference/core/removeWorkspace.md +1 -1
- package/.docs/reference/editor/mastra-editor.md +2 -2
- package/.docs/reference/editor/prompt-blocks.md +2 -2
- package/.docs/reference/editor/tool-provider.md +108 -1
- package/.docs/reference/editor/tools.md +1 -1
- package/.docs/reference/editor/versioning.md +3 -3
- package/.docs/reference/evals/prompt-alignment.md +18 -0
- package/.docs/reference/evals/rubric.md +1 -1
- package/.docs/reference/file-based-agents/memory.md +2 -2
- package/.docs/reference/file-based-agents/server.md +3 -3
- package/.docs/reference/file-based-agents/skills.md +1 -1
- package/.docs/reference/file-based-agents/storage.md +3 -3
- package/.docs/reference/file-based-agents/subagents.md +1 -1
- package/.docs/reference/file-based-agents/workspace.md +3 -3
- package/.docs/reference/index.md +1 -0
- package/.docs/reference/manual-install.md +3 -3
- package/.docs/reference/memory/memory-class.md +1 -0
- package/.docs/reference/memory/settled.md +57 -0
- package/.docs/reference/migrations/network-to-supervisor.md +2 -2
- package/.docs/reference/processors/provider-history-compat.md +6 -5
- package/.docs/reference/processors/skill-search-processor.md +3 -1
- package/.docs/reference/processors/token-limiter-processor.md +4 -0
- package/.docs/reference/processors/tool-call-filter.md +7 -7
- package/.docs/reference/processors/tool-search-processor.md +1 -1
- package/.docs/reference/project-structure.md +1 -1
- package/.docs/reference/pubsub/lease-provider.md +3 -3
- package/.docs/reference/pubsub/redis-streams.md +1 -1
- package/.docs/reference/rag/graph-rag.md +71 -8
- package/.docs/reference/rag/retrieval.md +26 -18
- package/.docs/reference/schedules/overview.md +1 -1
- package/.docs/reference/streaming/ChunkType.md +2 -2
- package/.docs/reference/streaming/agents/stream.md +29 -4
- package/.docs/reference/streaming/agents/streamUntilIdle.md +1 -1
- package/.docs/reference/tools/ask-user-tool.md +1 -1
- package/.docs/reference/tools/create-code-mode.md +1 -1
- package/.docs/reference/tools/create-tool.md +4 -4
- package/.docs/reference/tools/mcp-client.md +2 -0
- package/.docs/reference/tools/mcp-server.md +97 -4
- package/.docs/reference/tools/submit-plan-tool.md +1 -1
- package/.docs/reference/tools/task-tools.md +2 -2
- package/.docs/reference/vectors/vectorize.md +12 -2
- package/.docs/reference/workers/overview.md +2 -2
- package/.docs/reference/workspace/local-filesystem.md +1 -1
- package/.docs/reference/workspace/local-sandbox.md +4 -3
- package/.docs/reference/workspace/platform-sandbox.md +11 -0
- package/.docs/reference/workspace/process-manager.md +20 -4
- package/.docs/reference/workspace/sandbox.md +1 -1
- package/.docs/reference/workspace/workspace-class.md +5 -5
- package/CHANGELOG.md +80 -0
- package/package.json +6 -6
- package/.docs/models/providers/merge-gateway.md +0 -265
- /package/.docs/docs/{server/auth → auth}/composite-auth.md +0 -0
- /package/.docs/docs/{server/auth → auth}/jwt.md +0 -0
- /package/.docs/docs/{browser/overview.md → browser.md} +0 -0
- /package/.docs/docs/{getting-started/develop.md → develop.md} +0 -0
- /package/.docs/docs/{long-running-agents → harness}/signals.md +0 -0
- /package/.docs/docs/{editor/overview.md → studio/editor.md} +0 -0
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# NanoGPT
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 595 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
|
|
|
@@ -148,27 +148,23 @@ for await (const chunk of stream) {
|
|
|
148
148
|
| `nano-gpt/deepseek/deepseek-prover-v2-671b` | 160K | | | | | | $1 | $3 |
|
|
149
149
|
| `nano-gpt/deepseek/deepseek-v3.2` | 163K | | | | | | $0.28 | $0.42 |
|
|
150
150
|
| `nano-gpt/deepseek/deepseek-v3.2:thinking` | 163K | | | | | | $0.28 | $0.42 |
|
|
151
|
-
| `nano-gpt/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.
|
|
151
|
+
| `nano-gpt/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
152
152
|
| `nano-gpt/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
153
|
-
| `nano-gpt/deepseek/deepseek-v4-flash-0731-cheaper` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
154
|
-
| `nano-gpt/deepseek/deepseek-v4-flash-0731-cheaper:thinking` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
155
153
|
| `nano-gpt/deepseek/deepseek-v4-flash-0731:thinking` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
156
154
|
| `nano-gpt/deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
157
|
-
| `nano-gpt/deepseek/deepseek-v4-flash:thinking` | 1.0M | | | | | | $0.
|
|
155
|
+
| `nano-gpt/deepseek/deepseek-v4-flash:thinking` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
158
156
|
| `nano-gpt/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $1 | $2 |
|
|
159
157
|
| `nano-gpt/deepseek/deepseek-v4-pro-0813` | 1.0M | | | | | | $1 | $3 |
|
|
160
158
|
| `nano-gpt/deepseek/deepseek-v4-pro-0813:thinking` | 1.0M | | | | | | $1 | $3 |
|
|
161
|
-
| `nano-gpt/deepseek/deepseek-v4-pro-cheaper` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
162
|
-
| `nano-gpt/deepseek/deepseek-v4-pro-cheaper:thinking` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
163
159
|
| `nano-gpt/deepseek/deepseek-v4-pro:thinking` | 1.0M | | | | | | $1 | $2 |
|
|
164
160
|
| `nano-gpt/dmind/dmind-1-mini` | 33K | | | | | | $0.20 | $0.40 |
|
|
165
161
|
| `nano-gpt/Doctor-Shotgun/MS3.2-24B-Magnum-Diamond` | 16K | | | | | | $0.49 | $0.49 |
|
|
162
|
+
| `nano-gpt/dots-studio/dots-3-note-preview` | 393K | | | | | | $0.10 | $0.20 |
|
|
166
163
|
| `nano-gpt/doubao-1.5-pro-256k` | 256K | | | | | | $0.80 | $1 |
|
|
167
164
|
| `nano-gpt/doubao-1.5-pro-32k` | 32K | | | | | | $0.13 | $0.33 |
|
|
168
165
|
| `nano-gpt/doubao-1.5-vision-pro-32k` | 32K | | | | | | $0.46 | $1 |
|
|
169
166
|
| `nano-gpt/doubao-seed-1-6-250615` | 256K | | | | | | $0.20 | $0.51 |
|
|
170
167
|
| `nano-gpt/doubao-seed-1-6-flash-250615` | 256K | | | | | | $0.04 | $0.37 |
|
|
171
|
-
| `nano-gpt/doubao-seed-1-8-251215` | 128K | | | | | | $0.61 | $6 |
|
|
172
168
|
| `nano-gpt/doubao-seed-2-0-code-preview-260215` | 256K | | | | | | $0.78 | $4 |
|
|
173
169
|
| `nano-gpt/doubao-seed-2-0-lite-260215` | 256K | | | | | | $0.15 | $0.87 |
|
|
174
170
|
| `nano-gpt/doubao-seed-2-0-mini-260215` | 256K | | | | | | $0.05 | $0.48 |
|
|
@@ -315,8 +311,6 @@ for await (const chunk of stream) {
|
|
|
315
311
|
| `nano-gpt/minimax/minimax-m3` | 512K | | | | | | $0.30 | $1 |
|
|
316
312
|
| `nano-gpt/minimax/minimax-m3:thinking` | 512K | | | | | | $0.30 | $1 |
|
|
317
313
|
| `nano-gpt/MiniMaxAI/MiniMax-M1-80k` | 1.0M | | | | | | $0.61 | $2 |
|
|
318
|
-
| `nano-gpt/mirothinker-1-7-deepresearch` | 262K | | | | | | $4 | $25 |
|
|
319
|
-
| `nano-gpt/mirothinker-1-7-deepresearch-mini` | 262K | | | | | | $1 | $10 |
|
|
320
314
|
| `nano-gpt/mistral-code-agent-latest` | 262K | | | | | | $0.40 | $2 |
|
|
321
315
|
| `nano-gpt/mistral-code-latest` | 256K | | | | | | $0.30 | $0.90 |
|
|
322
316
|
| `nano-gpt/mistral-small-31-24b-instruct` | 128K | | | | | | $0.10 | $0.30 |
|
|
@@ -407,12 +401,12 @@ for await (const chunk of stream) {
|
|
|
407
401
|
| `nano-gpt/openai/gpt-5.5` | 1.0M | | | | | | $5 | $30 |
|
|
408
402
|
| `nano-gpt/openai/gpt-5.6-luna` | 1.1M | | | | | | $0.10 | $0.60 |
|
|
409
403
|
| `nano-gpt/openai/gpt-5.6-luna-pro` | 1.1M | | | | | | $0.10 | $0.60 |
|
|
410
|
-
| `nano-gpt/openai/gpt-5.6-sol` | 1.1M | | | | | | $
|
|
411
|
-
| `nano-gpt/openai/gpt-5.6-sol-pro` | 1.1M | | | | | | $
|
|
404
|
+
| `nano-gpt/openai/gpt-5.6-sol` | 1.1M | | | | | | $3 | $15 |
|
|
405
|
+
| `nano-gpt/openai/gpt-5.6-sol-pro` | 1.1M | | | | | | $3 | $15 |
|
|
412
406
|
| `nano-gpt/openai/gpt-5.6-terra` | 1.1M | | | | | | $1 | $6 |
|
|
413
407
|
| `nano-gpt/openai/gpt-5.6-terra-pro` | 1.1M | | | | | | $1 | $6 |
|
|
414
|
-
| `nano-gpt/openai/gpt-chat-latest` | 1.1M | | | | | | $
|
|
415
|
-
| `nano-gpt/openai/gpt-latest` | 1.1M | | | | | | $
|
|
408
|
+
| `nano-gpt/openai/gpt-chat-latest` | 1.1M | | | | | | $3 | $15 |
|
|
409
|
+
| `nano-gpt/openai/gpt-latest` | 1.1M | | | | | | $3 | $15 |
|
|
416
410
|
| `nano-gpt/openai/gpt-oss-120b` | 128K | | | | | | $0.35 | $0.75 |
|
|
417
411
|
| `nano-gpt/openai/gpt-oss-20b` | 128K | | | | | | $0.20 | $0.30 |
|
|
418
412
|
| `nano-gpt/openai/gpt-oss-safeguard-20b` | 128K | | | | | | $0.07 | $0.30 |
|
|
@@ -448,7 +442,6 @@ for await (const chunk of stream) {
|
|
|
448
442
|
| `nano-gpt/qwen/qwen3-14b` | 41K | | | | | | $0.08 | $0.24 |
|
|
449
443
|
| `nano-gpt/qwen/qwen3-235b-a22b` | 41K | | | | | | $0.30 | $0.50 |
|
|
450
444
|
| `nano-gpt/qwen/Qwen3-235B-A22B-Instruct-2507` | 256K | | | | | | $0.13 | $0.50 |
|
|
451
|
-
| `nano-gpt/qwen/Qwen3-235B-A22B-Instruct-2507-TEE` | 256K | | | | | | $0.13 | $0.50 |
|
|
452
445
|
| `nano-gpt/qwen/Qwen3-235B-A22B-Thinking-2507` | 256K | | | | | | $0.30 | $0.50 |
|
|
453
446
|
| `nano-gpt/qwen/qwen3-30b-a3b` | 41K | | | | | | $0.10 | $0.30 |
|
|
454
447
|
| `nano-gpt/qwen/qwen3-32b` | 41K | | | | | | $0.10 | $0.30 |
|
|
@@ -474,14 +467,17 @@ for await (const chunk of stream) {
|
|
|
474
467
|
| `nano-gpt/qwen3-max-2026-01-23` | 256K | | | | | | $1 | $6 |
|
|
475
468
|
| `nano-gpt/qwen3-vl-235b-a22b-instruct-original` | 33K | | | | | | $0.50 | $1 |
|
|
476
469
|
| `nano-gpt/qwen3-vl-235b-a22b-thinking` | 33K | | | | | | $0.50 | $6 |
|
|
470
|
+
| `nano-gpt/qwen3.5-0.8b` | 262K | | | | | | $0.06 | $0.12 |
|
|
477
471
|
| `nano-gpt/qwen3.5-122b-a10b` | 131K | | | | | | $0.44 | $3 |
|
|
478
472
|
| `nano-gpt/qwen3.5-122b-a10b:thinking` | 131K | | | | | | $0.44 | $3 |
|
|
479
473
|
| `nano-gpt/qwen3.5-27b` | 260K | | | | | | $0.27 | $2 |
|
|
480
474
|
| `nano-gpt/Qwen3.5-27B-BlueStar-v3-Derestricted` | 262K | | | | | | $0.31 | $0.31 |
|
|
481
475
|
| `nano-gpt/Qwen3.5-27B-Queen-Derestricted` | 262K | | | | | | $0.31 | $0.31 |
|
|
482
476
|
| `nano-gpt/qwen3.5-27b:thinking` | 260K | | | | | | $0.27 | $2 |
|
|
477
|
+
| `nano-gpt/qwen3.5-2b` | 262K | | | | | | $0.08 | $0.16 |
|
|
483
478
|
| `nano-gpt/qwen3.5-35b-a3b` | 260K | | | | | | $0.23 | $2 |
|
|
484
479
|
| `nano-gpt/qwen3.5-35b-a3b:thinking` | 260K | | | | | | $0.23 | $2 |
|
|
480
|
+
| `nano-gpt/qwen3.5-4b` | 262K | | | | | | $0.10 | $0.20 |
|
|
485
481
|
| `nano-gpt/qwen3.5-flash` | 992K | | | | | | $0.10 | $0.40 |
|
|
486
482
|
| `nano-gpt/qwen3.5-flash:thinking` | 992K | | | | | | $0.10 | $0.40 |
|
|
487
483
|
| `nano-gpt/qwen3.5-omni-flash` | 49K | | | | | | — | — |
|
|
@@ -493,6 +489,8 @@ for await (const chunk of stream) {
|
|
|
493
489
|
| `nano-gpt/qwen3.7-max:thinking` | 1.0M | | | | | | $3 | $8 |
|
|
494
490
|
| `nano-gpt/qwen3.7-plus` | 992K | | | | | | $0.40 | $2 |
|
|
495
491
|
| `nano-gpt/qwen3.7-plus:thinking` | 984K | | | | | | $0.40 | $2 |
|
|
492
|
+
| `nano-gpt/qwen3.8-27b` | 262K | | | | | | $0.20 | $1 |
|
|
493
|
+
| `nano-gpt/qwen3.8-27b:thinking` | 262K | | | | | | $0.20 | $1 |
|
|
496
494
|
| `nano-gpt/qwen3.8-max` | 991K | | | | | | $2 | $6 |
|
|
497
495
|
| `nano-gpt/qwen3.8-max:thinking` | 991K | | | | | | $2 | $6 |
|
|
498
496
|
| `nano-gpt/ReadyArt/MS3.2-The-Omega-Directive-24B-Unslop-v2.0` | 16K | | | | | | $0.50 | $0.50 |
|
|
@@ -519,16 +517,14 @@ for await (const chunk of stream) {
|
|
|
519
517
|
| `nano-gpt/Steelskull/L3.3-MS-Evayale-70B` | 16K | | | | | | $0.49 | $0.49 |
|
|
520
518
|
| `nano-gpt/Steelskull/L3.3-MS-Nevoria-70b` | 16K | | | | | | $0.49 | $0.49 |
|
|
521
519
|
| `nano-gpt/Steelskull/L3.3-Nevoria-R1-70b` | 16K | | | | | | $0.49 | $0.49 |
|
|
522
|
-
| `nano-gpt/step-2-16k-exp` | 16K | | | | | | $7 | $20 |
|
|
523
|
-
| `nano-gpt/step-2-mini` | 8K | | | | | | $0.20 | $0.41 |
|
|
524
|
-
| `nano-gpt/step-3` | 66K | | | | | | $0.25 | $0.65 |
|
|
525
520
|
| `nano-gpt/step-r1-v-mini` | 128K | | | | | | $3 | $11 |
|
|
526
521
|
| `nano-gpt/stepfun-ai/step-3.5-flash` | 256K | | | | | | $0.10 | $0.30 |
|
|
527
522
|
| `nano-gpt/stepfun-ai/step-3.5-flash-2603` | 256K | | | | | | $0.10 | $0.30 |
|
|
528
523
|
| `nano-gpt/stepfun/step-3.7-flash:thinking` | 262K | | | | | | $0.20 | $1 |
|
|
529
|
-
| `nano-gpt/TEE/deepseek-v3.1` | 164K | | | | | | $1 | $3 |
|
|
530
524
|
| `nano-gpt/TEE/deepseek-v3.2` | 164K | | | | | | $0.50 | $1 |
|
|
531
525
|
| `nano-gpt/TEE/deepseek-v4-flash` | 1.0M | | | | | | $0.20 | $0.40 |
|
|
526
|
+
| `nano-gpt/TEE/deepseek-v4-pro-0813` | 1.0M | | | | | | $1 | $4 |
|
|
527
|
+
| `nano-gpt/TEE/deepseek-v4-pro-0813:thinking` | 1.0M | | | | | | $1 | $4 |
|
|
532
528
|
| `nano-gpt/TEE/gemma-3-27b-it` | 131K | | | | | | $0.20 | $0.80 |
|
|
533
529
|
| `nano-gpt/TEE/gemma-4-26b-a4b-uncensored` | 66K | | | | | | $0.15 | $0.70 |
|
|
534
530
|
| `nano-gpt/TEE/gemma-4-31b-it` | 262K | | | | | | $0.15 | $0.46 |
|
|
@@ -542,6 +538,7 @@ for await (const chunk of stream) {
|
|
|
542
538
|
| `nano-gpt/TEE/gpt-oss-120b` | 131K | | | | | | $2 | $2 |
|
|
543
539
|
| `nano-gpt/TEE/gpt-oss-20b` | 131K | | | | | | $0.20 | $0.80 |
|
|
544
540
|
| `nano-gpt/TEE/kimi-k2.6` | 262K | | | | | | $2 | $5 |
|
|
541
|
+
| `nano-gpt/TEE/kimi-k2.7-code` | 262K | | | | | | $0.95 | $4 |
|
|
545
542
|
| `nano-gpt/TEE/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
546
543
|
| `nano-gpt/TEE/llama3-3-70b` | 128K | | | | | | $2 | $3 |
|
|
547
544
|
| `nano-gpt/TEE/muse-glimmer-30b` | 131K | | | | | | $0.35 | $2 |
|
|
@@ -631,6 +628,8 @@ for await (const chunk of stream) {
|
|
|
631
628
|
| `nano-gpt/zai-org/glm-5.1:thinking` | 200K | | | | | | $0.75 | $3 |
|
|
632
629
|
| `nano-gpt/zai-org/glm-5.2` | 1.0M | | | | | | $0.42 | $1 |
|
|
633
630
|
| `nano-gpt/zai-org/glm-5.2:thinking` | 1.0M | | | | | | $0.42 | $1 |
|
|
631
|
+
| `nano-gpt/zai-org/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
632
|
+
| `nano-gpt/zai-org/glm-5.3:thinking` | 1.0M | | | | | | $1 | $4 |
|
|
634
633
|
| `nano-gpt/zai-org/glm-latest` | 1.0M | | | | | | $0.42 | $1 |
|
|
635
634
|
|
|
636
635
|
## Advanced configuration
|
|
@@ -69,9 +69,9 @@ for await (const chunk of stream) {
|
|
|
69
69
|
| `ofox/bailian/qwen3.7-plus` | 1.0M | | | | | | $0.40 | $2 |
|
|
70
70
|
| `ofox/bailian/qwen3.8-max` | 1.0M | | | | | | $2 | $6 |
|
|
71
71
|
| `ofox/deepseek/deepseek-v3.2` | 128K | | | | | | $0.29 | $0.43 |
|
|
72
|
-
| `ofox/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.
|
|
73
|
-
| `ofox/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $
|
|
74
|
-
| `ofox/deepseek/deepseek-v4-pro-0813` | 1.0M | | | | | | $
|
|
72
|
+
| `ofox/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.44 | $1 |
|
|
73
|
+
| `ofox/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $1 | $4 |
|
|
74
|
+
| `ofox/deepseek/deepseek-v4-pro-0813` | 1.0M | | | | | | $1 | $4 |
|
|
75
75
|
| `ofox/google/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $3 |
|
|
76
76
|
| `ofox/google/gemini-2.5-flash-lite` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
77
77
|
| `ofox/google/gemini-2.5-pro` | 1.0M | | | | | | $1 | $10 |
|
|
@@ -36,8 +36,8 @@ for await (const chunk of stream) {
|
|
|
36
36
|
|
|
37
37
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
38
|
| ------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
-
| `opencode-go/deepseek-v4-flash` | 1.0M | | | | | | $0.
|
|
40
|
-
| `opencode-go/deepseek-v4-pro` | 1.0M | | | | | | $0.
|
|
39
|
+
| `opencode-go/deepseek-v4-flash` | 1.0M | | | | | | $0.22 | $0.66 |
|
|
40
|
+
| `opencode-go/deepseek-v4-pro` | 1.0M | | | | | | $0.66 | $2 |
|
|
41
41
|
| `opencode-go/glm-5.1` | 203K | | | | | | $1 | $4 |
|
|
42
42
|
| `opencode-go/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
43
43
|
| `opencode-go/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
@@ -60,12 +60,12 @@ for await (const chunk of stream) {
|
|
|
60
60
|
| `requesty/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
61
61
|
| `requesty/deepseek-v4-flash-0731@eu` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
62
62
|
| `requesty/gemini-2.5-flash@eu` | 1.0M | | | | | | $0.30 | $3 |
|
|
63
|
-
| `requesty/gemini-3.1-flash-lite@eu` | 1.0M | | | | | | $0.
|
|
63
|
+
| `requesty/gemini-3.1-flash-lite@eu` | 1.0M | | | | | | $0.28 | $2 |
|
|
64
64
|
| `requesty/gemini-3.5-flash-lite` | 1.0M | | | | | | $0.30 | $3 |
|
|
65
|
-
| `requesty/gemini-3.5-flash@eu` | 1.0M | | | | | | $2 | $
|
|
65
|
+
| `requesty/gemini-3.5-flash@eu` | 1.0M | | | | | | $2 | $10 |
|
|
66
66
|
| `requesty/gemini-3.6-flash` | 1.0M | | | | | | $2 | $7 |
|
|
67
67
|
| `requesty/gemini-3.7-flash` | 1.0M | | | | | | $0.75 | $4 |
|
|
68
|
-
| `requesty/gemini-3.7-flash@eu` | 1.0M | | | | | | $0.
|
|
68
|
+
| `requesty/gemini-3.7-flash@eu` | 1.0M | | | | | | $0.82 | $4 |
|
|
69
69
|
| `requesty/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
70
70
|
| `requesty/glm-5.2@eu` | 1.0M | | | | | | $1 | $4 |
|
|
71
71
|
| `requesty/gpt-4.1-mini@eu` | 1.0M | | | | | | $0.44 | $2 |
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# RunInfra
|
|
4
|
+
|
|
5
|
+
Access 4 RunInfra models through Mastra's model router. Authentication is handled automatically using the `RUNINFRA_GATEWAY_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [RunInfra documentation](https://runinfra.ai/docs).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
RUNINFRA_GATEWAY_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: "runinfra/Inferact/Qwen3.8-2.4T-A95B-NVFP4"
|
|
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 [RunInfra documentation](https://runinfra.ai/docs) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ------------------------------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `runinfra/deepseek-ai/DeepSeek-V4-Flash-0731` | 1.0M | | | | | | $0.13 | $0.27 |
|
|
40
|
+
| `runinfra/Inferact/Qwen3.8-2.4T-A95B-NVFP4` | 262K | | | | | | $2 | $6 |
|
|
41
|
+
| `runinfra/nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16` | 262K | | | | | | $0.05 | $0.15 |
|
|
42
|
+
| `runinfra/Qwen/Qwen3.8-27B` | 262K | | | | | | $0.10 | $0.40 |
|
|
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.runinfra.ai/v1",
|
|
54
|
+
id: "runinfra/Inferact/Qwen3.8-2.4T-A95B-NVFP4",
|
|
55
|
+
apiKey: process.env.RUNINFRA_GATEWAY_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
|
+
? "runinfra/nvidia/NVIDIA-Nemotron-3.5-Lightning-30B-A3B-BF16"
|
|
73
|
+
: "runinfra/Inferact/Qwen3.8-2.4T-A95B-NVFP4";
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Sakana AI
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 4 Sakana AI models through Mastra's model router. Authentication is handled automatically using the `SAKANA_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Sakana AI documentation](https://console.sakana.ai/models).
|
|
8
8
|
|
|
@@ -39,6 +39,7 @@ for await (const chunk of stream) {
|
|
|
39
39
|
| `sakana/fugu` | 1.0M | | | | | | — | — |
|
|
40
40
|
| `sakana/fugu-ultra` | 1.0M | | | | | | $5 | $30 |
|
|
41
41
|
| `sakana/fugu-ultra-20260615` | 1.0M | | | | | | $5 | $30 |
|
|
42
|
+
| `sakana/sakana-namazu` | 262K | | | | | | $0.95 | $4 |
|
|
42
43
|
|
|
43
44
|
## Advanced configuration
|
|
44
45
|
|
|
@@ -68,7 +69,7 @@ const agent = new Agent({
|
|
|
68
69
|
model: ({ requestContext }) => {
|
|
69
70
|
const useAdvanced = requestContext.task === "complex";
|
|
70
71
|
return useAdvanced
|
|
71
|
-
? "sakana/
|
|
72
|
+
? "sakana/sakana-namazu"
|
|
72
73
|
: "sakana/fugu";
|
|
73
74
|
}
|
|
74
75
|
});
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# SCNet Token Plan
|
|
4
|
+
|
|
5
|
+
Access 13 SCNet Token Plan models through Mastra's model router. Authentication is handled automatically using the `SCNET_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [SCNet Token Plan documentation](https://www.scnet.cn/ac/openapi/doc/2.0/moduleapi/plans/token-plan.html).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
SCNET_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: "scnet-token-plan/DeepSeek-V3.2"
|
|
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 [SCNet Token Plan documentation](https://www.scnet.cn/ac/openapi/doc/2.0/moduleapi/plans/token-plan.html) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `scnet-token-plan/DeepSeek-V3.2` | 128K | | | | | | — | — |
|
|
40
|
+
| `scnet-token-plan/DeepSeek-V4-Flash` | 1.0M | | | | | | — | — |
|
|
41
|
+
| `scnet-token-plan/GLM-5` | 205K | | | | | | — | — |
|
|
42
|
+
| `scnet-token-plan/GLM-5.1` | 200K | | | | | | — | — |
|
|
43
|
+
| `scnet-token-plan/GLM-5.2` | 1.0M | | | | | | — | — |
|
|
44
|
+
| `scnet-token-plan/Kimi-K2.5` | 262K | | | | | | — | — |
|
|
45
|
+
| `scnet-token-plan/Kimi-K2.6` | 262K | | | | | | — | — |
|
|
46
|
+
| `scnet-token-plan/Kimi-K2.7-Code` | 262K | | | | | | — | — |
|
|
47
|
+
| `scnet-token-plan/Kimi-K3` | 1.0M | | | | | | — | — |
|
|
48
|
+
| `scnet-token-plan/MiMo-V2.5-Pro` | 1.0M | | | | | | — | — |
|
|
49
|
+
| `scnet-token-plan/MiniMax-M2.5` | 205K | | | | | | — | — |
|
|
50
|
+
| `scnet-token-plan/MiniMax-M2.7` | 205K | | | | | | — | — |
|
|
51
|
+
| `scnet-token-plan/MiniMax-M3` | 512K | | | | | | — | — |
|
|
52
|
+
|
|
53
|
+
## Advanced configuration
|
|
54
|
+
|
|
55
|
+
### Custom headers
|
|
56
|
+
|
|
57
|
+
```typescript
|
|
58
|
+
const agent = new Agent({
|
|
59
|
+
id: "custom-agent",
|
|
60
|
+
name: "custom-agent",
|
|
61
|
+
model: {
|
|
62
|
+
url: "https://api.scnet.cn/api/llm/v1",
|
|
63
|
+
id: "scnet-token-plan/DeepSeek-V3.2",
|
|
64
|
+
apiKey: process.env.SCNET_API_KEY,
|
|
65
|
+
headers: {
|
|
66
|
+
"X-Custom-Header": "value"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
### Dynamic model selection
|
|
73
|
+
|
|
74
|
+
```typescript
|
|
75
|
+
const agent = new Agent({
|
|
76
|
+
id: "dynamic-agent",
|
|
77
|
+
name: "Dynamic Agent",
|
|
78
|
+
model: ({ requestContext }) => {
|
|
79
|
+
const useAdvanced = requestContext.task === "complex";
|
|
80
|
+
return useAdvanced
|
|
81
|
+
? "scnet-token-plan/MiniMax-M3"
|
|
82
|
+
: "scnet-token-plan/DeepSeek-V3.2";
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
```
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# SCX.ai
|
|
4
|
+
|
|
5
|
+
Access 4 SCX.ai models through Mastra's model router. Authentication is handled automatically using the `SCX_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [SCX.ai documentation](https://platform.scx.ai/docs).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
SCX_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: "scx-ai/GLM-5.2"
|
|
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 [SCX.ai documentation](https://platform.scx.ai/docs) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| --------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `scx-ai/GLM-5.2` | 1.0M | | | | | | $0.55 | $2 |
|
|
40
|
+
| `scx-ai/gpt-oss-120b` | 131K | | | | | | $0.17 | $0.55 |
|
|
41
|
+
| `scx-ai/MiniMax-M2.7` | 197K | | | | | | $0.48 | $2 |
|
|
42
|
+
| `scx-ai/Qwen3.8-Max` | 1.0M | | | | | | $2 | $5 |
|
|
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.scx.ai/v1",
|
|
54
|
+
id: "scx-ai/GLM-5.2",
|
|
55
|
+
apiKey: process.env.SCX_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
|
+
? "scx-ai/gpt-oss-120b"
|
|
73
|
+
: "scx-ai/GLM-5.2";
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Together AI
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 36 Together AI models through Mastra's model router. Authentication is handled automatically using the `TOGETHER_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Together AI documentation](https://docs.together.ai/docs/serverless-models).
|
|
8
8
|
|
|
@@ -37,6 +37,7 @@ for await (const chunk of stream) {
|
|
|
37
37
|
| `togetherai/deepcogito/cogito-v2-1-671b` | 164K | | | | | | $1 | $1 |
|
|
38
38
|
| `togetherai/deepseek-ai/DeepSeek-V4-Flash-0731` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
39
39
|
| `togetherai/deepseek-ai/DeepSeek-V4-Pro` | 512K | | | | | | $2 | $3 |
|
|
40
|
+
| `togetherai/deepseek-ai/DeepSeek-V4-Pro-0813` | 1.0M | | | | | | $1 | $4 |
|
|
40
41
|
| `togetherai/google/gemma-3n-E4B-it` | 33K | | | | | | $0.06 | $0.12 |
|
|
41
42
|
| `togetherai/google/gemma-4-31B-it` | 262K | | | | | | $0.39 | $0.97 |
|
|
42
43
|
| `togetherai/LiquidAI/LFM2-24B-A2B` | 33K | | | | | | $0.03 | $0.12 |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Umans AI Coding Plan
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 9 Umans AI Coding Plan models through Mastra's model router. Authentication is handled automatically using the `UMANS_AI_CODING_PLAN_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Umans AI Coding Plan documentation](https://app.umans.ai/offers/code/docs).
|
|
8
8
|
|
|
@@ -38,6 +38,7 @@ for await (const chunk of stream) {
|
|
|
38
38
|
| --------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
39
|
| `umans-ai-coding-plan/umans-coder` | 262K | | | | | | — | — |
|
|
40
40
|
| `umans-ai-coding-plan/umans-deepseek-v4-flash-0731` | 1.0M | | | | | | — | — |
|
|
41
|
+
| `umans-ai-coding-plan/umans-deepseek-v4-pro-0813` | 1.0M | | | | | | — | — |
|
|
41
42
|
| `umans-ai-coding-plan/umans-flash` | 262K | | | | | | — | — |
|
|
42
43
|
| `umans-ai-coding-plan/umans-glm-5.1` | 205K | | | | | | — | — |
|
|
43
44
|
| `umans-ai-coding-plan/umans-glm-5.2` | 406K | | | | | | — | — |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Umans AI
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 8 Umans AI models through Mastra's model router. Authentication is handled automatically using the `UMANS_AI_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Umans AI documentation](https://app.umans.ai/offers/code/docs/orgs).
|
|
8
8
|
|
|
@@ -38,6 +38,7 @@ for await (const chunk of stream) {
|
|
|
38
38
|
| --------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
39
|
| `umans-ai/umans-coder` | 262K | | | | | | $0.95 | $4 |
|
|
40
40
|
| `umans-ai/umans-deepseek-v4-flash-0731` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
41
|
+
| `umans-ai/umans-deepseek-v4-pro-0813` | 1.0M | | | | | | $1 | $4 |
|
|
41
42
|
| `umans-ai/umans-flash` | 262K | | | | | | $0.15 | $1 |
|
|
42
43
|
| `umans-ai/umans-glm-5.1` | 205K | | | | | | $1 | $4 |
|
|
43
44
|
| `umans-ai/umans-glm-5.2` | 406K | | | | | | $1 | $4 |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Vivgrid
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 20 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
|
|
|
@@ -42,6 +42,7 @@ for await (const chunk of stream) {
|
|
|
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
44
|
| `vivgrid/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
45
|
+
| `vivgrid/glm-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
45
46
|
| `vivgrid/gpt-5-mini` | 272K | | | | | | $0.25 | $2 |
|
|
46
47
|
| `vivgrid/gpt-5.1-codex` | 400K | | | | | | $1 | $10 |
|
|
47
48
|
| `vivgrid/gpt-5.1-codex-max` | 400K | | | | | | $1 | $10 |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Weights & Biases
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 29 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
|
|
|
@@ -62,6 +62,7 @@ for await (const chunk of stream) {
|
|
|
62
62
|
| `wandb/Qwen/Qwen3.5-35B-A3B` | 262K | | | | | | $0.25 | $1 |
|
|
63
63
|
| `wandb/Qwen/Qwen3.6-27B` | 262K | | | | | | $0.60 | $4 |
|
|
64
64
|
| `wandb/Qwen/Qwen3.6-35B-A3B` | 262K | | | | | | $0.25 | $1 |
|
|
65
|
+
| `wandb/Qwen/Qwen3.8-27B` | 262K | | | | | | $0.40 | $3 |
|
|
65
66
|
| `wandb/zai-org/GLM-5.1` | 203K | | | | | | $1 | $4 |
|
|
66
67
|
| `wandb/zai-org/GLM-5.2` | 262K | | | | | | $0.76 | $2 |
|
|
67
68
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# xAI
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 12 xAI models through Mastra's model router. Authentication is handled automatically using the `XAI_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [xAI documentation](https://docs.x.ai/docs/models).
|
|
8
8
|
|
|
@@ -42,6 +42,7 @@ for await (const chunk of stream) {
|
|
|
42
42
|
| `xai/grok-4.6` | 500K | | | | | | $2 | $6 |
|
|
43
43
|
| `xai/grok-build-0.1` | 256K | | | | | | $1 | $2 |
|
|
44
44
|
| `xai/grok-imagine-image` | 8K | | | | | | — | — |
|
|
45
|
+
| `xai/grok-imagine-image-2.0` | 8K | | | | | | — | — |
|
|
45
46
|
| `xai/grok-imagine-image-quality` | 8K | | | | | | — | — |
|
|
46
47
|
| `xai/grok-imagine-video` | 1K | | | | | | — | — |
|
|
47
48
|
| `xai/grok-imagine-video-1.5` | 1K | | | | | | — | — |
|
|
@@ -24,7 +24,9 @@ Direct access to individual AI model providers. Each provider offers unique mode
|
|
|
24
24
|
- [Alibaba Token Plan](https://mastra.ai/models/providers/alibaba-token-plan)
|
|
25
25
|
- [Alibaba Token Plan (China)](https://mastra.ai/models/providers/alibaba-token-plan-cn)
|
|
26
26
|
- [Ambient](https://mastra.ai/models/providers/ambient)
|
|
27
|
+
- [AMD](https://mastra.ai/models/providers/amd)
|
|
27
28
|
- [AnyAPI](https://mastra.ai/models/providers/anyapi)
|
|
29
|
+
- [Arcee](https://mastra.ai/models/providers/arcee)
|
|
28
30
|
- [Atomic Chat](https://mastra.ai/models/providers/atomic-chat)
|
|
29
31
|
- [Auriko](https://mastra.ai/models/providers/auriko)
|
|
30
32
|
- [Bailing](https://mastra.ai/models/providers/bailing)
|
|
@@ -73,10 +75,12 @@ Direct access to individual AI model providers. Each provider offers unique mode
|
|
|
73
75
|
- [InferX](https://mastra.ai/models/providers/inferx)
|
|
74
76
|
- [Infomaniak](https://mastra.ai/models/providers/infomaniak)
|
|
75
77
|
- [IO.NET](https://mastra.ai/models/providers/io-net)
|
|
78
|
+
- [Jalapeno Cloud](https://mastra.ai/models/providers/jalapeno)
|
|
76
79
|
- [Jiekou.AI](https://mastra.ai/models/providers/jiekou)
|
|
77
80
|
- [Kenari](https://mastra.ai/models/providers/kenari)
|
|
78
81
|
- [Kilo Gateway](https://mastra.ai/models/providers/kilo)
|
|
79
82
|
- [Kimi For Coding](https://mastra.ai/models/providers/kimi-for-coding)
|
|
83
|
+
- [Kosmik Compute](https://mastra.ai/models/providers/kosmik)
|
|
80
84
|
- [KUAE Cloud Coding Plan](https://mastra.ai/models/providers/kuae-cloud-coding-plan)
|
|
81
85
|
- [Lilac](https://mastra.ai/models/providers/lilac)
|
|
82
86
|
- [Llama](https://mastra.ai/models/providers/llama)
|
|
@@ -87,7 +91,6 @@ Direct access to individual AI model providers. Each provider offers unique mode
|
|
|
87
91
|
- [LucidQuery](https://mastra.ai/models/providers/lucidquery)
|
|
88
92
|
- [Lynkr](https://mastra.ai/models/providers/lynkr)
|
|
89
93
|
- [Meganova](https://mastra.ai/models/providers/meganova)
|
|
90
|
-
- [Merge Gateway](https://mastra.ai/models/providers/merge-gateway)
|
|
91
94
|
- [Meta](https://mastra.ai/models/providers/meta)
|
|
92
95
|
- [MiniMax (minimax.io)](https://mastra.ai/models/providers/minimax)
|
|
93
96
|
- [MiniMax (minimaxi.com)](https://mastra.ai/models/providers/minimax-cn)
|
|
@@ -126,10 +129,12 @@ Direct access to individual AI model providers. Each provider offers unique mode
|
|
|
126
129
|
- [Regolo AI](https://mastra.ai/models/providers/regolo-ai)
|
|
127
130
|
- [Requesty](https://mastra.ai/models/providers/requesty)
|
|
128
131
|
- [routing.run](https://mastra.ai/models/providers/routing-run)
|
|
132
|
+
- [RunInfra](https://mastra.ai/models/providers/runinfra)
|
|
129
133
|
- [Sakana AI](https://mastra.ai/models/providers/sakana)
|
|
130
134
|
- [Sarvam AI](https://mastra.ai/models/providers/sarvam)
|
|
131
135
|
- [Scaleway](https://mastra.ai/models/providers/scaleway)
|
|
132
|
-
- [
|
|
136
|
+
- [SCNet Token Plan](https://mastra.ai/models/providers/scnet-token-plan)
|
|
137
|
+
- [SCX.ai](https://mastra.ai/models/providers/scx-ai)
|
|
133
138
|
- [SiliconFlow](https://mastra.ai/models/providers/siliconflow)
|
|
134
139
|
- [SiliconFlow (China)](https://mastra.ai/models/providers/siliconflow-cn)
|
|
135
140
|
- [Snowflake Cortex](https://mastra.ai/models/providers/snowflake-cortex)
|
|
@@ -224,9 +224,9 @@ Use this callback to enforce local policy or inspect the permission title. It ca
|
|
|
224
224
|
|
|
225
225
|
## Related
|
|
226
226
|
|
|
227
|
-
- [Agent Client Protocol docs](https://mastra.ai/docs/
|
|
227
|
+
- [Agent Client Protocol docs](https://mastra.ai/docs/connections/acp)
|
|
228
228
|
- [createACPTool() reference](https://mastra.ai/reference/acp/create-acp-tool)
|
|
229
229
|
- [Agent reference](https://mastra.ai/reference/agents/agent)
|
|
230
|
-
- [Subagents](https://mastra.ai/docs/
|
|
230
|
+
- [Subagents](https://mastra.ai/docs/subagents)
|
|
231
231
|
- [Agent Client Protocol introduction](https://agentclientprotocol.com/overview/introduction)
|
|
232
232
|
- [Agent Client Protocol schema](https://agentclientprotocol.com/protocol/schema)
|