@mastra/mcp-docs-server 1.3.6-alpha.3 → 1.3.6-alpha.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/observability/tracing/overview.md +1 -1
- package/.docs/docs/workflows/time-travel.md +5 -3
- package/.docs/integrations/deploy/temporal.md +23 -0
- package/.docs/integrations/sandboxes/docker.md +61 -0
- package/.docs/integrations/sandboxes/e2b.md +37 -0
- package/.docs/models/embeddings.md +1 -1
- package/.docs/models/gateways/netlify.md +3 -5
- package/.docs/models/gateways/openrouter.md +2 -2
- package/.docs/models/gateways/vercel.md +1 -1
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/cortecs.md +2 -1
- package/.docs/models/providers/crossmodel.md +2 -1
- package/.docs/models/providers/deepinfra.md +0 -2
- package/.docs/models/providers/edenai.md +4 -4
- package/.docs/models/providers/kilo.md +14 -13
- package/.docs/models/providers/llmgateway-providers.md +1 -2
- package/.docs/models/providers/mistral.md +1 -1
- package/.docs/models/providers/nano-gpt.md +29 -27
- package/.docs/models/providers/opencode-go.md +3 -2
- package/.docs/models/providers/opencode.md +2 -2
- package/.docs/models/providers/ovhcloud.md +1 -2
- package/.docs/models/providers/requesty.md +5 -2
- package/.docs/models/providers/vivgrid.md +2 -1
- package/.docs/reference/ai-sdk/to-ai-sdk-v4-messages.md +3 -3
- package/.docs/reference/client-js/memory.md +1 -1
- package/.docs/reference/datasets/updateItem.md +10 -0
- package/.docs/reference/deployer/vercel.md +1 -1
- package/.docs/reference/deployer.md +7 -14
- package/.docs/reference/editor/blob-store-provider.md +2 -1
- package/.docs/reference/editor/browser-provider.md +3 -2
- package/.docs/reference/editor/filesystem-provider.md +2 -1
- package/.docs/reference/editor/sandbox-provider.md +2 -1
- package/.docs/reference/editor/storage-workspace-ref.md +27 -2
- package/.docs/reference/evals/answer-relevancy.md +4 -2
- package/.docs/reference/evals/answer-similarity.md +1 -1
- package/.docs/reference/evals/bias.md +3 -1
- package/.docs/reference/evals/content-similarity.md +1 -1
- package/.docs/reference/evals/context-recall.md +1 -1
- package/.docs/reference/evals/context-relevance.md +6 -6
- package/.docs/reference/evals/hallucination.md +7 -8
- package/.docs/reference/evals/keyword-coverage.md +4 -4
- package/.docs/reference/evals/noise-sensitivity.md +6 -6
- package/.docs/reference/evals/prompt-alignment.md +1 -1
- package/.docs/reference/evals/run-evals.md +1 -1
- package/.docs/reference/evals/scorer-utils.md +8 -8
- package/.docs/reference/evals/tone-consistency.md +23 -24
- package/.docs/reference/evals/tool-call-accuracy.md +19 -15
- package/.docs/reference/evals/toxicity.md +3 -1
- package/.docs/reference/logging/pino-logger.md +3 -3
- package/.docs/reference/memory/summarizeConversation.md +1 -1
- package/.docs/reference/migrations/ai-sdk-v4-to-v5.md +2 -2
- package/.docs/reference/migrations/upgrade-to-v1/mcp.md +2 -0
- package/.docs/reference/migrations/upgrade-to-v1/tools.md +1 -1
- package/.docs/reference/observability/tracing/configuration.md +10 -1
- package/.docs/reference/observability/tracing/instances.md +1 -1
- package/.docs/reference/observability/tracing/interfaces.md +1 -1
- package/.docs/reference/processors/batch-parts-processor.md +1 -1
- package/.docs/reference/processors/unicode-normalizer.md +1 -1
- package/.docs/reference/project-structure.md +11 -13
- package/.docs/reference/rag/chunk.md +2 -2
- package/.docs/reference/rag/chunking-and-embedding.md +1 -1
- package/.docs/reference/rag/database-config.md +14 -2
- package/.docs/reference/rag/document.md +7 -2
- package/.docs/reference/rag/extract-params.md +5 -5
- package/.docs/reference/rag/graph-rag-guide.md +1 -1
- package/.docs/reference/rag/rerank.md +5 -4
- package/.docs/reference/rag/rerankWithScorer.md +2 -2
- package/.docs/reference/rag/retrieval.md +7 -5
- package/.docs/reference/server/mastra-server.md +2 -2
- package/.docs/reference/workflows/run-methods/restart.md +6 -0
- package/.docs/reference/workspace/platform-sandbox.md +33 -1
- package/package.json +4 -4
|
@@ -450,7 +450,7 @@ Span processors transform, filter, or enrich trace data before it's exported. Th
|
|
|
450
450
|
You can create custom span processors by implementing the `SpanOutputProcessor` interface. Here's a basic example that converts all input text in spans to lowercase:
|
|
451
451
|
|
|
452
452
|
```ts
|
|
453
|
-
import type { SpanOutputProcessor, AnySpan } from '@mastra/observability'
|
|
453
|
+
import type { SpanOutputProcessor, AnySpan } from '@mastra/core/observability'
|
|
454
454
|
|
|
455
455
|
export class LowercaseInputProcessor implements SpanOutputProcessor {
|
|
456
456
|
name = 'lowercase-processor'
|
|
@@ -104,7 +104,7 @@ const result = await run.timeTravel({
|
|
|
104
104
|
|
|
105
105
|
The context object contains step results keyed by step ID. Each step result includes:
|
|
106
106
|
|
|
107
|
-
- `status`: The step's execution status
|
|
107
|
+
- `status`: The step's execution status. Commonly `success`, `failed`, or `suspended`, but any workflow run status is accepted: `running`, `success`, `failed`, `tripwire`, `suspended`, `waiting`, `pending`, `canceled`, `bailed`, `paused`, or `skipped`
|
|
108
108
|
- `payload`: The input data passed to the step
|
|
109
109
|
- `output`: The step's output data (for successful steps)
|
|
110
110
|
- `startedAt`: Timestamp when the step started
|
|
@@ -213,16 +213,18 @@ try {
|
|
|
213
213
|
|
|
214
214
|
### Invalid step ID
|
|
215
215
|
|
|
216
|
-
Time travel throws if the target step doesn't exist in the workflow:
|
|
216
|
+
Time travel throws if the target step doesn't exist in the current workflow definition:
|
|
217
217
|
|
|
218
218
|
```typescript
|
|
219
219
|
try {
|
|
220
220
|
await run.timeTravel({ step: 'nonExistentStep' })
|
|
221
221
|
} catch (error) {
|
|
222
|
-
// "
|
|
222
|
+
// "Cannot time travel to step 'nonExistentStep': the step does not exist in the current execution graph. ..."
|
|
223
223
|
}
|
|
224
224
|
```
|
|
225
225
|
|
|
226
|
+
The error also lists up to 10 of the step IDs recorded in the run's snapshot (with a count of any remaining IDs), and confirms that the stored snapshot wasn't modified. If the run has no recorded step results, the error reads `Time travel target step not found in execution graph: 'nonExistentStep'. Verify the step id/path.` instead.
|
|
227
|
+
|
|
226
228
|
### Invalid input data
|
|
227
229
|
|
|
228
230
|
When `validateInputs` is enabled, time travel validates the input data against the step's schema:
|
|
@@ -71,6 +71,29 @@ export const { createWorkflow, createStep } = init({
|
|
|
71
71
|
|
|
72
72
|
`loadClientConnectConfig()` reads standard Temporal environment variables such as `TEMPORAL_ADDRESS`, `TEMPORAL_NAMESPACE`, and mTLS settings. See the [Temporal envconfig docs](https://docs.temporal.io/develop/typescript/temporal-clients) for the full list.
|
|
73
73
|
|
|
74
|
+
### Configure activity retries
|
|
75
|
+
|
|
76
|
+
Pass `retry` to `init()` to set a Temporal activity retry policy for workflows created by these helpers. For example, add the following options to the initialization above to limit a failing activity to five total attempts:
|
|
77
|
+
|
|
78
|
+
```ts
|
|
79
|
+
export const { createWorkflow, createStep } = init({
|
|
80
|
+
client,
|
|
81
|
+
taskQueue: 'mastra',
|
|
82
|
+
startToCloseTimeout: '5 minutes',
|
|
83
|
+
retry: {
|
|
84
|
+
initialInterval: '5 seconds',
|
|
85
|
+
backoffCoefficient: 2,
|
|
86
|
+
maximumInterval: '5 minutes',
|
|
87
|
+
maximumAttempts: 5,
|
|
88
|
+
nonRetryableErrorTypes: ['ValidationError'],
|
|
89
|
+
},
|
|
90
|
+
})
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
The policy applies to all generated activities, including steps, mappings, and conditions. Set `maximumAttempts: 1` to disable retries. Omitting `retry` preserves Temporal's default policy, which allows unlimited attempts. Mastra's workflow `retryConfig` doesn't configure Temporal activity retries.
|
|
94
|
+
|
|
95
|
+
Keep retry options in the statically analyzable `init()` configuration so the worker build can include them. Inline object literal spreads are supported. Spreads of variables or function results are skipped during activity option extraction, so `retry` and `startToCloseTimeout` inside those spreads aren't forwarded to the generated workflow. Provide these options directly in `init()` or in an inline object literal spread instead. Rebuild and restart the worker after changing the policy.
|
|
96
|
+
|
|
74
97
|
### Creating steps
|
|
75
98
|
|
|
76
99
|
Define the individual steps that will compose your workflow. Each step becomes a Temporal activity.
|
|
@@ -57,6 +57,67 @@ const agent = new Agent({
|
|
|
57
57
|
})
|
|
58
58
|
```
|
|
59
59
|
|
|
60
|
+
### Repository templates
|
|
61
|
+
|
|
62
|
+
`createDockerRepoTemplate` builds an image that already holds a checkout of a repository and the output of its setup command, so a session starts from installed dependencies instead of a cold clone:
|
|
63
|
+
|
|
64
|
+
```typescript
|
|
65
|
+
import { DockerSandbox, createDockerRepoTemplate } from '@mastra/docker'
|
|
66
|
+
|
|
67
|
+
const sandbox = new DockerSandbox({
|
|
68
|
+
id: sessionId,
|
|
69
|
+
template: createDockerRepoTemplate({
|
|
70
|
+
getRepositoryAccess: async () => ({
|
|
71
|
+
cloneUrl: 'https://github.com/octocat/hello-world.git',
|
|
72
|
+
}),
|
|
73
|
+
setupCommand: 'npm ci',
|
|
74
|
+
}),
|
|
75
|
+
})
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
`getRepositoryAccess` supplies the clone URL and, for private repositories, a short-lived credential. The credential is passed to the clone step as a build secret and never enters the image, its layers or the image identity. When `getRepositoryAccess` is `undefined`, `createDockerRepoTemplate` returns `undefined`, which selects the provider's default image without a conditional at the call site.
|
|
79
|
+
|
|
80
|
+
The repository is cloned to `<workingDirectory>/<repo>` (default `/workspace`), which becomes the working directory of the sandbox. Pass `ref` to prepare a branch, tag or commit other than the default branch. Right before the build the resolver runs `git ls-remote` to pin the ref to a commit, which is part of the image identity: a moved branch yields a fresh image on the next new sandbox and an unmoved one reuses the cached image. If the head can't be resolved the resolver rejects rather than caching an unpinned clone.
|
|
81
|
+
|
|
82
|
+
`setupCommand` also accepts an array. Each entry runs as its own cached build step. A command cannot contain a bare newline, which would start a new Dockerfile instruction. End the line with `\` or pass separate commands instead.
|
|
83
|
+
|
|
84
|
+
#### Several repositories in one image
|
|
85
|
+
|
|
86
|
+
Pass `repos` instead of `getRepositoryAccess` to clone several repositories into one image, each with its own access resolver, `ref` and setup command (a string or an array, each entry its own build step):
|
|
87
|
+
|
|
88
|
+
```typescript
|
|
89
|
+
const sandbox = new DockerSandbox({
|
|
90
|
+
id: sessionId,
|
|
91
|
+
template: createDockerRepoTemplate({
|
|
92
|
+
repos: [
|
|
93
|
+
{
|
|
94
|
+
getRepositoryAccess: async () => ({
|
|
95
|
+
cloneUrl: 'https://github.com/mastra-ai/template-docs-expert.git',
|
|
96
|
+
}),
|
|
97
|
+
setupCommand: 'npm install',
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
getRepositoryAccess: async () => ({
|
|
101
|
+
cloneUrl: 'https://github.com/mastra-ai/good-issue.git',
|
|
102
|
+
}),
|
|
103
|
+
ref: 'main',
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
workspaceSetupCommand: 'npm install --global @mastra/mcp-docs-server',
|
|
107
|
+
continueOnSetupFailure: true,
|
|
108
|
+
workingDirectory: '/workspace',
|
|
109
|
+
}),
|
|
110
|
+
})
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Every repository is cloned to `<workingDirectory>/<repo>` and the working directory becomes the sandbox cwd. Public repositories are built before private ones, keeping the caller's order within each group. Each private credential is passed as a build secret to that repository's clone step only, so setup commands never see it.
|
|
114
|
+
|
|
115
|
+
`workspaceSetupCommand` runs at the working directory after every repository is set up. `continueOnSetupFailure` (default `false`) lets a failing setup command record its repository in `.mastra-sandbox/setup-failed` and continue instead of failing the build.
|
|
116
|
+
|
|
117
|
+
Markers tell a session what the image already ran: `.mastra-sandbox/repos/<repo>` per repository and `.mastra-sandbox/workspace-setup` after the workspace commands, all under the working directory. With `continueOnSetupFailure`, check `.mastra-sandbox/setup-failed` first.
|
|
118
|
+
|
|
119
|
+
If any entry's access or head can't be resolved, the whole resolution rejects and the sandbox falls back to its default template.
|
|
120
|
+
|
|
60
121
|
## Constructor parameters
|
|
61
122
|
|
|
62
123
|
**id** (`string`): Unique identifier for this sandbox instance. Used for label-based reconnection. (Default: `Auto-generated`)
|
|
@@ -285,6 +285,43 @@ Resolution is lazy and only ever blocks on a template's very first build. Every
|
|
|
285
285
|
|
|
286
286
|
`setupCommand` also accepts an array. Each entry runs as its own cached build step. `workingDirectory` sets the cwd for the build and the sandbox, and the repository is cloned to `<workingDirectory>/<repo>`.
|
|
287
287
|
|
|
288
|
+
#### Several repositories in one template
|
|
289
|
+
|
|
290
|
+
Pass `repos` instead of `getRepositoryAccess` to clone several repositories into one template, each with its own credential resolver and setup command (a string or an array, each entry its own build step):
|
|
291
|
+
|
|
292
|
+
```typescript
|
|
293
|
+
const sandbox = new E2BSandbox({
|
|
294
|
+
id: sessionId,
|
|
295
|
+
template: createRepoTemplate({
|
|
296
|
+
repos: [
|
|
297
|
+
{
|
|
298
|
+
getRepositoryAccess: async () => ({
|
|
299
|
+
cloneUrl: 'https://github.com/mastra-ai/mastra.git',
|
|
300
|
+
}),
|
|
301
|
+
setupCommand: 'pnpm install --frozen-lockfile',
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
getRepositoryAccess: async () => ({
|
|
305
|
+
cloneUrl: 'https://github.com/mastra-ai/template-docs-expert.git',
|
|
306
|
+
}),
|
|
307
|
+
setupCommand: 'npm install',
|
|
308
|
+
},
|
|
309
|
+
],
|
|
310
|
+
workspaceSetupCommand: 'npm install --global @mastra/mcp-docs-server',
|
|
311
|
+
continueOnSetupFailure: true,
|
|
312
|
+
workingDirectory: '/home/user/repos',
|
|
313
|
+
}),
|
|
314
|
+
})
|
|
315
|
+
```
|
|
316
|
+
|
|
317
|
+
Every repository is cloned to `<workingDirectory>/<repo>`. Public repositories are built before private ones, keeping the caller's order within each group. Private credentials are build envs visible to every build step, so any repository's setup command can read every other repository's token: only list repositories whose setup commands you trust together.
|
|
318
|
+
|
|
319
|
+
`workspaceSetupCommand` runs at the working directory after every repository is set up. `continueOnSetupFailure` (default `false`) lets a failing setup command record its repository in `.mastra-sandbox/setup-failed` and continue instead of failing the build.
|
|
320
|
+
|
|
321
|
+
Markers tell a session what the image already ran: `.mastra-sandbox/repos/<repo>` per repository and `.mastra-sandbox/workspace-setup` after the workspace commands, all under the working directory. With `continueOnSetupFailure`, check `.mastra-sandbox/setup-failed` first.
|
|
322
|
+
|
|
323
|
+
Adding or removing a repository starts a new template, as does editing a setup command, while a rotated credential reuses the existing one. If any entry's access can't be resolved the sandbox falls back to its default template. A repository whose head can't be resolved is cloned unpinned while the others keep their pins.
|
|
324
|
+
|
|
288
325
|
Templates build at E2B's default machine size (2 vCPU, 1024 MB) unless the spec asks for more. Pass `cpuCount` and `memoryMB` to size the machine the template's sandboxes run on:
|
|
289
326
|
|
|
290
327
|
```typescript
|
|
@@ -242,7 +242,7 @@ await vectorStore.upsert(
|
|
|
242
242
|
The model router provides full TypeScript autocomplete for embedding model IDs:
|
|
243
243
|
|
|
244
244
|
```typescript
|
|
245
|
-
import type { EmbeddingModelId } from '@mastra/core'
|
|
245
|
+
import type { EmbeddingModelId } from '@mastra/core/llm'
|
|
246
246
|
|
|
247
247
|
// Type-safe embedding model selection
|
|
248
248
|
const modelId: EmbeddingModelId = 'openai/text-embedding-3-small'
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Netlify
|
|
6
6
|
|
|
7
|
-
Netlify AI Gateway provides unified access to multiple providers with built-in caching and observability. Access
|
|
7
|
+
Netlify AI Gateway provides unified access to multiple providers with built-in caching and observability. Access 270 models through Mastra's model router.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Netlify documentation](https://docs.netlify.com/build/ai-gateway/overview/).
|
|
10
10
|
|
|
@@ -133,7 +133,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
133
133
|
| `openrouter/~z-ai/glm-latest` |
|
|
134
134
|
| `openrouter/anthracite-org/magnum-v4-72b` |
|
|
135
135
|
| `openrouter/apodex/apodex-1.1-mini:free` |
|
|
136
|
-
| `openrouter/baidu/ernie-4.5-vl-424b-a47b` |
|
|
137
136
|
| `openrouter/bytedance-seed/seed-1.6` |
|
|
138
137
|
| `openrouter/bytedance-seed/seed-1.6-flash` |
|
|
139
138
|
| `openrouter/bytedance-seed/seed-2-1-turbo` |
|
|
@@ -167,7 +166,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
167
166
|
| `openrouter/inception/mercury-2.5` |
|
|
168
167
|
| `openrouter/inclusionai/ling-3.0-flash` |
|
|
169
168
|
| `openrouter/inclusionai/ling-3.0-flash-fin` |
|
|
170
|
-
| `openrouter/inclusionai/ling-3.0-flash-sante
|
|
169
|
+
| `openrouter/inclusionai/ling-3.0-flash-sante` |
|
|
171
170
|
| `openrouter/inclusionai/ling-3.0-flash-vl` |
|
|
172
171
|
| `openrouter/inclusionai/ling-3.1-flash` |
|
|
173
172
|
| `openrouter/inference-net/schematron-v2-small` |
|
|
@@ -195,6 +194,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
195
194
|
| `openrouter/mistralai/ministral-8b-2512` |
|
|
196
195
|
| `openrouter/mistralai/mistral-large-2407` |
|
|
197
196
|
| `openrouter/mistralai/mistral-large-2512` |
|
|
197
|
+
| `openrouter/mistralai/mistral-large-4-0` |
|
|
198
198
|
| `openrouter/mistralai/mistral-medium-3` |
|
|
199
199
|
| `openrouter/mistralai/mistral-medium-3-5` |
|
|
200
200
|
| `openrouter/mistralai/mistral-medium-3.1` |
|
|
@@ -247,11 +247,9 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
247
247
|
| `openrouter/qwen/qwen3-30b-a3b-instruct-2507` |
|
|
248
248
|
| `openrouter/qwen/qwen3-32b` |
|
|
249
249
|
| `openrouter/qwen/qwen3-coder` |
|
|
250
|
-
| `openrouter/qwen/qwen3-coder-30b-a3b-instruct` |
|
|
251
250
|
| `openrouter/qwen/qwen3-coder-next` |
|
|
252
251
|
| `openrouter/qwen/qwen3-next-80b-a3b-instruct` |
|
|
253
252
|
| `openrouter/qwen/qwen3-vl-235b-a22b-instruct` |
|
|
254
|
-
| `openrouter/qwen/qwen3-vl-235b-a22b-thinking` |
|
|
255
253
|
| `openrouter/qwen/qwen3-vl-30b-a3b-instruct` |
|
|
256
254
|
| `openrouter/qwen/qwen3-vl-8b-instruct` |
|
|
257
255
|
| `openrouter/qwen/qwen3.5-122b-a10b` |
|
|
@@ -86,7 +86,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
86
86
|
| `anthropic/claude-sonnet-5.5` |
|
|
87
87
|
| `apodex/apodex-1.1-mini:free` |
|
|
88
88
|
| `arcee-ai/trinity-large-thinking` |
|
|
89
|
-
| `baidu/ernie-4.5-vl-424b-a47b` |
|
|
90
89
|
| `bytedance-seed/seed-1.6` |
|
|
91
90
|
| `bytedance-seed/seed-1.6-flash` |
|
|
92
91
|
| `bytedance-seed/seed-2-1-turbo` |
|
|
@@ -155,7 +154,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
155
154
|
| `inception/mercury-2.5` |
|
|
156
155
|
| `inclusionai/ling-3.0-flash` |
|
|
157
156
|
| `inclusionai/ling-3.0-flash-fin` |
|
|
158
|
-
| `inclusionai/ling-3.0-flash-sante
|
|
157
|
+
| `inclusionai/ling-3.0-flash-sante` |
|
|
159
158
|
| `inclusionai/ling-3.0-flash-vl` |
|
|
160
159
|
| `inclusionai/ling-3.1-flash` |
|
|
161
160
|
| `inference-net/schematron-v2-small` |
|
|
@@ -379,6 +378,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
379
378
|
| `sao10k/l3.3-euryale-70b` |
|
|
380
379
|
| `stepfun/step-3.5-flash` |
|
|
381
380
|
| `stepfun/step-3.7-flash` |
|
|
381
|
+
| `stepfun/step-5-preview` |
|
|
382
382
|
| `tencent/hunyuan-a13b-instruct` |
|
|
383
383
|
| `tencent/hy-mt2-1.8b` |
|
|
384
384
|
| `tencent/hy-mt2-30b-a3b` |
|
|
@@ -135,6 +135,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
135
135
|
| `bytedance/seedream-4.5` |
|
|
136
136
|
| `bytedance/seedream-5.0-lite` |
|
|
137
137
|
| `bytedance/seedream-5.0-pro` |
|
|
138
|
+
| `callstack/apex` |
|
|
138
139
|
| `cohere/command-a` |
|
|
139
140
|
| `cohere/embed-v4.0` |
|
|
140
141
|
| `cohere/embed-v5.0-fast` |
|
|
@@ -152,7 +153,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
152
153
|
| `deepseek/deepseek-v4-pro` |
|
|
153
154
|
| `deepseek/deepseek-v4-pro-0813` |
|
|
154
155
|
| `deepseek/deepseek-v4.1-flash` |
|
|
155
|
-
| `deepseek/deepseek-v4.1-flash-fast` |
|
|
156
156
|
| `fireworks/ember-1` |
|
|
157
157
|
| `fish-audio/s1` |
|
|
158
158
|
| `fish-audio/s2-pro` |
|
package/.docs/models/index.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Model Providers
|
|
6
6
|
|
|
7
|
-
Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to
|
|
7
|
+
Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to 7822 models from 213 providers through a single API.
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Cortecs
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 106 Cortecs models through Mastra's model router. Authentication is handled automatically using the `CORTECS_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Cortecs documentation](https://cortecs.ai).
|
|
10
10
|
|
|
@@ -42,6 +42,7 @@ for await (const chunk of stream) {
|
|
|
42
42
|
| `cortecs/claude-4-5-sonnet` | 200K | | | | | | $3 | $15 |
|
|
43
43
|
| `cortecs/claude-4-6-sonnet` | 1.0M | | | | | | $3 | $16 |
|
|
44
44
|
| `cortecs/claude-haiku-4-5` | 200K | | | | | | $1.00 | $5 |
|
|
45
|
+
| `cortecs/claude-haiku-5.5` | 1.0M | | | | | | $0.11 | $0.56 |
|
|
45
46
|
| `cortecs/claude-opus-5` | 1.0M | | | | | | $6 | $27 |
|
|
46
47
|
| `cortecs/claude-opus-5.5` | 1.0M | | | | | | $4 | $22 |
|
|
47
48
|
| `cortecs/claude-opus4-5` | 200K | | | | | | $5 | $27 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# CrossModel
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 69 CrossModel models through Mastra's model router. Authentication is handled automatically using the `CROSSMODEL_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [CrossModel documentation](https://www.crossmodel.ai/docs).
|
|
10
10
|
|
|
@@ -41,6 +41,7 @@ for await (const chunk of stream) {
|
|
|
41
41
|
| `crossmodel/anthropic/claude-fable-5` | 1.0M | | | | | | $10 | $50 |
|
|
42
42
|
| `crossmodel/anthropic/claude-fable-5-1` | 1.0M | | | | | | $10 | $50 |
|
|
43
43
|
| `crossmodel/anthropic/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
44
|
+
| `crossmodel/anthropic/claude-haiku-5-5` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
44
45
|
| `crossmodel/anthropic/claude-opus-4-7` | 1.0M | | | | | | $5 | $25 |
|
|
45
46
|
| `crossmodel/anthropic/claude-opus-4-8` | 1.0M | | | | | | $5 | $25 |
|
|
46
47
|
| `crossmodel/anthropic/claude-opus-5` | 1.0M | | | | | | $5 | $25 |
|
|
@@ -59,7 +59,6 @@ for await (const chunk of stream) {
|
|
|
59
59
|
| `deepinfra/MiniMaxAI/MiniMax-M3` | 524K | | | | | | $0.28 | $1 |
|
|
60
60
|
| `deepinfra/moonshotai/Kimi-K2.6` | 262K | | | | | | $0.75 | $4 |
|
|
61
61
|
| `deepinfra/moonshotai/Kimi-K3` | 1.0M | | | | | | $3 | $14 |
|
|
62
|
-
| `deepinfra/nvidia/Nemotron-3-Nano-30B-A3B` | 262K | | | | | | $0.05 | $0.20 |
|
|
63
62
|
| `deepinfra/openai/gpt-oss-120b` | 131K | | | | | | $0.04 | $0.17 |
|
|
64
63
|
| `deepinfra/openai/gpt-oss-20b` | 131K | | | | | | $0.03 | $0.14 |
|
|
65
64
|
| `deepinfra/Qwen/Qwen3-235B-A22B-Instruct-2507` | 262K | | | | | | $0.09 | $0.55 |
|
|
@@ -80,7 +79,6 @@ for await (const chunk of stream) {
|
|
|
80
79
|
| `deepinfra/Qwen/Qwen3.8-27B` | 262K | | | | | | $0.20 | $3 |
|
|
81
80
|
| `deepinfra/Qwen/Qwen3.8-Flash` | 1.0M | | | | | | $0.11 | $0.38 |
|
|
82
81
|
| `deepinfra/Qwen/Qwen3.8-Max` | 256K | | | | | | $2 | $5 |
|
|
83
|
-
| `deepinfra/tencent/Hy3` | 262K | | | | | | $0.13 | $0.53 |
|
|
84
82
|
| `deepinfra/tencent/Hy4-preview` | 1.0M | | | | | | $0.83 | $3 |
|
|
85
83
|
| `deepinfra/thinkingmachines/Inkling` | 524K | | | | | | $0.95 | $4 |
|
|
86
84
|
| `deepinfra/thinkingmachines/Inkling-Small` | 524K | | | | | | $0.45 | $1 |
|
|
@@ -52,10 +52,10 @@ for await (const chunk of stream) {
|
|
|
52
52
|
| `edenai/amazon/google.gemma-3-4b-it@us` | 128K | | | | | | $0.04 | $0.08 |
|
|
53
53
|
| `edenai/amazon/mistral.pixtral-large-2502-v1:0` | 128K | | | | | | $2 | $6 |
|
|
54
54
|
| `edenai/amazon/mistral.pixtral-large-2502-v1:0@us` | 128K | | | | | | $2 | $6 |
|
|
55
|
-
| `edenai/amazon/mistral.voxtral-mini-3b-2507` |
|
|
56
|
-
| `edenai/amazon/mistral.voxtral-mini-3b-2507@us` |
|
|
57
|
-
| `edenai/amazon/mistral.voxtral-small-24b-2507` |
|
|
58
|
-
| `edenai/amazon/mistral.voxtral-small-24b-2507@us` |
|
|
55
|
+
| `edenai/amazon/mistral.voxtral-mini-3b-2507` | 33K | | | | | | $0.04 | $0.04 |
|
|
56
|
+
| `edenai/amazon/mistral.voxtral-mini-3b-2507@us` | 33K | | | | | | $0.04 | $0.04 |
|
|
57
|
+
| `edenai/amazon/mistral.voxtral-small-24b-2507` | 33K | | | | | | $0.10 | $0.30 |
|
|
58
|
+
| `edenai/amazon/mistral.voxtral-small-24b-2507@us` | 33K | | | | | | $0.10 | $0.30 |
|
|
59
59
|
| `edenai/amazon/moonshot.kimi-k2-thinking` | 256K | | | | | | $0.60 | $3 |
|
|
60
60
|
| `edenai/amazon/moonshotai.kimi-k2.5` | 262K | | | | | | $0.60 | $3 |
|
|
61
61
|
| `edenai/amazon/openai.gpt-oss-safeguard-20b` | 128K | | | | | | $0.07 | $0.20 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Kilo Gateway
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 397 Kilo Gateway models through Mastra's model router. Authentication is handled automatically using the `KILO_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Kilo Gateway documentation](https://kilo.ai).
|
|
10
10
|
|
|
@@ -42,20 +42,20 @@ for await (const chunk of stream) {
|
|
|
42
42
|
| `kilo/~anthropic/claude-haiku-latest` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
43
43
|
| `kilo/~anthropic/claude-opus-latest` | 1.0M | | | | | | $4 | $20 |
|
|
44
44
|
| `kilo/~anthropic/claude-sonnet-latest` | 1.0M | | | | | | $2 | $10 |
|
|
45
|
-
| `kilo/~deepseek/deepseek-flash-latest` | 1.0M | | | | | | $0.
|
|
46
|
-
| `kilo/~deepseek/deepseek-pro-latest` | 1.0M | | | | | | $0.
|
|
47
|
-
| `kilo/~deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.
|
|
45
|
+
| `kilo/~deepseek/deepseek-flash-latest` | 1.0M | | | | | | $0.01 | $1 |
|
|
46
|
+
| `kilo/~deepseek/deepseek-pro-latest` | 1.0M | | | | | | $0.11 | $8 |
|
|
47
|
+
| `kilo/~deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.01 | $0.53 |
|
|
48
48
|
| `kilo/~google/gemini-flash-latest` | 1.0M | | | | | | $0.75 | $4 |
|
|
49
49
|
| `kilo/~google/gemini-pro-latest` | 1.0M | | | | | | $2 | $12 |
|
|
50
|
-
| `kilo/~moonshotai/kimi-latest` | 1.0M | | | | | | $0.
|
|
50
|
+
| `kilo/~moonshotai/kimi-latest` | 1.0M | | | | | | $0.81 | $13 |
|
|
51
51
|
| `kilo/~openai/gpt-astra-latest` | 1.1M | | | | | | $10 | $50 |
|
|
52
52
|
| `kilo/~openai/gpt-luna-latest` | 1.1M | | | | | | $0.10 | $0.50 |
|
|
53
53
|
| `kilo/~openai/gpt-mini-latest` | 400K | | | | | | $0.75 | $5 |
|
|
54
54
|
| `kilo/~openai/gpt-sol-latest` | 1.1M | | | | | | $2 | $10 |
|
|
55
55
|
| `kilo/~openai/gpt-terra-latest` | 1.1M | | | | | | $2 | $12 |
|
|
56
56
|
| `kilo/~x-ai/grok-latest` | 500K | | | | | | $2 | $6 |
|
|
57
|
-
| `kilo/~z-ai/glm-flash-latest` | 1.0M | | | | | | $0.
|
|
58
|
-
| `kilo/~z-ai/glm-latest` | 1.0M | | | | | | $0.
|
|
57
|
+
| `kilo/~z-ai/glm-flash-latest` | 1.0M | | | | | | $0.03 | $3 |
|
|
58
|
+
| `kilo/~z-ai/glm-latest` | 1.0M | | | | | | $0.03 | $4 |
|
|
59
59
|
| `kilo/aion-labs/aion-2.0` | 131K | | | | | | $0.80 | $2 |
|
|
60
60
|
| `kilo/aion-labs/aion-3.0` | 131K | | | | | | $3 | $6 |
|
|
61
61
|
| `kilo/aion-labs/aion-3.0-mini` | 131K | | | | | | $0.70 | $1 |
|
|
@@ -85,7 +85,6 @@ for await (const chunk of stream) {
|
|
|
85
85
|
| `kilo/anthropic/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
|
|
86
86
|
| `kilo/anthropic/claude-sonnet-5.5` | 1.0M | | | | | | $2 | $10 |
|
|
87
87
|
| `kilo/arcee-ai/trinity-large-thinking` | 262K | | | | | | $0.25 | $0.80 |
|
|
88
|
-
| `kilo/baidu/ernie-4.5-vl-424b-a47b` | 123K | | | | | | $0.42 | $1 |
|
|
89
88
|
| `kilo/bytedance-seed/seed-1.6` | 262K | | | | | | $0.25 | $2 |
|
|
90
89
|
| `kilo/bytedance-seed/seed-1.6-flash` | 262K | | | | | | $0.07 | $0.30 |
|
|
91
90
|
| `kilo/bytedance-seed/seed-2-1-turbo` | 262K | | | | | | $0.50 | $3 |
|
|
@@ -110,7 +109,7 @@ for await (const chunk of stream) {
|
|
|
110
109
|
| `kilo/deepseek/deepseek-v3.2-exp` | 164K | | | | | | $0.27 | $0.41 |
|
|
111
110
|
| `kilo/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
112
111
|
| `kilo/deepseek/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.44 | $1 |
|
|
113
|
-
| `kilo/deepseek/deepseek-v4-flash-vision-exp` | 1.0M | | | | | | $0.
|
|
112
|
+
| `kilo/deepseek/deepseek-v4-flash-vision-exp` | 1.0M | | | | | | $0.22 | $0.65 |
|
|
114
113
|
| `kilo/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $2 | $3 |
|
|
115
114
|
| `kilo/deepseek/deepseek-v4-pro-0813` | 1.0M | | | | | | $1 | $4 |
|
|
116
115
|
| `kilo/deepseek/deepseek-v4.1-flash` | 1.0M | | | | | | $0.30 | $1 |
|
|
@@ -152,7 +151,7 @@ for await (const chunk of stream) {
|
|
|
152
151
|
| `kilo/inception/mercury-2.5` | 260K | | | | | | $0.20 | $0.75 |
|
|
153
152
|
| `kilo/inclusionai/ling-3.0-flash` | 262K | | | | | | $0.06 | $0.18 |
|
|
154
153
|
| `kilo/inclusionai/ling-3.0-flash-fin` | 262K | | | | | | $0.07 | $0.22 |
|
|
155
|
-
| `kilo/inclusionai/ling-3.0-flash-sante
|
|
154
|
+
| `kilo/inclusionai/ling-3.0-flash-sante` | 262K | | | | | | $0.07 | $0.22 |
|
|
156
155
|
| `kilo/inclusionai/ling-3.0-flash-vl` | 262K | | | | | | $0.07 | $0.22 |
|
|
157
156
|
| `kilo/inclusionai/ling-3.1-flash` | 262K | | | | | | — | — |
|
|
158
157
|
| `kilo/inference-net/schematron-v2-small` | 128K | | | | | | $0.05 | $0.23 |
|
|
@@ -197,7 +196,7 @@ for await (const chunk of stream) {
|
|
|
197
196
|
| `kilo/mistralai/mistral-large` | 128K | | | | | | $2 | $6 |
|
|
198
197
|
| `kilo/mistralai/mistral-large-2407` | 131K | | | | | | $2 | $6 |
|
|
199
198
|
| `kilo/mistralai/mistral-large-2512` | 262K | | | | | | $0.50 | $2 |
|
|
200
|
-
| `kilo/mistralai/mistral-large-4-0` |
|
|
199
|
+
| `kilo/mistralai/mistral-large-4-0` | 1.0M | | | | | | $0.68 | $2 |
|
|
201
200
|
| `kilo/mistralai/mistral-medium-3` | 131K | | | | | | $0.40 | $2 |
|
|
202
201
|
| `kilo/mistralai/mistral-medium-3-5` | 262K | | | | | | $2 | $8 |
|
|
203
202
|
| `kilo/mistralai/mistral-medium-3.1` | 131K | | | | | | $0.40 | $2 |
|
|
@@ -213,7 +212,7 @@ for await (const chunk of stream) {
|
|
|
213
212
|
| `kilo/moonshotai/kimi-k2-0905` | 262K | | | | | | $0.60 | $3 |
|
|
214
213
|
| `kilo/moonshotai/kimi-k2-thinking` | 262K | | | | | | $0.60 | $3 |
|
|
215
214
|
| `kilo/moonshotai/kimi-k2.5` | 262K | | | | | | $0.60 | $3 |
|
|
216
|
-
| `kilo/moonshotai/kimi-k2.6` | 262K | | | | | | $0.
|
|
215
|
+
| `kilo/moonshotai/kimi-k2.6` | 262K | | | | | | $0.43 | $2 |
|
|
217
216
|
| `kilo/moonshotai/kimi-k2.7-code` | 262K | | | | | | $0.67 | $3 |
|
|
218
217
|
| `kilo/moonshotai/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
219
218
|
| `kilo/morph/morph-v3-fast` | 82K | | | | | | $0.80 | $1 |
|
|
@@ -382,10 +381,12 @@ for await (const chunk of stream) {
|
|
|
382
381
|
| `kilo/stealth/claude-opus-4.7` | 1.0M | | | | | | $4 | $20 |
|
|
383
382
|
| `kilo/stealth/claude-opus-4.8` | 1.0M | | | | | | $4 | $20 |
|
|
384
383
|
| `kilo/stealth/claude-sonnet-4.6` | 1.0M | | | | | | $2 | $12 |
|
|
384
|
+
| `kilo/stealth/glyph-cluster` | 256K | | | | | | — | — |
|
|
385
385
|
| `kilo/stealth/qwen3.6-plus` | 1.0M | | | | | | $0.25 | $2 |
|
|
386
386
|
| `kilo/stepfun/step-3.5-flash` | 262K | | | | | | $0.10 | $0.30 |
|
|
387
387
|
| `kilo/stepfun/step-3.7-flash` | 256K | | | | | | $0.20 | $1 |
|
|
388
|
-
| `kilo/stepfun/step-
|
|
388
|
+
| `kilo/stepfun/step-5-preview` | 1.0M | | | | | | $1 | $3 |
|
|
389
|
+
| `kilo/stepfun/step-5-preview-free` | 1.0M | | | | | | — | — |
|
|
389
390
|
| `kilo/tencent/hunyuan-a13b-instruct` | 131K | | | | | | $0.14 | $0.57 |
|
|
390
391
|
| `kilo/tencent/hy-mt2-1.8b` | 8K | | | | | | $0.04 | $0.18 |
|
|
391
392
|
| `kilo/tencent/hy-mt2-30b-a3b` | 8K | | | | | | $0.07 | $0.29 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# LLM Gateway
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 446 LLM Gateway models through Mastra's model router. Authentication is handled automatically using the `LLMGATEWAY_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [LLM Gateway documentation](https://llmgateway.io/docs).
|
|
10
10
|
|
|
@@ -198,7 +198,6 @@ for await (const chunk of stream) {
|
|
|
198
198
|
| `llmgateway-providers/deepinfra/gemma-4-26b-a4b-it` | 262K | | | | | | $0.07 | $0.34 |
|
|
199
199
|
| `llmgateway-providers/deepinfra/gemma-4-31b-it` | 262K | | | | | | $0.20 | $0.40 |
|
|
200
200
|
| `llmgateway-providers/deepinfra/granite-4.2-8b` | 131K | | | | | | $0.06 | $0.25 |
|
|
201
|
-
| `llmgateway-providers/deepinfra/hy3` | 262K | | | | | | $0.14 | $0.58 |
|
|
202
201
|
| `llmgateway-providers/deepinfra/inkling` | 524K | | | | | | $0.95 | $4 |
|
|
203
202
|
| `llmgateway-providers/deepinfra/ling-3.0-flash` | 262K | | | | | | $0.06 | $0.18 |
|
|
204
203
|
| `llmgateway-providers/deepinfra/ling-3.0-flash-vl` | 131K | | | | | | $0.06 | $0.18 |
|
|
@@ -45,7 +45,7 @@ for await (const chunk of stream) {
|
|
|
45
45
|
| `mistral/ministral-8b-latest` | 262K | | | | | | $0.10 | $0.10 |
|
|
46
46
|
| `mistral/mistral-embed` | 8K | | | | | | $0.10 | — |
|
|
47
47
|
| `mistral/mistral-large-2512` | 262K | | | | | | $0.50 | $2 |
|
|
48
|
-
| `mistral/mistral-large-4` |
|
|
48
|
+
| `mistral/mistral-large-4` | 1.0M | | | | | | $0.68 | $2 |
|
|
49
49
|
| `mistral/mistral-large-latest` | 262K | | | | | | $0.50 | $2 |
|
|
50
50
|
| `mistral/mistral-medium-2604` | 262K | | | | | | $2 | $8 |
|
|
51
51
|
| `mistral/mistral-medium-latest` | 262K | | | | | | $2 | $8 |
|