@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,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
# Mastra
|
|
4
4
|
|
|
5
|
-
The
|
|
5
|
+
The Gateway is an OpenAI-compatible API proxy with built-in [Observational Memory](https://gateway.mastra.ai/docs/features#observational-memory). Point any HTTP client, SDK, or framework at the gateway and every conversation is automatically remembered without any memory management code.
|
|
6
6
|
|
|
7
|
-
Learn more in the [
|
|
7
|
+
Learn more in the [Gateway documentation](https://gateway.mastra.ai/docs).
|
|
8
8
|
|
|
9
9
|
## Get an API key
|
|
10
10
|
|
|
@@ -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 342 models through Mastra's model router.
|
|
6
6
|
|
|
7
7
|
Learn more in the [OpenRouter documentation](https://openrouter.ai/models).
|
|
8
8
|
|
|
@@ -75,7 +75,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
75
75
|
| `anthropic/claude-sonnet-5` |
|
|
76
76
|
| `arcee-ai/coder-large` |
|
|
77
77
|
| `arcee-ai/trinity-large-thinking` |
|
|
78
|
-
| `arcee-ai/trinity-mini` |
|
|
79
78
|
| `arcee-ai/virtuoso-large` |
|
|
80
79
|
| `baidu/ernie-4.5-vl-424b-a47b` |
|
|
81
80
|
| `bytedance-seed/seed-1.6` |
|
|
@@ -83,6 +82,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
83
82
|
| `bytedance-seed/seed-2.0-lite` |
|
|
84
83
|
| `bytedance-seed/seed-2.0-mini` |
|
|
85
84
|
| `bytedance/ui-tars-1.5-7b` |
|
|
85
|
+
| `cognitivecomputations/dolphin-mistral-24b-venice-edition` |
|
|
86
86
|
| `cognitivecomputations/dolphin-mistral-24b-venice-edition:free` |
|
|
87
87
|
| `cohere/command-a` |
|
|
88
88
|
| `cohere/command-r-08-2024` |
|
|
@@ -138,11 +138,10 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
138
138
|
| `inclusionai/ring-2.6-1t` |
|
|
139
139
|
| `inflection/inflection-3-pi` |
|
|
140
140
|
| `inflection/inflection-3-productivity` |
|
|
141
|
+
| `kwaipilot/kat-coder-air-v2.5` |
|
|
141
142
|
| `kwaipilot/kat-coder-pro-v2` |
|
|
142
|
-
| `
|
|
143
|
-
| `liquid/lfm-2.5-1.2b-thinking:free` |
|
|
143
|
+
| `kwaipilot/kat-coder-pro-v2.5` |
|
|
144
144
|
| `mancer/weaver` |
|
|
145
|
-
| `meta-llama/llama-3-8b-instruct` |
|
|
146
145
|
| `meta-llama/llama-3.1-70b-instruct` |
|
|
147
146
|
| `meta-llama/llama-3.1-8b-instruct` |
|
|
148
147
|
| `meta-llama/llama-3.2-11b-vision-instruct` |
|
|
@@ -262,7 +261,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
262
261
|
| `openai/gpt-audio-mini` |
|
|
263
262
|
| `openai/gpt-chat-latest` |
|
|
264
263
|
| `openai/gpt-oss-120b` |
|
|
265
|
-
| `openai/gpt-oss-120b:free` |
|
|
266
264
|
| `openai/gpt-oss-20b` |
|
|
267
265
|
| `openai/gpt-oss-20b:free` |
|
|
268
266
|
| `openai/gpt-oss-safeguard-20b` |
|
|
@@ -346,7 +344,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
346
344
|
| `relace/relace-search` |
|
|
347
345
|
| `sakana/fugu-ultra` |
|
|
348
346
|
| `sao10k/l3-lunaris-8b` |
|
|
349
|
-
| `sao10k/l3.1-70b-hanami-x1` |
|
|
350
347
|
| `sao10k/l3.1-euryale-70b` |
|
|
351
348
|
| `sao10k/l3.3-euryale-70b` |
|
|
352
349
|
| `stepfun/step-3.5-flash` |
|
|
@@ -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 300 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
|
|
|
@@ -77,7 +77,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
77
77
|
| `amazon/nova-pro` |
|
|
78
78
|
| `amazon/titan-embed-text-v2` |
|
|
79
79
|
| `anthropic/claude-3-haiku` |
|
|
80
|
-
| `anthropic/claude-3.5-haiku` |
|
|
81
80
|
| `anthropic/claude-fable-5` |
|
|
82
81
|
| `anthropic/claude-haiku-4.5` |
|
|
83
82
|
| `anthropic/claude-opus-4` |
|
|
@@ -89,7 +88,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
89
88
|
| `anthropic/claude-sonnet-4.5` |
|
|
90
89
|
| `anthropic/claude-sonnet-4.6` |
|
|
91
90
|
| `anthropic/claude-sonnet-5` |
|
|
92
|
-
| `arcee-ai/trinity-large-preview` |
|
|
93
91
|
| `arcee-ai/trinity-large-thinking` |
|
|
94
92
|
| `arcee-ai/trinity-mini` |
|
|
95
93
|
| `bfl/flux-2-flex` |
|
|
@@ -112,6 +110,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
112
110
|
| `bytedance/seedream-4.0` |
|
|
113
111
|
| `bytedance/seedream-4.5` |
|
|
114
112
|
| `bytedance/seedream-5.0-lite` |
|
|
113
|
+
| `bytedance/seedream-5.0-pro` |
|
|
115
114
|
| `cohere/command-a` |
|
|
116
115
|
| `cohere/embed-v4.0` |
|
|
117
116
|
| `cohere/rerank-v3.5` |
|
|
@@ -164,10 +163,10 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
164
163
|
| `klingai/kling-v3.0-i2v` |
|
|
165
164
|
| `klingai/kling-v3.0-motion-control` |
|
|
166
165
|
| `klingai/kling-v3.0-t2v` |
|
|
166
|
+
| `kwaipilot/kat-coder-air-v2.5` |
|
|
167
167
|
| `kwaipilot/kat-coder-pro-v1` |
|
|
168
168
|
| `kwaipilot/kat-coder-pro-v2` |
|
|
169
|
-
| `
|
|
170
|
-
| `meituan/longcat-flash-thinking-2601` |
|
|
169
|
+
| `kwaipilot/kat-coder-pro-v2.5` |
|
|
171
170
|
| `meta/llama-3.1-70b` |
|
|
172
171
|
| `meta/llama-3.1-8b` |
|
|
173
172
|
| `meta/llama-3.2-11b` |
|
|
@@ -189,7 +188,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
189
188
|
| `mistral/codestral` |
|
|
190
189
|
| `mistral/codestral-embed` |
|
|
191
190
|
| `mistral/devstral-2` |
|
|
192
|
-
| `mistral/devstral-small` |
|
|
193
191
|
| `mistral/devstral-small-2` |
|
|
194
192
|
| `mistral/magistral-medium` |
|
|
195
193
|
| `mistral/magistral-small` |
|
|
@@ -203,7 +201,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
203
201
|
| `mistral/mistral-nemo` |
|
|
204
202
|
| `mistral/mistral-small` |
|
|
205
203
|
| `mistral/pixtral-12b` |
|
|
206
|
-
| `mistral/pixtral-large` |
|
|
207
204
|
| `moonshotai/kimi-k2` |
|
|
208
205
|
| `moonshotai/kimi-k2-thinking` |
|
|
209
206
|
| `moonshotai/kimi-k2.5` |
|
|
@@ -218,7 +215,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
218
215
|
| `nvidia/nemotron-nano-12b-v2-vl` |
|
|
219
216
|
| `nvidia/nemotron-nano-9b-v2` |
|
|
220
217
|
| `openai/gpt-3.5-turbo` |
|
|
221
|
-
| `openai/gpt-3.5-turbo-instruct` |
|
|
222
218
|
| `openai/gpt-4-turbo` |
|
|
223
219
|
| `openai/gpt-4.1` |
|
|
224
220
|
| `openai/gpt-4.1-mini` |
|
|
@@ -263,6 +259,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
263
259
|
| `openai/gpt-oss-safeguard-20b` |
|
|
264
260
|
| `openai/gpt-realtime-1.5` |
|
|
265
261
|
| `openai/gpt-realtime-2` |
|
|
262
|
+
| `openai/gpt-realtime-2.1` |
|
|
266
263
|
| `openai/gpt-realtime-mini` |
|
|
267
264
|
| `openai/o1` |
|
|
268
265
|
| `openai/o3` |
|
|
@@ -322,8 +319,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
322
319
|
| `xai/grok-stt` |
|
|
323
320
|
| `xai/grok-tts` |
|
|
324
321
|
| `xai/grok-voice-think-fast-1.0` |
|
|
325
|
-
| `xiaomi/mimo-v2-flash` |
|
|
326
|
-
| `xiaomi/mimo-v2-pro` |
|
|
327
322
|
| `xiaomi/mimo-v2.5` |
|
|
328
323
|
| `xiaomi/mimo-v2.5-pro` |
|
|
329
324
|
| `zai/glm-4.5` |
|
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 4867 models from 155 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,77 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# AI-ROUTER
|
|
4
|
+
|
|
5
|
+
Access 5 AI-ROUTER models through Mastra's model router. Authentication is handled automatically using the `AI_ROUTER_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [AI-ROUTER documentation](https://ai-router.dev/openai-compatible-api-gateway/).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
AI_ROUTER_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: "ai-router/gpt-5.4"
|
|
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 [AI-ROUTER documentation](https://ai-router.dev/openai-compatible-api-gateway/) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `ai-router/gpt-5.4` | 1.1M | | | | | | $3 | $15 |
|
|
40
|
+
| `ai-router/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
41
|
+
| `ai-router/gpt-5.6-luna` | 1.1M | | | | | | $1 | $6 |
|
|
42
|
+
| `ai-router/gpt-5.6-sol` | 1.1M | | | | | | $5 | $30 |
|
|
43
|
+
| `ai-router/gpt-5.6-terra` | 1.1M | | | | | | $3 | $15 |
|
|
44
|
+
|
|
45
|
+
## Advanced configuration
|
|
46
|
+
|
|
47
|
+
### Custom headers
|
|
48
|
+
|
|
49
|
+
```typescript
|
|
50
|
+
const agent = new Agent({
|
|
51
|
+
id: "custom-agent",
|
|
52
|
+
name: "custom-agent",
|
|
53
|
+
model: {
|
|
54
|
+
url: "https://api.ai-router.dev/v1",
|
|
55
|
+
id: "ai-router/gpt-5.4",
|
|
56
|
+
apiKey: process.env.AI_ROUTER_API_KEY,
|
|
57
|
+
headers: {
|
|
58
|
+
"X-Custom-Header": "value"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
});
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
### Dynamic model selection
|
|
65
|
+
|
|
66
|
+
```typescript
|
|
67
|
+
const agent = new Agent({
|
|
68
|
+
id: "dynamic-agent",
|
|
69
|
+
name: "Dynamic Agent",
|
|
70
|
+
model: ({ requestContext }) => {
|
|
71
|
+
const useAdvanced = requestContext.task === "complex";
|
|
72
|
+
return useAdvanced
|
|
73
|
+
? "ai-router/gpt-5.6-terra"
|
|
74
|
+
: "ai-router/gpt-5.4";
|
|
75
|
+
}
|
|
76
|
+
});
|
|
77
|
+
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Ambient
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 7 Ambient models through Mastra's model router. Authentication is handled automatically using the `AMBIENT_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Ambient documentation](https://ambient.xyz).
|
|
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: "ambient/
|
|
20
|
+
model: "ambient/ambient/large"
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
// Generate a response
|
|
@@ -36,9 +36,13 @@ for await (const chunk of stream) {
|
|
|
36
36
|
|
|
37
37
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
38
|
| ----------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `ambient/ambient/large` | 101K | | | | | | $1 | $4 |
|
|
39
40
|
| `ambient/moonshotai/kimi-k2.6` | 262K | | | | | | $0.95 | $4 |
|
|
40
|
-
| `ambient/moonshotai/kimi-k2.7-code` | 262K | | | | | | $0.
|
|
41
|
+
| `ambient/moonshotai/kimi-k2.7-code` | 262K | | | | | | $0.72 | $3 |
|
|
42
|
+
| `ambient/stepfun/step-3.7-flash` | 262K | | | | | | $0.20 | $1 |
|
|
43
|
+
| `ambient/z-ai/glm-5.2` | 101K | | | | | | $1 | $4 |
|
|
41
44
|
| `ambient/zai-org/GLM-5.1-FP8` | 203K | | | | | | $1 | $4 |
|
|
45
|
+
| `ambient/zai-org/GLM-5.2-FP8` | 203K | | | | | | $1 | $4 |
|
|
42
46
|
|
|
43
47
|
## Advanced configuration
|
|
44
48
|
|
|
@@ -50,7 +54,7 @@ const agent = new Agent({
|
|
|
50
54
|
name: "custom-agent",
|
|
51
55
|
model: {
|
|
52
56
|
url: "https://api.ambient.xyz/v1",
|
|
53
|
-
id: "ambient/
|
|
57
|
+
id: "ambient/ambient/large",
|
|
54
58
|
apiKey: process.env.AMBIENT_API_KEY,
|
|
55
59
|
headers: {
|
|
56
60
|
"X-Custom-Header": "value"
|
|
@@ -68,8 +72,8 @@ const agent = new Agent({
|
|
|
68
72
|
model: ({ requestContext }) => {
|
|
69
73
|
const useAdvanced = requestContext.task === "complex";
|
|
70
74
|
return useAdvanced
|
|
71
|
-
? "ambient/zai-org/GLM-5.
|
|
72
|
-
: "ambient/
|
|
75
|
+
? "ambient/zai-org/GLM-5.2-FP8"
|
|
76
|
+
: "ambient/ambient/large";
|
|
73
77
|
}
|
|
74
78
|
});
|
|
75
79
|
```
|
|
@@ -46,7 +46,7 @@ for await (const chunk of stream) {
|
|
|
46
46
|
| `baseten/zai-org/GLM-4.7` | 200K | | | | | | $0.60 | $2 |
|
|
47
47
|
| `baseten/zai-org/GLM-5` | 203K | | | | | | $0.95 | $3 |
|
|
48
48
|
| `baseten/zai-org/GLM-5.1` | 203K | | | | | | $1 | $4 |
|
|
49
|
-
| `baseten/zai-org/GLM-5.2` |
|
|
49
|
+
| `baseten/zai-org/GLM-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
50
50
|
|
|
51
51
|
## Advanced configuration
|
|
52
52
|
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# Blue Claw
|
|
4
|
+
|
|
5
|
+
Access 2 Blue Claw models through Mastra's model router. Authentication is handled automatically using the `BLUECLAW_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [Blue Claw documentation](https://blueclaw.network).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
BLUECLAW_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: "blueclaw/Qwen/Qwen3.6-35B-A3B-FP8"
|
|
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 [Blue Claw documentation](https://blueclaw.network) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ----------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `blueclaw/Qwen/Qwen3.6-35B-A3B-FP8` | 131K | | | | | | — | — |
|
|
40
|
+
| `blueclaw/Qwen3.6-27B` | 197K | | | | | | — | — |
|
|
41
|
+
|
|
42
|
+
## Advanced configuration
|
|
43
|
+
|
|
44
|
+
### Custom headers
|
|
45
|
+
|
|
46
|
+
```typescript
|
|
47
|
+
const agent = new Agent({
|
|
48
|
+
id: "custom-agent",
|
|
49
|
+
name: "custom-agent",
|
|
50
|
+
model: {
|
|
51
|
+
url: "https://openai.blueclaw.network/v1",
|
|
52
|
+
id: "blueclaw/Qwen/Qwen3.6-35B-A3B-FP8",
|
|
53
|
+
apiKey: process.env.BLUECLAW_API_KEY,
|
|
54
|
+
headers: {
|
|
55
|
+
"X-Custom-Header": "value"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
### Dynamic model selection
|
|
62
|
+
|
|
63
|
+
```typescript
|
|
64
|
+
const agent = new Agent({
|
|
65
|
+
id: "dynamic-agent",
|
|
66
|
+
name: "Dynamic Agent",
|
|
67
|
+
model: ({ requestContext }) => {
|
|
68
|
+
const useAdvanced = requestContext.task === "complex";
|
|
69
|
+
return useAdvanced
|
|
70
|
+
? "blueclaw/Qwen3.6-27B"
|
|
71
|
+
: "blueclaw/Qwen/Qwen3.6-35B-A3B-FP8";
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# CrossModel
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 43 CrossModel models through Mastra's model router. Authentication is handled automatically using the `CROSSMODEL_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [CrossModel documentation](https://www.crossmodel.ai/docs).
|
|
8
8
|
|
|
@@ -61,11 +61,17 @@ for await (const chunk of stream) {
|
|
|
61
61
|
| `crossmodel/openai/gpt-5.4-nano` | 400K | | | | | | $0.20 | $1 |
|
|
62
62
|
| `crossmodel/openai/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
63
63
|
| `crossmodel/openai/gpt-5.5-pro` | 1.1M | | | | | | $30 | $180 |
|
|
64
|
+
| `crossmodel/openai/gpt-5.6-luna` | 1.1M | | | | | | $1 | $6 |
|
|
65
|
+
| `crossmodel/openai/gpt-5.6-sol` | 1.1M | | | | | | $5 | $30 |
|
|
66
|
+
| `crossmodel/openai/gpt-5.6-terra` | 1.1M | | | | | | $3 | $15 |
|
|
64
67
|
| `crossmodel/qwen/qwen3.6-flash` | 1.0M | | | | | | $0.19 | $1 |
|
|
65
68
|
| `crossmodel/qwen/qwen3.6-plus` | 1.0M | | | | | | $0.32 | $2 |
|
|
66
69
|
| `crossmodel/qwen/qwen3.7-max` | 1.0M | | | | | | $2 | $6 |
|
|
67
70
|
| `crossmodel/qwen/qwen3.7-plus` | 1.0M | | | | | | $0.32 | $1 |
|
|
68
|
-
| `crossmodel/tencent/hy3-preview` |
|
|
71
|
+
| `crossmodel/tencent/hy3-preview` | 262K | | | | | | $0.19 | $0.63 |
|
|
72
|
+
| `crossmodel/x-ai/grok-4.3` | 1.0M | | | | | | $1 | $3 |
|
|
73
|
+
| `crossmodel/x-ai/grok-4.5` | 500K | | | | | | $2 | $6 |
|
|
74
|
+
| `crossmodel/x-ai/grok-build-0.1` | 256K | | | | | | $1 | $2 |
|
|
69
75
|
| `crossmodel/xiaomi/mimo-v2.5` | 1.0M | | | | | | $0.16 | $0.32 |
|
|
70
76
|
| `crossmodel/xiaomi/mimo-v2.5-pro` | 1.0M | | | | | | $0.47 | $0.94 |
|
|
71
77
|
| `crossmodel/z-ai/glm-4.7` | 200K | | | | | | $0.47 | $2 |
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# DaoXE
|
|
4
|
+
|
|
5
|
+
Access 9 DaoXE models through Mastra's model router. Authentication is handled automatically using the `DAOXE_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [DaoXE documentation](https://daoxe.com/pricing).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
DAOXE_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: "daoxe/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 [DaoXE documentation](https://daoxe.com/pricing) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| --------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `daoxe/claude-haiku-4-5-20251001` | 200K | | | | | | $1 | $5 |
|
|
40
|
+
| `daoxe/claude-opus-4-8` | 1.0M | | | | | | $5 | $25 |
|
|
41
|
+
| `daoxe/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
42
|
+
| `daoxe/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
|
|
43
|
+
| `daoxe/gpt-5.4` | 1.1M | | | | | | $3 | $15 |
|
|
44
|
+
| `daoxe/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
45
|
+
| `daoxe/grok-4.3` | 1.0M | | | | | | $1 | $3 |
|
|
46
|
+
| `daoxe/grok-4.5` | 500K | | | | | | $2 | $6 |
|
|
47
|
+
| `daoxe/kimi-k2.5` | 262K | | | | | | $0.60 | $3 |
|
|
48
|
+
|
|
49
|
+
## Advanced configuration
|
|
50
|
+
|
|
51
|
+
### Custom headers
|
|
52
|
+
|
|
53
|
+
```typescript
|
|
54
|
+
const agent = new Agent({
|
|
55
|
+
id: "custom-agent",
|
|
56
|
+
name: "custom-agent",
|
|
57
|
+
model: {
|
|
58
|
+
url: "https://daoxe.com/v1",
|
|
59
|
+
id: "daoxe/claude-haiku-4-5-20251001",
|
|
60
|
+
apiKey: process.env.DAOXE_API_KEY,
|
|
61
|
+
headers: {
|
|
62
|
+
"X-Custom-Header": "value"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Dynamic model selection
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
const agent = new Agent({
|
|
72
|
+
id: "dynamic-agent",
|
|
73
|
+
name: "Dynamic Agent",
|
|
74
|
+
model: ({ requestContext }) => {
|
|
75
|
+
const useAdvanced = requestContext.task === "complex";
|
|
76
|
+
return useAdvanced
|
|
77
|
+
? "daoxe/kimi-k2.5"
|
|
78
|
+
: "daoxe/claude-haiku-4-5-20251001";
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
```
|