@mastra/mcp-docs-server 1.2.7-alpha.1 → 1.2.7-alpha.12
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 +45 -3
- package/.docs/docs/agent-builder/overview.md +4 -3
- package/.docs/docs/agent-builder/skill-registries.md +1 -3
- package/.docs/docs/agent-controller/modes.md +1 -1
- package/.docs/docs/agent-controller/overview.md +4 -3
- package/.docs/docs/agent-controller/session.md +3 -5
- package/.docs/docs/agents/a2a.md +2 -1
- package/.docs/docs/agents/agent-approval.md +2 -2
- package/.docs/docs/agents/code-mode.md +1 -1
- package/.docs/docs/agents/guardrails.md +10 -9
- package/.docs/docs/agents/networks.md +1 -1
- package/.docs/docs/agents/overview.md +5 -5
- package/.docs/docs/agents/skills.md +3 -5
- package/.docs/docs/agents/structured-output.md +1 -1
- package/.docs/docs/agents/supervisor-agents.md +3 -4
- package/.docs/docs/agents/using-tools.md +2 -4
- package/.docs/docs/browser/agent-browser.md +1 -3
- package/.docs/docs/browser/browser-viewer.md +1 -3
- package/.docs/docs/browser/overview.md +2 -1
- package/.docs/docs/browser/recording.md +1 -1
- package/.docs/docs/browser/stagehand.md +1 -1
- package/.docs/docs/capabilities/channels/discord.md +98 -0
- package/.docs/docs/capabilities/channels/other-adapters.md +68 -0
- package/.docs/docs/capabilities/channels/overview.md +255 -0
- package/.docs/docs/capabilities/channels/slack.md +225 -0
- package/.docs/docs/capabilities/channels/teams.md +100 -0
- package/.docs/docs/capabilities/channels/telegram.md +98 -0
- package/.docs/docs/capabilities/channels/whatsapp.md +99 -0
- 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/built-in-scorers.md +2 -2
- package/.docs/docs/evals/custom-scorers.md +1 -3
- package/.docs/docs/evals/datasets/overview.md +4 -5
- package/.docs/docs/evals/datasets/running-experiments.md +10 -8
- package/.docs/docs/evals/evals-with-memory.md +1 -3
- package/.docs/docs/evals/gates-and-verdicts.md +2 -4
- package/.docs/docs/evals/overview.md +4 -1
- package/.docs/docs/evals/quick-checks.md +3 -5
- package/.docs/docs/getting-started/file-based-agents.md +116 -0
- package/.docs/docs/getting-started/manual-install.md +17 -4
- package/.docs/docs/index.md +1 -1
- package/.docs/docs/long-running-agents/background-tasks.md +3 -3
- package/.docs/docs/long-running-agents/durable-agents.md +5 -7
- package/.docs/docs/long-running-agents/goals.md +5 -7
- package/.docs/docs/long-running-agents/schedules.md +1 -1
- package/.docs/docs/long-running-agents/signal-providers.md +1 -3
- package/.docs/docs/long-running-agents/signals.md +12 -23
- package/.docs/docs/mastra-platform/database.md +2 -2
- package/.docs/docs/mastra-platform/github.md +1 -1
- package/.docs/docs/mastra-platform/observability.md +5 -1
- package/.docs/docs/mcp/mcp-apps.md +3 -3
- package/.docs/docs/mcp/overview.md +6 -10
- package/.docs/docs/memory/memory-processors.md +67 -0
- package/.docs/docs/memory/message-history.md +56 -2
- package/.docs/docs/memory/observational-memory.md +5 -4
- package/.docs/docs/memory/overview.md +8 -6
- package/.docs/docs/memory/semantic-recall.md +36 -2
- package/.docs/docs/memory/working-memory.md +3 -3
- package/.docs/docs/observability/integrations/exporters/mastra-platform.md +1 -3
- package/.docs/docs/observability/integrations/exporters/mastra-storage.md +1 -1
- package/.docs/docs/observability/logging.md +1 -1
- package/.docs/docs/observability/tracing/overview.md +1 -1
- package/.docs/docs/rag/vector-databases.md +7 -2
- 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 +3 -3
- 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/storage/overview.md +214 -0
- package/.docs/docs/studio/auth.md +1 -3
- package/.docs/docs/studio/overview.md +1 -1
- package/.docs/docs/voice/livekit.md +101 -4
- package/.docs/docs/workflows/agents-and-tools.md +3 -5
- package/.docs/docs/workflows/control-flow.md +1 -3
- package/.docs/docs/workflows/overview.md +6 -7
- package/.docs/docs/workflows/snapshots.md +1 -1
- package/.docs/docs/workspace/overview.md +2 -1
- package/.docs/docs/workspace/sandbox.md +2 -0
- package/.docs/guides/build-your-ui/assistant-ui.md +1 -1
- package/.docs/guides/build-your-ui/copilotkit/channels.md +1 -1
- package/.docs/guides/build-your-ui/copilotkit/generative-ui.md +2 -2
- package/.docs/guides/build-your-ui/copilotkit/overview.md +1 -1
- package/.docs/guides/concepts/streaming.md +3 -3
- package/.docs/guides/getting-started/quickstart.md +4 -2
- package/.docs/guides/guide/chef-michel.md +0 -2
- package/.docs/guides/guide/slack-assistant.md +2 -2
- package/.docs/guides/guide/stock-agent.md +0 -2
- package/.docs/models/embeddings.md +119 -0
- package/.docs/models/environment-variables.md +7 -0
- package/.docs/models/gateways/netlify.md +4 -1
- package/.docs/models/gateways/openrouter.md +10 -7
- package/.docs/models/gateways/vercel.md +8 -1
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/abacus.md +44 -14
- package/.docs/models/providers/crossmodel.md +109 -0
- package/.docs/models/providers/empiriolabs.md +106 -0
- package/.docs/models/providers/google.md +2 -1
- package/.docs/models/providers/llmgateway.md +185 -181
- package/.docs/models/providers/meta.md +101 -0
- package/.docs/models/providers/model-oracle-ai.md +87 -0
- package/.docs/models/providers/nano-gpt.md +2 -2
- package/.docs/models/providers/neon.md +40 -29
- package/.docs/models/providers/nvidia.md +1 -3
- package/.docs/models/providers/openai.md +6 -1
- package/.docs/models/providers/opencode.md +6 -2
- package/.docs/models/providers/pioneer.md +148 -0
- package/.docs/models/providers/poolside.md +6 -5
- package/.docs/models/providers/routing-run.md +23 -34
- package/.docs/models/providers/the-grid-ai.md +3 -3
- package/.docs/models/providers/unorouter.md +95 -0
- package/.docs/models/providers/wandb.md +21 -14
- package/.docs/models/providers/xai.md +2 -1
- package/.docs/models/providers/zenifra.md +73 -0
- package/.docs/models/providers.md +7 -0
- package/.docs/reference/agent-controller/agent-controller-class.md +3 -3
- package/.docs/reference/agent-controller/session.md +4 -4
- package/.docs/reference/agents/agent.md +1 -1
- package/.docs/reference/agents/channels.md +2 -2
- package/.docs/reference/agents/inngest-agent.md +1 -1
- package/.docs/reference/agents/listSkills.md +1 -1
- package/.docs/reference/agents/listSuspendedRuns.md +3 -3
- package/.docs/reference/auth/google.md +5 -5
- package/.docs/reference/channels/channel-provider.md +1 -1
- package/.docs/reference/channels/slack-provider.md +3 -3
- package/.docs/reference/cli/mastra.md +119 -12
- package/.docs/reference/code-sdk/mount-agent-controller.md +76 -0
- package/.docs/reference/coding-agent/create-coding-agent.md +1 -1
- package/.docs/reference/configuration.md +1 -1
- package/.docs/reference/evals/checks.md +4 -4
- package/.docs/reference/evals/create-scorer.md +8 -0
- package/.docs/reference/file-based-agents/config.md +97 -0
- package/.docs/reference/file-based-agents/instructions.md +54 -0
- package/.docs/reference/file-based-agents/logger.md +26 -0
- package/.docs/reference/file-based-agents/memory.md +58 -0
- package/.docs/reference/file-based-agents/observability.md +32 -0
- package/.docs/reference/file-based-agents/processors.md +56 -0
- package/.docs/reference/file-based-agents/scorers.md +54 -0
- package/.docs/reference/file-based-agents/server.md +37 -0
- package/.docs/reference/file-based-agents/skills.md +56 -0
- package/.docs/reference/file-based-agents/storage.md +30 -0
- package/.docs/reference/file-based-agents/studio.md +56 -0
- package/.docs/reference/file-based-agents/subagents.md +123 -0
- package/.docs/reference/file-based-agents/tools.md +63 -0
- package/.docs/reference/file-based-agents/workflows.md +52 -0
- package/.docs/reference/file-based-agents/workspace.md +74 -0
- package/.docs/reference/index.md +18 -0
- package/.docs/reference/memory/memory-class.md +1 -1
- package/.docs/reference/memory/observational-memory.md +1 -1
- package/.docs/reference/memory/serialized-memory-config.md +1 -1
- package/.docs/reference/memory/summarizeConversation.md +99 -0
- package/.docs/reference/memory/summarizeThread.md +93 -0
- package/.docs/{docs/getting-started → reference}/project-structure.md +3 -10
- package/.docs/reference/pubsub/lease-provider.md +5 -5
- 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/signals/task-signal-provider.md +1 -1
- package/.docs/reference/storage/clickhouse.md +34 -2
- package/.docs/reference/storage/cloudflare-d1.md +1 -1
- package/.docs/reference/storage/composite.md +64 -6
- package/.docs/reference/storage/convex.md +1 -1
- package/.docs/reference/storage/dynamodb.md +1 -1
- package/.docs/reference/storage/mongodb.md +46 -46
- package/.docs/reference/storage/retention.md +74 -6
- package/.docs/reference/tools/create-tool.md +2 -2
- package/.docs/reference/tools/mcp-client.md +22 -0
- package/.docs/reference/tools/mcp-server.md +161 -4
- package/.docs/reference/vectors/mongodb.md +93 -4
- package/.docs/reference/voice/livekit.md +272 -8
- 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 +6 -8
- 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 +1 -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/mesa-filesystem.md +4 -4
- package/.docs/reference/workspace/modal-sandbox.md +1 -3
- package/.docs/reference/workspace/railway-sandbox.md +2 -4
- 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 +2 -4
- package/CHANGELOG.md +36 -0
- package/package.json +5 -5
- package/.docs/docs/agents/channels.md +0 -225
- package/.docs/docs/agents/file-based-agents.md +0 -297
- package/.docs/docs/memory/storage.md +0 -267
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Netlify
|
|
4
4
|
|
|
5
|
-
Netlify AI Gateway provides unified access to multiple providers with built-in caching and observability. Access
|
|
5
|
+
Netlify AI Gateway provides unified access to multiple providers with built-in caching and observability. Access 70 models through Mastra's model router.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Netlify documentation](https://docs.netlify.com/build/ai-gateway/overview/).
|
|
8
8
|
|
|
@@ -101,6 +101,9 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
101
101
|
| `openai/gpt-5.5-2026-04-23` |
|
|
102
102
|
| `openai/gpt-5.5-pro` |
|
|
103
103
|
| `openai/gpt-5.5-pro-2026-04-23` |
|
|
104
|
+
| `openai/gpt-5.6-luna` |
|
|
105
|
+
| `openai/gpt-5.6-sol` |
|
|
106
|
+
| `openai/gpt-5.6-terra` |
|
|
104
107
|
| `openai/o3` |
|
|
105
108
|
| `openai/o3-mini` |
|
|
106
109
|
| `openai/o4-mini` |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# OpenRouter
|
|
4
4
|
|
|
5
|
-
OpenRouter aggregates models from multiple providers with enhanced features like rate limiting and failover. Access
|
|
5
|
+
OpenRouter aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 345 models through Mastra's model router.
|
|
6
6
|
|
|
7
7
|
Learn more in the [OpenRouter documentation](https://openrouter.ai/models).
|
|
8
8
|
|
|
@@ -45,6 +45,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
45
45
|
| `~moonshotai/kimi-latest` |
|
|
46
46
|
| `~openai/gpt-latest` |
|
|
47
47
|
| `~openai/gpt-mini-latest` |
|
|
48
|
+
| `~x-ai/grok-latest` |
|
|
48
49
|
| `ai21/jamba-large-1.7` |
|
|
49
50
|
| `aion-labs/aion-2.0` |
|
|
50
51
|
| `aion-labs/aion-3.0` |
|
|
@@ -74,7 +75,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
74
75
|
| `anthropic/claude-sonnet-5` |
|
|
75
76
|
| `arcee-ai/coder-large` |
|
|
76
77
|
| `arcee-ai/trinity-large-thinking` |
|
|
77
|
-
| `arcee-ai/trinity-mini` |
|
|
78
78
|
| `arcee-ai/virtuoso-large` |
|
|
79
79
|
| `baidu/ernie-4.5-vl-424b-a47b` |
|
|
80
80
|
| `bytedance-seed/seed-1.6` |
|
|
@@ -82,6 +82,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
82
82
|
| `bytedance-seed/seed-2.0-lite` |
|
|
83
83
|
| `bytedance-seed/seed-2.0-mini` |
|
|
84
84
|
| `bytedance/ui-tars-1.5-7b` |
|
|
85
|
+
| `cognitivecomputations/dolphin-mistral-24b-venice-edition` |
|
|
85
86
|
| `cognitivecomputations/dolphin-mistral-24b-venice-edition:free` |
|
|
86
87
|
| `cohere/command-a` |
|
|
87
88
|
| `cohere/command-r-08-2024` |
|
|
@@ -103,7 +104,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
103
104
|
| `google/gemini-2.5-flash` |
|
|
104
105
|
| `google/gemini-2.5-flash-image` |
|
|
105
106
|
| `google/gemini-2.5-flash-lite` |
|
|
106
|
-
| `google/gemini-2.5-flash-lite-preview-09-2025` |
|
|
107
107
|
| `google/gemini-2.5-pro` |
|
|
108
108
|
| `google/gemini-2.5-pro-preview` |
|
|
109
109
|
| `google/gemini-2.5-pro-preview-05-06` |
|
|
@@ -139,7 +139,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
139
139
|
| `inflection/inflection-3-pi` |
|
|
140
140
|
| `inflection/inflection-3-productivity` |
|
|
141
141
|
| `kwaipilot/kat-coder-pro-v2` |
|
|
142
|
-
| `liquid/lfm-2-24b-a2b` |
|
|
143
142
|
| `liquid/lfm-2.5-1.2b-instruct:free` |
|
|
144
143
|
| `liquid/lfm-2.5-1.2b-thinking:free` |
|
|
145
144
|
| `mancer/weaver` |
|
|
@@ -253,6 +252,12 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
253
252
|
| `openai/gpt-5.4-pro` |
|
|
254
253
|
| `openai/gpt-5.5` |
|
|
255
254
|
| `openai/gpt-5.5-pro` |
|
|
255
|
+
| `openai/gpt-5.6-luna` |
|
|
256
|
+
| `openai/gpt-5.6-luna-pro` |
|
|
257
|
+
| `openai/gpt-5.6-sol` |
|
|
258
|
+
| `openai/gpt-5.6-sol-pro` |
|
|
259
|
+
| `openai/gpt-5.6-terra` |
|
|
260
|
+
| `openai/gpt-5.6-terra-pro` |
|
|
256
261
|
| `openai/gpt-audio` |
|
|
257
262
|
| `openai/gpt-audio-mini` |
|
|
258
263
|
| `openai/gpt-chat-latest` |
|
|
@@ -286,8 +291,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
286
291
|
| `poolside/laguna-m.1:free` |
|
|
287
292
|
| `poolside/laguna-xs-2.1` |
|
|
288
293
|
| `poolside/laguna-xs-2.1:free` |
|
|
289
|
-
| `poolside/laguna-xs.2` |
|
|
290
|
-
| `poolside/laguna-xs.2:free` |
|
|
291
294
|
| `qwen/qwen-2.5-72b-instruct` |
|
|
292
295
|
| `qwen/qwen-2.5-7b-instruct` |
|
|
293
296
|
| `qwen/qwen-2.5-coder-32b-instruct` |
|
|
@@ -348,7 +351,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
348
351
|
| `sao10k/l3.3-euryale-70b` |
|
|
349
352
|
| `stepfun/step-3.5-flash` |
|
|
350
353
|
| `stepfun/step-3.7-flash` |
|
|
351
|
-
| `switchpoint/router` |
|
|
352
354
|
| `tencent/hunyuan-a13b-instruct` |
|
|
353
355
|
| `tencent/hy3` |
|
|
354
356
|
| `tencent/hy3-preview` |
|
|
@@ -363,6 +365,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
363
365
|
| `x-ai/grok-4.20` |
|
|
364
366
|
| `x-ai/grok-4.20-multi-agent` |
|
|
365
367
|
| `x-ai/grok-4.3` |
|
|
368
|
+
| `x-ai/grok-4.5` |
|
|
366
369
|
| `x-ai/grok-build-0.1` |
|
|
367
370
|
| `xiaomi/mimo-v2.5` |
|
|
368
371
|
| `xiaomi/mimo-v2.5-pro` |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Vercel
|
|
4
4
|
|
|
5
|
-
Vercel aggregates models from multiple providers with enhanced features like rate limiting and failover. Access
|
|
5
|
+
Vercel aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 306 models through Mastra's model router.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Vercel documentation](https://ai-sdk.dev/providers/ai-sdk-providers).
|
|
8
8
|
|
|
@@ -141,6 +141,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
141
141
|
| `google/gemini-3.5-flash` |
|
|
142
142
|
| `google/gemini-embedding-001` |
|
|
143
143
|
| `google/gemini-embedding-2` |
|
|
144
|
+
| `google/gemini-omni-flash-preview` |
|
|
144
145
|
| `google/gemma-4-26b-a4b-it` |
|
|
145
146
|
| `google/gemma-4-31b-it` |
|
|
146
147
|
| `google/imagen-4.0-fast-generate-001` |
|
|
@@ -176,6 +177,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
176
177
|
| `meta/llama-3.3-70b` |
|
|
177
178
|
| `meta/llama-4-maverick` |
|
|
178
179
|
| `meta/llama-4-scout` |
|
|
180
|
+
| `meta/muse-spark-1.1` |
|
|
179
181
|
| `minimax/minimax-m2` |
|
|
180
182
|
| `minimax/minimax-m2.1` |
|
|
181
183
|
| `minimax/minimax-m2.1-lightning` |
|
|
@@ -249,6 +251,9 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
249
251
|
| `openai/gpt-5.4-pro` |
|
|
250
252
|
| `openai/gpt-5.5` |
|
|
251
253
|
| `openai/gpt-5.5-pro` |
|
|
254
|
+
| `openai/gpt-5.6-luna` |
|
|
255
|
+
| `openai/gpt-5.6-sol` |
|
|
256
|
+
| `openai/gpt-5.6-terra` |
|
|
252
257
|
| `openai/gpt-image-1` |
|
|
253
258
|
| `openai/gpt-image-1-mini` |
|
|
254
259
|
| `openai/gpt-image-1.5` |
|
|
@@ -258,6 +263,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
258
263
|
| `openai/gpt-oss-safeguard-20b` |
|
|
259
264
|
| `openai/gpt-realtime-1.5` |
|
|
260
265
|
| `openai/gpt-realtime-2` |
|
|
266
|
+
| `openai/gpt-realtime-2.1` |
|
|
261
267
|
| `openai/gpt-realtime-mini` |
|
|
262
268
|
| `openai/o1` |
|
|
263
269
|
| `openai/o3` |
|
|
@@ -308,6 +314,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
308
314
|
| `xai/grok-4.20-reasoning` |
|
|
309
315
|
| `xai/grok-4.20-reasoning-beta` |
|
|
310
316
|
| `xai/grok-4.3` |
|
|
317
|
+
| `xai/grok-4.5` |
|
|
311
318
|
| `xai/grok-build-0.1` |
|
|
312
319
|
| `xai/grok-imagine-image` |
|
|
313
320
|
| `xai/grok-imagine-video` |
|
package/.docs/models/index.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Model Providers
|
|
4
4
|
|
|
5
|
-
Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to
|
|
5
|
+
Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to 4818 models from 147 providers through a single API.
|
|
6
6
|
|
|
7
7
|
## Features
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Abacus
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 95 Abacus models through Mastra's model router. Authentication is handled automatically using the `ABACUS_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Abacus documentation](https://abacus.ai).
|
|
8
8
|
|
|
@@ -17,7 +17,7 @@ const agent = new Agent({
|
|
|
17
17
|
id: "my-agent",
|
|
18
18
|
name: "My Agent",
|
|
19
19
|
instructions: "You are a helpful assistant",
|
|
20
|
-
model: "abacus/
|
|
20
|
+
model: "abacus/MiniMaxAI/MiniMax-M2.7"
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
// Generate a response
|
|
@@ -37,26 +37,39 @@ for await (const chunk of stream) {
|
|
|
37
37
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
38
|
| ---------------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
39
|
| `abacus/claude-3-7-sonnet-20250219` | 200K | | | | | | $3 | $15 |
|
|
40
|
+
| `abacus/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
|
|
40
41
|
| `abacus/claude-haiku-4-5-20251001` | 200K | | | | | | $1 | $5 |
|
|
41
42
|
| `abacus/claude-opus-4-1-20250805` | 200K | | | | | | $15 | $75 |
|
|
42
43
|
| `abacus/claude-opus-4-20250514` | 200K | | | | | | $15 | $75 |
|
|
43
44
|
| `abacus/claude-opus-4-5-20251101` | 200K | | | | | | $5 | $25 |
|
|
44
|
-
| `abacus/claude-opus-4-6` |
|
|
45
|
+
| `abacus/claude-opus-4-6` | 1.0M | | | | | | $5 | $25 |
|
|
46
|
+
| `abacus/claude-opus-4-7` | 1.0M | | | | | | $5 | $25 |
|
|
47
|
+
| `abacus/claude-opus-4-8` | 1.0M | | | | | | $5 | $25 |
|
|
45
48
|
| `abacus/claude-sonnet-4-20250514` | 200K | | | | | | $3 | $15 |
|
|
46
49
|
| `abacus/claude-sonnet-4-5-20250929` | 200K | | | | | | $3 | $15 |
|
|
47
|
-
| `abacus/claude-sonnet-4-6` |
|
|
50
|
+
| `abacus/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
51
|
+
| `abacus/claude-sonnet-5` | 1.0M | | | | | | $3 | $15 |
|
|
48
52
|
| `abacus/deepseek-ai/DeepSeek-R1` | 128K | | | | | | $3 | $7 |
|
|
49
53
|
| `abacus/deepseek-ai/DeepSeek-V3.1-Terminus` | 128K | | | | | | $0.27 | $1 |
|
|
50
54
|
| `abacus/deepseek-ai/DeepSeek-V3.2` | 128K | | | | | | $0.27 | $0.40 |
|
|
55
|
+
| `abacus/deepseek-ai/DeepSeek-V4-Flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
56
|
+
| `abacus/deepseek-ai/DeepSeek-V4-Pro` | 1.0M | | | | | | $2 | $3 |
|
|
51
57
|
| `abacus/deepseek/deepseek-v3.1` | 128K | | | | | | $0.55 | $2 |
|
|
52
58
|
| `abacus/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $3 |
|
|
59
|
+
| `abacus/gemini-2.5-flash-image` | 33K | | | | | | $0.30 | $30 |
|
|
53
60
|
| `abacus/gemini-2.5-pro` | 1.0M | | | | | | $1 | $10 |
|
|
54
61
|
| `abacus/gemini-3-flash-preview` | 1.0M | | | | | | $0.50 | $3 |
|
|
62
|
+
| `abacus/gemini-3-pro-image-preview` | 66K | | | | | | $2 | $12 |
|
|
63
|
+
| `abacus/gemini-3.1-flash-image-preview` | 1.0M | | | | | | $0.50 | $3 |
|
|
64
|
+
| `abacus/gemini-3.1-flash-lite` | 1.0M | | | | | | $0.25 | $2 |
|
|
55
65
|
| `abacus/gemini-3.1-flash-lite-preview` | 1.0M | | | | | | $0.25 | $2 |
|
|
56
66
|
| `abacus/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
|
|
67
|
+
| `abacus/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
|
|
68
|
+
| `abacus/google/gemma-4-31b-it` | 262K | | | | | | $0.14 | $0.40 |
|
|
57
69
|
| `abacus/gpt-4.1` | 1.0M | | | | | | $2 | $8 |
|
|
58
70
|
| `abacus/gpt-4.1-mini` | 1.0M | | | | | | $0.40 | $2 |
|
|
59
71
|
| `abacus/gpt-4.1-nano` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
72
|
+
| `abacus/gpt-4o` | 128K | | | | | | $3 | $10 |
|
|
60
73
|
| `abacus/gpt-4o-2024-11-20` | 128K | | | | | | $3 | $10 |
|
|
61
74
|
| `abacus/gpt-4o-mini` | 128K | | | | | | $0.15 | $0.60 |
|
|
62
75
|
| `abacus/gpt-5` | 400K | | | | | | $1 | $10 |
|
|
@@ -73,10 +86,18 @@ for await (const chunk of stream) {
|
|
|
73
86
|
| `abacus/gpt-5.3-chat-latest` | 400K | | | | | | $2 | $14 |
|
|
74
87
|
| `abacus/gpt-5.3-codex` | 400K | | | | | | $2 | $14 |
|
|
75
88
|
| `abacus/gpt-5.3-codex-xhigh` | 400K | | | | | | $2 | $14 |
|
|
76
|
-
| `abacus/gpt-5.4` |
|
|
89
|
+
| `abacus/gpt-5.4` | 400K | | | | | | $3 | $15 |
|
|
90
|
+
| `abacus/gpt-5.4-mini` | 400K | | | | | | $0.75 | $5 |
|
|
91
|
+
| `abacus/gpt-5.4-nano` | 400K | | | | | | $0.20 | $1 |
|
|
92
|
+
| `abacus/gpt-5.5` | 1.0M | | | | | | $5 | $30 |
|
|
93
|
+
| `abacus/gpt-5.6-luna` | 1.0M | | | | | | $1 | $6 |
|
|
94
|
+
| `abacus/gpt-5.6-sol` | 1.0M | | | | | | $5 | $30 |
|
|
95
|
+
| `abacus/gpt-5.6-terra` | 1.0M | | | | | | $3 | $15 |
|
|
77
96
|
| `abacus/grok-4-0709` | 256K | | | | | | $3 | $15 |
|
|
78
97
|
| `abacus/grok-4-1-fast-non-reasoning` | 2.0M | | | | | | $0.20 | $0.50 |
|
|
79
98
|
| `abacus/grok-4-fast-non-reasoning` | 2.0M | | | | | | $0.20 | $0.50 |
|
|
99
|
+
| `abacus/grok-4.3` | 1.0M | | | | | | $1 | $3 |
|
|
100
|
+
| `abacus/grok-4.5` | 500K | | | | | | $2 | $6 |
|
|
80
101
|
| `abacus/grok-code-fast-1` | 256K | | | | | | $0.20 | $2 |
|
|
81
102
|
| `abacus/kimi-k2-turbo-preview` | 256K | | | | | | $0.15 | $8 |
|
|
82
103
|
| `abacus/kimi-k2.5` | 262K | | | | | | $0.60 | $3 |
|
|
@@ -84,6 +105,12 @@ for await (const chunk of stream) {
|
|
|
84
105
|
| `abacus/meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8` | 1.0M | | | | | | $0.14 | $0.59 |
|
|
85
106
|
| `abacus/meta-llama/Meta-Llama-3.1-405B-Instruct-Turbo` | 128K | | | | | | $4 | $4 |
|
|
86
107
|
| `abacus/meta-llama/Meta-Llama-3.1-8B-Instruct` | 128K | | | | | | $0.02 | $0.05 |
|
|
108
|
+
| `abacus/meta-llama/Meta-Llama-3.3-70B-Instruct` | 131K | | | | | | $0.59 | $0.79 |
|
|
109
|
+
| `abacus/mimo-v2-pro` | 1.0M | | | | | | $1 | $3 |
|
|
110
|
+
| `abacus/MiniMaxAI/MiniMax-M2.7` | 205K | | | | | | $0.30 | $1 |
|
|
111
|
+
| `abacus/MiniMaxAI/MiniMax-M3` | 1.0M | | | | | | $0.30 | $1 |
|
|
112
|
+
| `abacus/moonshotai/Kimi-K2.6` | 262K | | | | | | $0.95 | $4 |
|
|
113
|
+
| `abacus/muse-spark-1.1` | 1.0M | | | | | | $1 | $4 |
|
|
87
114
|
| `abacus/o3` | 200K | | | | | | $2 | $8 |
|
|
88
115
|
| `abacus/o3-mini` | 200K | | | | | | $1 | $4 |
|
|
89
116
|
| `abacus/o3-pro` | 200K | | | | | | $20 | $40 |
|
|
@@ -92,15 +119,18 @@ for await (const chunk of stream) {
|
|
|
92
119
|
| `abacus/qwen-2.5-coder-32b` | 128K | | | | | | $0.79 | $0.79 |
|
|
93
120
|
| `abacus/Qwen/Qwen2.5-72B-Instruct` | 128K | | | | | | $0.11 | $0.38 |
|
|
94
121
|
| `abacus/Qwen/Qwen3-235B-A22B-Instruct-2507` | 262K | | | | | | $0.13 | $0.60 |
|
|
95
|
-
| `abacus/Qwen/Qwen3-32B` |
|
|
96
|
-
| `abacus/Qwen/
|
|
122
|
+
| `abacus/Qwen/Qwen3-32B` | 131K | | | | | | $0.09 | $0.29 |
|
|
123
|
+
| `abacus/Qwen/Qwen3-Coder-480B-A35B-Instruct` | 262K | | | | | | $0.29 | $1 |
|
|
124
|
+
| `abacus/Qwen/Qwen3.6-27B` | 262K | | | | | | $0.32 | $3 |
|
|
97
125
|
| `abacus/Qwen/QwQ-32B` | 33K | | | | | | $0.40 | $0.40 |
|
|
98
126
|
| `abacus/qwen3-max` | 131K | | | | | | $1 | $6 |
|
|
99
127
|
| `abacus/route-llm` | 128K | | | | | | $3 | $15 |
|
|
100
|
-
| `abacus/zai-org/
|
|
101
|
-
| `abacus/zai-org/
|
|
102
|
-
| `abacus/zai-org/
|
|
103
|
-
| `abacus/zai-org/
|
|
128
|
+
| `abacus/zai-org/GLM-4.5` | 131K | | | | | | $0.60 | $2 |
|
|
129
|
+
| `abacus/zai-org/GLM-4.6` | 203K | | | | | | $0.60 | $2 |
|
|
130
|
+
| `abacus/zai-org/GLM-4.7` | 205K | | | | | | $0.60 | $2 |
|
|
131
|
+
| `abacus/zai-org/GLM-5` | 205K | | | | | | $1 | $3 |
|
|
132
|
+
| `abacus/zai-org/GLM-5.1` | 205K | | | | | | $1 | $4 |
|
|
133
|
+
| `abacus/zai-org/GLM-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
104
134
|
|
|
105
135
|
## Advanced configuration
|
|
106
136
|
|
|
@@ -112,7 +142,7 @@ const agent = new Agent({
|
|
|
112
142
|
name: "custom-agent",
|
|
113
143
|
model: {
|
|
114
144
|
url: "https://routellm.abacus.ai/v1",
|
|
115
|
-
id: "abacus/
|
|
145
|
+
id: "abacus/MiniMaxAI/MiniMax-M2.7",
|
|
116
146
|
apiKey: process.env.ABACUS_API_KEY,
|
|
117
147
|
headers: {
|
|
118
148
|
"X-Custom-Header": "value"
|
|
@@ -130,8 +160,8 @@ const agent = new Agent({
|
|
|
130
160
|
model: ({ requestContext }) => {
|
|
131
161
|
const useAdvanced = requestContext.task === "complex";
|
|
132
162
|
return useAdvanced
|
|
133
|
-
? "abacus/zai-org/
|
|
134
|
-
: "abacus/
|
|
163
|
+
? "abacus/zai-org/GLM-5.2"
|
|
164
|
+
: "abacus/MiniMaxAI/MiniMax-M2.7";
|
|
135
165
|
}
|
|
136
166
|
});
|
|
137
167
|
```
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# CrossModel
|
|
4
|
+
|
|
5
|
+
Access 37 CrossModel models through Mastra's model router. Authentication is handled automatically using the `CROSSMODEL_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [CrossModel documentation](https://www.crossmodel.ai/docs).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
CROSSMODEL_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: "crossmodel/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
|
+
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [CrossModel documentation](https://www.crossmodel.ai/docs) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ------------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `crossmodel/anthropic/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
|
|
40
|
+
| `crossmodel/anthropic/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
41
|
+
| `crossmodel/anthropic/claude-opus-4-7` | 1.0M | | | | | | $5 | $25 |
|
|
42
|
+
| `crossmodel/anthropic/claude-opus-4-8` | 1.0M | | | | | | $5 | $25 |
|
|
43
|
+
| `crossmodel/anthropic/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
44
|
+
| `crossmodel/anthropic/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
|
|
45
|
+
| `crossmodel/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.16 | $0.32 |
|
|
46
|
+
| `crossmodel/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $0.47 | $0.94 |
|
|
47
|
+
| `crossmodel/gemini/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $3 |
|
|
48
|
+
| `crossmodel/gemini/gemini-2.5-flash-lite` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
49
|
+
| `crossmodel/gemini/gemini-2.5-pro` | 1.0M | | | | | | $1 | $10 |
|
|
50
|
+
| `crossmodel/gemini/gemini-3-flash-preview` | 1.0M | | | | | | $0.50 | $3 |
|
|
51
|
+
| `crossmodel/gemini/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
|
|
52
|
+
| `crossmodel/gemini/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
|
|
53
|
+
| `crossmodel/minimax/minimax-m2.7` | 205K | | | | | | $0.33 | $1 |
|
|
54
|
+
| `crossmodel/minimax/minimax-m3` | 1.0M | | | | | | $0.33 | $1 |
|
|
55
|
+
| `crossmodel/moonshot/kimi-k2.5` | 262K | | | | | | $0.62 | $3 |
|
|
56
|
+
| `crossmodel/moonshot/kimi-k2.6` | 262K | | | | | | $1 | $4 |
|
|
57
|
+
| `crossmodel/moonshot/kimi-k2.7-code` | 262K | | | | | | $1 | $4 |
|
|
58
|
+
| `crossmodel/openai/gpt-4o-mini` | 128K | | | | | | $0.15 | $0.60 |
|
|
59
|
+
| `crossmodel/openai/gpt-5.4` | 1.1M | | | | | | $3 | $15 |
|
|
60
|
+
| `crossmodel/openai/gpt-5.4-mini` | 400K | | | | | | $0.75 | $5 |
|
|
61
|
+
| `crossmodel/openai/gpt-5.4-nano` | 400K | | | | | | $0.20 | $1 |
|
|
62
|
+
| `crossmodel/openai/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
63
|
+
| `crossmodel/openai/gpt-5.5-pro` | 1.1M | | | | | | $30 | $180 |
|
|
64
|
+
| `crossmodel/qwen/qwen3.6-flash` | 1.0M | | | | | | $0.19 | $1 |
|
|
65
|
+
| `crossmodel/qwen/qwen3.6-plus` | 1.0M | | | | | | $0.32 | $2 |
|
|
66
|
+
| `crossmodel/qwen/qwen3.7-max` | 1.0M | | | | | | $2 | $6 |
|
|
67
|
+
| `crossmodel/qwen/qwen3.7-plus` | 1.0M | | | | | | $0.32 | $1 |
|
|
68
|
+
| `crossmodel/tencent/hy3-preview` | 256K | | | | | | $0.19 | $0.63 |
|
|
69
|
+
| `crossmodel/xiaomi/mimo-v2.5` | 1.0M | | | | | | $0.16 | $0.32 |
|
|
70
|
+
| `crossmodel/xiaomi/mimo-v2.5-pro` | 1.0M | | | | | | $0.47 | $0.94 |
|
|
71
|
+
| `crossmodel/z-ai/glm-4.7` | 200K | | | | | | $0.47 | $2 |
|
|
72
|
+
| `crossmodel/z-ai/glm-5` | 200K | | | | | | $0.60 | $3 |
|
|
73
|
+
| `crossmodel/z-ai/glm-5-turbo` | 200K | | | | | | $0.90 | $4 |
|
|
74
|
+
| `crossmodel/z-ai/glm-5.1` | 200K | | | | | | $1 | $4 |
|
|
75
|
+
| `crossmodel/z-ai/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
76
|
+
|
|
77
|
+
## Advanced configuration
|
|
78
|
+
|
|
79
|
+
### Custom headers
|
|
80
|
+
|
|
81
|
+
```typescript
|
|
82
|
+
const agent = new Agent({
|
|
83
|
+
id: "custom-agent",
|
|
84
|
+
name: "custom-agent",
|
|
85
|
+
model: {
|
|
86
|
+
url: "https://api.crossmodel.ai/v1",
|
|
87
|
+
id: "crossmodel/anthropic/claude-fable-5",
|
|
88
|
+
apiKey: process.env.CROSSMODEL_API_KEY,
|
|
89
|
+
headers: {
|
|
90
|
+
"X-Custom-Header": "value"
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
### Dynamic model selection
|
|
97
|
+
|
|
98
|
+
```typescript
|
|
99
|
+
const agent = new Agent({
|
|
100
|
+
id: "dynamic-agent",
|
|
101
|
+
name: "Dynamic Agent",
|
|
102
|
+
model: ({ requestContext }) => {
|
|
103
|
+
const useAdvanced = requestContext.task === "complex";
|
|
104
|
+
return useAdvanced
|
|
105
|
+
? "crossmodel/z-ai/glm-5.2"
|
|
106
|
+
: "crossmodel/anthropic/claude-fable-5";
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
```
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# EmpirioLabs AI
|
|
4
|
+
|
|
5
|
+
Access 34 EmpirioLabs AI models through Mastra's model router. Authentication is handled automatically using the `EMPIRIOLABS_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [EmpirioLabs AI documentation](https://docs.empiriolabs.ai).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
EMPIRIOLABS_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: "empiriolabs/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
|
+
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [EmpirioLabs AI documentation](https://docs.empiriolabs.ai) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| -------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `empiriolabs/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
40
|
+
| `empiriolabs/deepseek-v4-pro` | 1.0M | | | | | | $2 | $3 |
|
|
41
|
+
| `empiriolabs/fugu-ultra` | 1.0M | | | | | | $8 | $45 |
|
|
42
|
+
| `empiriolabs/gemma-4-26b-a4b` | 262K | | | | | | $0.05 | $0.29 |
|
|
43
|
+
| `empiriolabs/glm-4-5-flash` | 200K | | | | | | — | — |
|
|
44
|
+
| `empiriolabs/glm-4-7-flash` | 200K | | | | | | — | — |
|
|
45
|
+
| `empiriolabs/glm-5-1` | 202K | | | | | | $0.82 | $3 |
|
|
46
|
+
| `empiriolabs/glm-5-2` | 1.0M | | | | | | $1 | $4 |
|
|
47
|
+
| `empiriolabs/kimi-k2-6` | 256K | | | | | | $0.89 | $4 |
|
|
48
|
+
| `empiriolabs/kimi-k2-7-code` | 256K | | | | | | $0.95 | $4 |
|
|
49
|
+
| `empiriolabs/kimi-k2-7-code-highspeed` | 256K | | | | | | $2 | $8 |
|
|
50
|
+
| `empiriolabs/mimo-v2-5` | 1.0M | | | | | | $0.70 | $1 |
|
|
51
|
+
| `empiriolabs/mimo-v2-5-pro` | 1.0M | | | | | | $2 | $4 |
|
|
52
|
+
| `empiriolabs/minimax-m2-7` | 200K | | | | | | $0.15 | $0.60 |
|
|
53
|
+
| `empiriolabs/minimax-m2-7-highspeed` | 200K | | | | | | $0.30 | $1 |
|
|
54
|
+
| `empiriolabs/minimax-m3` | 1.0M | | | | | | $0.23 | $0.90 |
|
|
55
|
+
| `empiriolabs/muse-spark-1-1` | 1.0M | | | | | | $1 | $4 |
|
|
56
|
+
| `empiriolabs/qwen3-5-122b-a10b` | 256K | | | | | | $0.12 | $0.92 |
|
|
57
|
+
| `empiriolabs/qwen3-5-27b` | 256K | | | | | | $0.09 | $0.69 |
|
|
58
|
+
| `empiriolabs/qwen3-5-35b-a3b` | 256K | | | | | | $0.06 | $0.46 |
|
|
59
|
+
| `empiriolabs/qwen3-5-397b-a17b` | 256K | | | | | | $0.17 | $1 |
|
|
60
|
+
| `empiriolabs/qwen3-5-4b` | 262K | | | | | | $0.04 | $0.07 |
|
|
61
|
+
| `empiriolabs/qwen3-5-9b` | 262K | | | | | | $0.09 | $0.13 |
|
|
62
|
+
| `empiriolabs/qwen3-5-plus` | 1.0M | | | | | | $0.36 | $2 |
|
|
63
|
+
| `empiriolabs/qwen3-6-27b` | 256K | | | | | | $0.41 | $2 |
|
|
64
|
+
| `empiriolabs/qwen3-6-flash` | 1.0M | | | | | | $0.25 | $2 |
|
|
65
|
+
| `empiriolabs/qwen3-6-max-preview` | 256K | | | | | | $1 | $8 |
|
|
66
|
+
| `empiriolabs/qwen3-6-plus` | 1.0M | | | | | | $0.50 | $3 |
|
|
67
|
+
| `empiriolabs/qwen3-7-max` | 1.0M | | | | | | $3 | $8 |
|
|
68
|
+
| `empiriolabs/qwen3-7-plus` | 1.0M | | | | | | $0.40 | $2 |
|
|
69
|
+
| `empiriolabs/qwen3-max` | 256K | | | | | | $1 | $6 |
|
|
70
|
+
| `empiriolabs/step-3-5-flash` | 256K | | | | | | $0.10 | $0.30 |
|
|
71
|
+
| `empiriolabs/step-3-5-flash-2603` | 256K | | | | | | $0.10 | $0.30 |
|
|
72
|
+
| `empiriolabs/step-3-7-flash` | 256K | | | | | | $0.20 | $1 |
|
|
73
|
+
|
|
74
|
+
## Advanced configuration
|
|
75
|
+
|
|
76
|
+
### Custom headers
|
|
77
|
+
|
|
78
|
+
```typescript
|
|
79
|
+
const agent = new Agent({
|
|
80
|
+
id: "custom-agent",
|
|
81
|
+
name: "custom-agent",
|
|
82
|
+
model: {
|
|
83
|
+
url: "https://api.empiriolabs.ai/v1",
|
|
84
|
+
id: "empiriolabs/deepseek-v4-flash",
|
|
85
|
+
apiKey: process.env.EMPIRIOLABS_API_KEY,
|
|
86
|
+
headers: {
|
|
87
|
+
"X-Custom-Header": "value"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
### Dynamic model selection
|
|
94
|
+
|
|
95
|
+
```typescript
|
|
96
|
+
const agent = new Agent({
|
|
97
|
+
id: "dynamic-agent",
|
|
98
|
+
name: "Dynamic Agent",
|
|
99
|
+
model: ({ requestContext }) => {
|
|
100
|
+
const useAdvanced = requestContext.task === "complex";
|
|
101
|
+
return useAdvanced
|
|
102
|
+
? "empiriolabs/step-3-7-flash"
|
|
103
|
+
: "empiriolabs/deepseek-v4-flash";
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Google
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 19 Google models through Mastra's model router. Authentication is handled automatically using one of the following environment variables: `GOOGLE_API_KEY`, `GOOGLE_GENERATIVE_AI_API_KEY`.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Google documentation](https://ai.google.dev/gemini-api/docs/models).
|
|
8
8
|
|
|
@@ -51,6 +51,7 @@ for await (const chunk of stream) {
|
|
|
51
51
|
| `google/gemini-embedding-001` | 2K | | | | | | $0.15 | — |
|
|
52
52
|
| `google/gemini-flash-latest` | 1.0M | | | | | | $0.30 | $3 |
|
|
53
53
|
| `google/gemini-flash-lite-latest` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
54
|
+
| `google/gemini-omni-flash-preview` | 131K | | | | | | $2 | $18 |
|
|
54
55
|
| `google/gemma-4-26b-a4b-it` | 262K | | | | | | — | — |
|
|
55
56
|
| `google/gemma-4-31b-it` | 262K | | | | | | — | — |
|
|
56
57
|
|