@mastra/mcp-docs-server 1.2.7-alpha.6 → 1.2.7
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 +16 -2
- package/.docs/models/gateways/azure-openai.md +15 -15
- package/.docs/models/gateways/mastra.md +2 -2
- package/.docs/models/gateways/netlify.md +4 -1
- package/.docs/models/gateways/openrouter.md +10 -11
- package/.docs/models/gateways/vercel.md +9 -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 +115 -0
- 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 +6 -7
- package/.docs/models/providers/lynkr.md +73 -0
- 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 +1 -1
- package/.docs/models/providers/nvidia.md +1 -3
- package/.docs/models/providers/openai.md +16 -3
- package/.docs/models/providers/opencode.md +5 -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/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/the-grid-ai.md +3 -3
- 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 +16 -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 +86 -0
- package/package.json +10 -10
|
@@ -57,13 +57,13 @@ import { Mastra } from "@mastra/core";
|
|
|
57
57
|
import { AzureOpenAIGateway } from "@mastra/core/llm";
|
|
58
58
|
|
|
59
59
|
export const mastra = new Mastra({
|
|
60
|
-
gateways:
|
|
61
|
-
new AzureOpenAIGateway({
|
|
60
|
+
gateways: {
|
|
61
|
+
"azure-openai": new AzureOpenAIGateway({
|
|
62
62
|
resourceName: "my-openai-resource",
|
|
63
63
|
apiKey: process.env.AZURE_API_KEY!,
|
|
64
64
|
deployments: ["gpt-5-4-prod", "gpt-5-4-mini-dev"],
|
|
65
65
|
}),
|
|
66
|
-
|
|
66
|
+
},
|
|
67
67
|
});
|
|
68
68
|
```
|
|
69
69
|
|
|
@@ -76,8 +76,8 @@ import { Mastra } from "@mastra/core";
|
|
|
76
76
|
import { AzureOpenAIGateway } from "@mastra/core/llm";
|
|
77
77
|
|
|
78
78
|
export const mastra = new Mastra({
|
|
79
|
-
gateways:
|
|
80
|
-
new AzureOpenAIGateway({
|
|
79
|
+
gateways: {
|
|
80
|
+
"azure-openai": new AzureOpenAIGateway({
|
|
81
81
|
resourceName: "my-openai-resource",
|
|
82
82
|
apiKey: process.env.AZURE_API_KEY!,
|
|
83
83
|
management: {
|
|
@@ -88,7 +88,7 @@ export const mastra = new Mastra({
|
|
|
88
88
|
resourceGroup: "my-resource-group",
|
|
89
89
|
},
|
|
90
90
|
}),
|
|
91
|
-
|
|
91
|
+
},
|
|
92
92
|
});
|
|
93
93
|
```
|
|
94
94
|
|
|
@@ -106,8 +106,8 @@ import { Mastra } from "@mastra/core";
|
|
|
106
106
|
import { AzureOpenAIGateway } from "@mastra/core/llm";
|
|
107
107
|
|
|
108
108
|
export const mastra = new Mastra({
|
|
109
|
-
gateways:
|
|
110
|
-
new AzureOpenAIGateway({
|
|
109
|
+
gateways: {
|
|
110
|
+
"azure-openai": new AzureOpenAIGateway({
|
|
111
111
|
resourceName: "my-openai-resource",
|
|
112
112
|
authentication: {
|
|
113
113
|
type: "entraId",
|
|
@@ -115,7 +115,7 @@ export const mastra = new Mastra({
|
|
|
115
115
|
},
|
|
116
116
|
deployments: ["gpt-5-4-prod", "gpt-5-4-mini-dev"],
|
|
117
117
|
}),
|
|
118
|
-
|
|
118
|
+
},
|
|
119
119
|
});
|
|
120
120
|
```
|
|
121
121
|
|
|
@@ -138,12 +138,12 @@ import { Mastra } from "@mastra/core";
|
|
|
138
138
|
import { AzureOpenAIGateway } from "@mastra/core/llm";
|
|
139
139
|
|
|
140
140
|
export const mastra = new Mastra({
|
|
141
|
-
gateways:
|
|
142
|
-
new AzureOpenAIGateway({
|
|
141
|
+
gateways: {
|
|
142
|
+
"azure-openai": new AzureOpenAIGateway({
|
|
143
143
|
resourceName: "my-openai-resource",
|
|
144
144
|
apiKey: process.env.AZURE_API_KEY!,
|
|
145
145
|
}),
|
|
146
|
-
|
|
146
|
+
},
|
|
147
147
|
});
|
|
148
148
|
```
|
|
149
149
|
|
|
@@ -156,14 +156,14 @@ import { Mastra } from "@mastra/core";
|
|
|
156
156
|
import { AzureOpenAIGateway } from "@mastra/core/llm";
|
|
157
157
|
|
|
158
158
|
export const mastra = new Mastra({
|
|
159
|
-
gateways:
|
|
160
|
-
new AzureOpenAIGateway({
|
|
159
|
+
gateways: {
|
|
160
|
+
"azure-openai": new AzureOpenAIGateway({
|
|
161
161
|
resourceName: "my-openai-resource",
|
|
162
162
|
apiKey: process.env.AZURE_API_KEY!,
|
|
163
163
|
useResponsesAPI: true,
|
|
164
164
|
deployments: ["my-gpt-5-4-deployment"],
|
|
165
165
|
}),
|
|
166
|
-
|
|
166
|
+
},
|
|
167
167
|
});
|
|
168
168
|
```
|
|
169
169
|
|
|
@@ -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
|
# 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 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` |
|
|
@@ -104,7 +104,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
104
104
|
| `google/gemini-2.5-flash` |
|
|
105
105
|
| `google/gemini-2.5-flash-image` |
|
|
106
106
|
| `google/gemini-2.5-flash-lite` |
|
|
107
|
-
| `google/gemini-2.5-flash-lite-preview-09-2025` |
|
|
108
107
|
| `google/gemini-2.5-pro` |
|
|
109
108
|
| `google/gemini-2.5-pro-preview` |
|
|
110
109
|
| `google/gemini-2.5-pro-preview-05-06` |
|
|
@@ -139,12 +138,10 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
139
138
|
| `inclusionai/ring-2.6-1t` |
|
|
140
139
|
| `inflection/inflection-3-pi` |
|
|
141
140
|
| `inflection/inflection-3-productivity` |
|
|
141
|
+
| `kwaipilot/kat-coder-air-v2.5` |
|
|
142
142
|
| `kwaipilot/kat-coder-pro-v2` |
|
|
143
|
-
| `
|
|
144
|
-
| `liquid/lfm-2.5-1.2b-instruct:free` |
|
|
145
|
-
| `liquid/lfm-2.5-1.2b-thinking:free` |
|
|
143
|
+
| `kwaipilot/kat-coder-pro-v2.5` |
|
|
146
144
|
| `mancer/weaver` |
|
|
147
|
-
| `meta-llama/llama-3-8b-instruct` |
|
|
148
145
|
| `meta-llama/llama-3.1-70b-instruct` |
|
|
149
146
|
| `meta-llama/llama-3.1-8b-instruct` |
|
|
150
147
|
| `meta-llama/llama-3.2-11b-vision-instruct` |
|
|
@@ -254,11 +251,16 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
254
251
|
| `openai/gpt-5.4-pro` |
|
|
255
252
|
| `openai/gpt-5.5` |
|
|
256
253
|
| `openai/gpt-5.5-pro` |
|
|
254
|
+
| `openai/gpt-5.6-luna` |
|
|
255
|
+
| `openai/gpt-5.6-luna-pro` |
|
|
256
|
+
| `openai/gpt-5.6-sol` |
|
|
257
|
+
| `openai/gpt-5.6-sol-pro` |
|
|
258
|
+
| `openai/gpt-5.6-terra` |
|
|
259
|
+
| `openai/gpt-5.6-terra-pro` |
|
|
257
260
|
| `openai/gpt-audio` |
|
|
258
261
|
| `openai/gpt-audio-mini` |
|
|
259
262
|
| `openai/gpt-chat-latest` |
|
|
260
263
|
| `openai/gpt-oss-120b` |
|
|
261
|
-
| `openai/gpt-oss-120b:free` |
|
|
262
264
|
| `openai/gpt-oss-20b` |
|
|
263
265
|
| `openai/gpt-oss-20b:free` |
|
|
264
266
|
| `openai/gpt-oss-safeguard-20b` |
|
|
@@ -287,8 +289,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
287
289
|
| `poolside/laguna-m.1:free` |
|
|
288
290
|
| `poolside/laguna-xs-2.1` |
|
|
289
291
|
| `poolside/laguna-xs-2.1:free` |
|
|
290
|
-
| `poolside/laguna-xs.2` |
|
|
291
|
-
| `poolside/laguna-xs.2:free` |
|
|
292
292
|
| `qwen/qwen-2.5-72b-instruct` |
|
|
293
293
|
| `qwen/qwen-2.5-7b-instruct` |
|
|
294
294
|
| `qwen/qwen-2.5-coder-32b-instruct` |
|
|
@@ -344,7 +344,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
344
344
|
| `relace/relace-search` |
|
|
345
345
|
| `sakana/fugu-ultra` |
|
|
346
346
|
| `sao10k/l3-lunaris-8b` |
|
|
347
|
-
| `sao10k/l3.1-70b-hanami-x1` |
|
|
348
347
|
| `sao10k/l3.1-euryale-70b` |
|
|
349
348
|
| `sao10k/l3.3-euryale-70b` |
|
|
350
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` |
|
|
@@ -177,6 +176,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
177
176
|
| `meta/llama-3.3-70b` |
|
|
178
177
|
| `meta/llama-4-maverick` |
|
|
179
178
|
| `meta/llama-4-scout` |
|
|
179
|
+
| `meta/muse-spark-1.1` |
|
|
180
180
|
| `minimax/minimax-m2` |
|
|
181
181
|
| `minimax/minimax-m2.1` |
|
|
182
182
|
| `minimax/minimax-m2.1-lightning` |
|
|
@@ -188,7 +188,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
188
188
|
| `mistral/codestral` |
|
|
189
189
|
| `mistral/codestral-embed` |
|
|
190
190
|
| `mistral/devstral-2` |
|
|
191
|
-
| `mistral/devstral-small` |
|
|
192
191
|
| `mistral/devstral-small-2` |
|
|
193
192
|
| `mistral/magistral-medium` |
|
|
194
193
|
| `mistral/magistral-small` |
|
|
@@ -202,7 +201,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
202
201
|
| `mistral/mistral-nemo` |
|
|
203
202
|
| `mistral/mistral-small` |
|
|
204
203
|
| `mistral/pixtral-12b` |
|
|
205
|
-
| `mistral/pixtral-large` |
|
|
206
204
|
| `moonshotai/kimi-k2` |
|
|
207
205
|
| `moonshotai/kimi-k2-thinking` |
|
|
208
206
|
| `moonshotai/kimi-k2.5` |
|
|
@@ -217,7 +215,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
217
215
|
| `nvidia/nemotron-nano-12b-v2-vl` |
|
|
218
216
|
| `nvidia/nemotron-nano-9b-v2` |
|
|
219
217
|
| `openai/gpt-3.5-turbo` |
|
|
220
|
-
| `openai/gpt-3.5-turbo-instruct` |
|
|
221
218
|
| `openai/gpt-4-turbo` |
|
|
222
219
|
| `openai/gpt-4.1` |
|
|
223
220
|
| `openai/gpt-4.1-mini` |
|
|
@@ -250,6 +247,9 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
250
247
|
| `openai/gpt-5.4-pro` |
|
|
251
248
|
| `openai/gpt-5.5` |
|
|
252
249
|
| `openai/gpt-5.5-pro` |
|
|
250
|
+
| `openai/gpt-5.6-luna` |
|
|
251
|
+
| `openai/gpt-5.6-sol` |
|
|
252
|
+
| `openai/gpt-5.6-terra` |
|
|
253
253
|
| `openai/gpt-image-1` |
|
|
254
254
|
| `openai/gpt-image-1-mini` |
|
|
255
255
|
| `openai/gpt-image-1.5` |
|
|
@@ -259,6 +259,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
259
259
|
| `openai/gpt-oss-safeguard-20b` |
|
|
260
260
|
| `openai/gpt-realtime-1.5` |
|
|
261
261
|
| `openai/gpt-realtime-2` |
|
|
262
|
+
| `openai/gpt-realtime-2.1` |
|
|
262
263
|
| `openai/gpt-realtime-mini` |
|
|
263
264
|
| `openai/o1` |
|
|
264
265
|
| `openai/o3` |
|
|
@@ -318,8 +319,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
318
319
|
| `xai/grok-stt` |
|
|
319
320
|
| `xai/grok-tts` |
|
|
320
321
|
| `xai/grok-voice-think-fast-1.0` |
|
|
321
|
-
| `xiaomi/mimo-v2-flash` |
|
|
322
|
-
| `xiaomi/mimo-v2-pro` |
|
|
323
322
|
| `xiaomi/mimo-v2.5` |
|
|
324
323
|
| `xiaomi/mimo-v2.5-pro` |
|
|
325
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
|
|