@mastra/mcp-docs-server 1.3.5 → 1.3.6-alpha.10
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/agents/human-in-the-loop.md +5 -3
- package/.docs/docs/agents/processors.md +15 -8
- package/.docs/docs/agents/tools.md +24 -0
- package/.docs/docs/browser.md +0 -2
- package/.docs/docs/channels.md +4 -0
- package/.docs/docs/evals/experiments.md +3 -0
- package/.docs/docs/guides/authentication-identity.md +1 -1
- package/.docs/docs/harness/agent-controller.md +29 -0
- package/.docs/docs/mastra-platform/connect/channels.md +153 -0
- package/.docs/docs/mastra-platform/connect/overview.md +102 -0
- package/.docs/docs/mastra-platform/connect/providers.md +149 -0
- package/.docs/docs/mastra-platform/connect/tools.md +129 -0
- package/.docs/docs/mastra-platform/overview.md +2 -0
- package/.docs/docs/memory/memory-processors.md +2 -5
- package/.docs/docs/memory/message-history.md +15 -8
- package/.docs/docs/memory/observational-memory.md +33 -4
- package/.docs/docs/memory/semantic-recall.md +2 -2
- package/.docs/docs/memory/working-memory.md +16 -0
- package/.docs/docs/observability/feedback.md +20 -0
- package/.docs/docs/observability/tracing/overview.md +31 -1
- package/.docs/docs/subagents.md +10 -8
- package/.docs/docs/workflows/control-flow.md +1 -1
- package/.docs/docs/workflows/time-travel.md +5 -3
- package/.docs/integrations/agentic-ui/ai-sdk-ui.md +60 -0
- package/.docs/integrations/deploy/temporal.md +23 -0
- package/.docs/integrations/observability/langfuse.md +2 -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/merge-gateway.md +2 -1
- package/.docs/models/gateways/netlify.md +4 -5
- package/.docs/models/gateways/openrouter.md +4 -3
- package/.docs/models/gateways/vercel.md +4 -5
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/alibaba.md +1 -1
- package/.docs/models/providers/anthropic.md +4 -3
- package/.docs/models/providers/berget.md +1 -1
- package/.docs/models/providers/coralbricks.md +1 -2
- package/.docs/models/providers/cortecs.md +5 -2
- package/.docs/models/providers/crossmodel.md +2 -1
- package/.docs/models/providers/deepinfra.md +0 -2
- package/.docs/models/providers/edenai.md +11 -8
- package/.docs/models/providers/hyper.md +4 -6
- package/.docs/models/providers/kilo.md +20 -18
- package/.docs/models/providers/llmgateway-providers.md +6 -2
- package/.docs/models/providers/llmgateway.md +4 -1
- package/.docs/models/providers/mistral.md +10 -17
- package/.docs/models/providers/nano-gpt.md +32 -30
- package/.docs/models/providers/neuralwatt.md +3 -1
- package/.docs/models/providers/ollama-cloud.md +2 -1
- package/.docs/models/providers/opencode-go.md +7 -5
- package/.docs/models/providers/opencode.md +3 -2
- package/.docs/models/providers/ovhcloud.md +1 -2
- package/.docs/models/providers/requesty.md +7 -4
- package/.docs/models/providers/vivgrid.md +2 -1
- package/.docs/reference/agent-controller/agent-controller-class.md +15 -1
- package/.docs/reference/agent-controller/session.md +17 -6
- package/.docs/reference/agents/durable-agent.md +2 -0
- package/.docs/reference/agents/generate.md +3 -1
- package/.docs/reference/agents/inngest-agent.md +1 -1
- package/.docs/reference/agents/network.md +2 -0
- package/.docs/reference/ai-sdk/chat-route.md +4 -0
- package/.docs/reference/ai-sdk/handle-chat-stream.md +3 -1
- package/.docs/reference/ai-sdk/to-ai-sdk-stream.md +3 -1
- package/.docs/reference/ai-sdk/to-ai-sdk-v4-messages.md +3 -3
- package/.docs/reference/channels/slack-provider.md +1 -1
- package/.docs/reference/classifier/classifier.md +35 -35
- package/.docs/reference/cli/mastra.md +20 -3
- package/.docs/reference/client-js/memory.md +13 -1
- package/.docs/reference/coding-agent/create-coding-agent.md +2 -2
- package/.docs/reference/configuration.md +2 -2
- package/.docs/reference/connect/channels.md +91 -0
- package/.docs/reference/connect/credential.md +63 -0
- package/.docs/reference/connect/providers.md +1065 -0
- package/.docs/reference/connect/tools.md +157 -0
- package/.docs/reference/core/getClassifier.md +1 -1
- package/.docs/reference/core/mastra-model-gateway.md +10 -2
- package/.docs/reference/datasets/addItem.md +2 -2
- package/.docs/reference/datasets/datasets-manager.md +1 -0
- package/.docs/reference/datasets/delete.md +1 -1
- package/.docs/reference/datasets/getExperiment.md +5 -1
- package/.docs/reference/datasets/startExperimentAsync.md +1 -0
- 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/processor-provider.md +2 -2
- 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/create-classifier-scorer.md +5 -5
- 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/index.md +6 -0
- package/.docs/reference/logging/pino-logger.md +4 -4
- package/.docs/reference/memory/deleteMessages.md +1 -1
- package/.docs/reference/memory/memory-class.md +2 -2
- package/.docs/reference/memory/observational-memory.md +8 -4
- 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/memory.md +1 -1
- 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/exporters/posthog.md +9 -2
- package/.docs/reference/observability/tracing/instances.md +1 -1
- package/.docs/reference/observability/tracing/interfaces.md +8 -1
- package/.docs/reference/observability/tracing/trace-query.md +46 -20
- package/.docs/reference/processors/batch-parts-processor.md +1 -1
- package/.docs/reference/processors/classifier-processor.md +6 -6
- package/.docs/reference/processors/file-upload-processor.md +236 -0
- package/.docs/reference/processors/message-history-processor.md +3 -2
- package/.docs/reference/processors/model-selection-processor.md +11 -11
- package/.docs/reference/processors/processor-interface.md +2 -0
- package/.docs/reference/processors/response-cache.md +1 -1
- package/.docs/reference/processors/semantic-recall-processor.md +2 -3
- package/.docs/reference/processors/stream-error-retry-processor.md +1 -1
- package/.docs/reference/processors/unicode-normalizer.md +1 -1
- package/.docs/reference/processors/unsupported-file-handler.md +69 -0
- package/.docs/reference/processors/working-memory-processor.md +3 -2
- package/.docs/reference/project-structure.md +11 -13
- package/.docs/reference/pubsub/unix-socket-pubsub.md +6 -2
- 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/metadata-filters.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/rag/vector-databases.md +1 -1
- package/.docs/reference/server/mastra-server.md +2 -2
- package/.docs/reference/streaming/agents/stream.md +3 -1
- package/.docs/reference/streaming/workflows/resumeStream.md +2 -0
- package/.docs/reference/streaming/workflows/stream.md +2 -0
- package/.docs/reference/tools/ask-user-tool.md +5 -1
- package/.docs/reference/tools/isolated-vm-transport.md +0 -2
- package/.docs/reference/tools/quickjs-transport.md +0 -2
- package/.docs/reference/workflows/run-methods/restart.md +8 -0
- package/.docs/reference/workflows/run-methods/resume.md +2 -0
- package/.docs/reference/workflows/run-methods/start.md +2 -0
- package/.docs/reference/workflows/run-methods/timeTravel.md +2 -0
- package/.docs/reference/workflows/step.md +1 -1
- package/.docs/reference/workspace/platform-sandbox.md +36 -2
- package/package.json +5 -5
|
@@ -243,6 +243,66 @@ export default function Chat() {
|
|
|
243
243
|
|
|
244
244
|
Use [`prepareSendMessagesRequest`](https://ai-sdk.dev/docs/reference/ai-sdk-ui/use-chat#transport.default-chat-transport.prepare-send-messages-request) to customize the request sent to the chat route, for example to pass additional configuration to the agent.
|
|
245
245
|
|
|
246
|
+
### Client tools with `useChat()`
|
|
247
|
+
|
|
248
|
+
A tool without an `execute` function runs on the client. When the model calls it, the agent's run ends at that step and the stream finishes with a `tool-{toolKey}` part in the `input-available` state. To let the agent continue, run the tool in the browser, add its result with `addToolOutput()`, and send the conversation back. `sendAutomaticallyWhen` sends the next request once every tool call in the last assistant message has a result:
|
|
249
|
+
|
|
250
|
+
```tsx
|
|
251
|
+
import { useChat } from '@ai-sdk/react'
|
|
252
|
+
import { DefaultChatTransport, lastAssistantMessageIsCompleteWithToolCalls } from 'ai'
|
|
253
|
+
|
|
254
|
+
export default function Chat() {
|
|
255
|
+
const { messages, sendMessage, addToolOutput } = useChat({
|
|
256
|
+
transport: new DefaultChatTransport({
|
|
257
|
+
api: 'http://localhost:4111/chat',
|
|
258
|
+
}),
|
|
259
|
+
sendAutomaticallyWhen: lastAssistantMessageIsCompleteWithToolCalls,
|
|
260
|
+
async onToolCall({ toolCall }) {
|
|
261
|
+
if (toolCall.toolName === 'addToCart') {
|
|
262
|
+
const input = toolCall.input as { productId: string }
|
|
263
|
+
const cart = await addToCartInBrowser(input.productId)
|
|
264
|
+
|
|
265
|
+
// Don't await addToolOutput inside onToolCall to avoid deadlocks
|
|
266
|
+
addToolOutput({ tool: 'addToCart', toolCallId: toolCall.toolCallId, output: cart })
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
})
|
|
270
|
+
|
|
271
|
+
// ...render messages and call sendMessage()
|
|
272
|
+
}
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
If the client only needs to render the tool call and the model doesn't need a result, give the tool an `execute` that returns a short acknowledgement instead. The agent then keeps generating in the same request. See [tools that run on the client](https://mastra.ai/docs/agents/tools).
|
|
276
|
+
|
|
277
|
+
Subagents can't run client tools: the browser never sees a subagent's tool calls. Define client tools on the agent the chat route talks to.
|
|
278
|
+
|
|
279
|
+
### Resuming a suspended tool from `useChat()`
|
|
280
|
+
|
|
281
|
+
When a tool calls `suspend()`, the stream includes a `data-tool-call-suspended` part with the `runId`, `toolCallId`, and `suspendPayload`. To resume, send `resumeData` (matching the tool's `resumeSchema`) and the `runId` in the request body. `handleChatStream()` and `chatRoute()` then call `agent.resumeStream()` instead of starting a new run:
|
|
282
|
+
|
|
283
|
+
```tsx
|
|
284
|
+
const { messages, sendMessage } = useChat({
|
|
285
|
+
transport: new DefaultChatTransport({
|
|
286
|
+
api: 'http://localhost:4111/chat',
|
|
287
|
+
prepareSendMessagesRequest: ({ messages, body }) => {
|
|
288
|
+
const resume = body?.resume as { runId: string; resumeData: unknown } | undefined
|
|
289
|
+
if (resume) {
|
|
290
|
+
return { body: { messages, runId: resume.runId, resumeData: resume.resumeData } }
|
|
291
|
+
}
|
|
292
|
+
return { body: { messages } }
|
|
293
|
+
},
|
|
294
|
+
}),
|
|
295
|
+
})
|
|
296
|
+
|
|
297
|
+
// When the user confirms the suspended tool call:
|
|
298
|
+
sendMessage(
|
|
299
|
+
{ text: 'Confirmed' },
|
|
300
|
+
{ body: { resume: { runId: suspended.runId, resumeData: { confirmed: true } } } },
|
|
301
|
+
)
|
|
302
|
+
```
|
|
303
|
+
|
|
304
|
+
`suspended` is the `data` of the latest `data-tool-call-suspended` part in `messages`.
|
|
305
|
+
|
|
246
306
|
## Using Mastra Memory
|
|
247
307
|
|
|
248
308
|
When your agent has [memory](https://mastra.ai/docs/memory/overview) configured, Mastra loads conversation history from storage on the server. Send only the new message from the client instead of the full conversation history.
|
|
@@ -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.
|
|
@@ -197,6 +197,8 @@ The trace name dropdown in Langfuse evaluator filters lists every distinct value
|
|
|
197
197
|
|
|
198
198
|
If you set a custom `traceName` via `mastra.metadata.traceName`, your value takes precedence over the default agent name.
|
|
199
199
|
|
|
200
|
+
A run started with `tracingOptions.nestUnderParent` doesn't own the trace, so the exporter doesn't write the trace name, input, output, metadata, user, or session from it. See [Nesting a run under an earlier Mastra run](https://mastra.ai/docs/observability/tracing/overview).
|
|
201
|
+
|
|
200
202
|
## Custom trace metadata
|
|
201
203
|
|
|
202
204
|
Langfuse filters and groups traces by top-level metadata only. Nested metadata keys can't be used for filtering or grouping.
|
|
@@ -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
|
# Merge Gateway
|
|
6
6
|
|
|
7
|
-
Merge Gateway aggregates models from multiple providers with enhanced features like rate limiting and failover. Access
|
|
7
|
+
Merge Gateway aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 196 models through Mastra's model router.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Merge Gateway documentation](https://docs.merge.dev/merge-gateway).
|
|
10
10
|
|
|
@@ -42,6 +42,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
42
42
|
| `anthropic/claude-fable-5` |
|
|
43
43
|
| `anthropic/claude-fable-5-1` |
|
|
44
44
|
| `anthropic/claude-haiku-4-5-20251001` |
|
|
45
|
+
| `anthropic/claude-haiku-5-5` |
|
|
45
46
|
| `anthropic/claude-opus-4-1-20250805` |
|
|
46
47
|
| `anthropic/claude-opus-4-20250514` |
|
|
47
48
|
| `anthropic/claude-opus-4-5-20251101` |
|
|
@@ -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
|
|
|
@@ -43,6 +43,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
43
43
|
| `anthropic/claude-fable-5-1` |
|
|
44
44
|
| `anthropic/claude-haiku-4-5` |
|
|
45
45
|
| `anthropic/claude-haiku-4-5-20251001` |
|
|
46
|
+
| `anthropic/claude-haiku-5-5` |
|
|
46
47
|
| `anthropic/claude-opus-4-5` |
|
|
47
48
|
| `anthropic/claude-opus-4-5-20251101` |
|
|
48
49
|
| `anthropic/claude-opus-4-6` |
|
|
@@ -132,7 +133,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
132
133
|
| `openrouter/~z-ai/glm-latest` |
|
|
133
134
|
| `openrouter/anthracite-org/magnum-v4-72b` |
|
|
134
135
|
| `openrouter/apodex/apodex-1.1-mini:free` |
|
|
135
|
-
| `openrouter/baidu/ernie-4.5-vl-424b-a47b` |
|
|
136
136
|
| `openrouter/bytedance-seed/seed-1.6` |
|
|
137
137
|
| `openrouter/bytedance-seed/seed-1.6-flash` |
|
|
138
138
|
| `openrouter/bytedance-seed/seed-2-1-turbo` |
|
|
@@ -166,7 +166,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
166
166
|
| `openrouter/inception/mercury-2.5` |
|
|
167
167
|
| `openrouter/inclusionai/ling-3.0-flash` |
|
|
168
168
|
| `openrouter/inclusionai/ling-3.0-flash-fin` |
|
|
169
|
-
| `openrouter/inclusionai/ling-3.0-flash-sante
|
|
169
|
+
| `openrouter/inclusionai/ling-3.0-flash-sante` |
|
|
170
170
|
| `openrouter/inclusionai/ling-3.0-flash-vl` |
|
|
171
171
|
| `openrouter/inclusionai/ling-3.1-flash` |
|
|
172
172
|
| `openrouter/inference-net/schematron-v2-small` |
|
|
@@ -194,6 +194,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
194
194
|
| `openrouter/mistralai/ministral-8b-2512` |
|
|
195
195
|
| `openrouter/mistralai/mistral-large-2407` |
|
|
196
196
|
| `openrouter/mistralai/mistral-large-2512` |
|
|
197
|
+
| `openrouter/mistralai/mistral-large-4-0` |
|
|
197
198
|
| `openrouter/mistralai/mistral-medium-3` |
|
|
198
199
|
| `openrouter/mistralai/mistral-medium-3-5` |
|
|
199
200
|
| `openrouter/mistralai/mistral-medium-3.1` |
|
|
@@ -246,11 +247,9 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
246
247
|
| `openrouter/qwen/qwen3-30b-a3b-instruct-2507` |
|
|
247
248
|
| `openrouter/qwen/qwen3-32b` |
|
|
248
249
|
| `openrouter/qwen/qwen3-coder` |
|
|
249
|
-
| `openrouter/qwen/qwen3-coder-30b-a3b-instruct` |
|
|
250
250
|
| `openrouter/qwen/qwen3-coder-next` |
|
|
251
251
|
| `openrouter/qwen/qwen3-next-80b-a3b-instruct` |
|
|
252
252
|
| `openrouter/qwen/qwen3-vl-235b-a22b-instruct` |
|
|
253
|
-
| `openrouter/qwen/qwen3-vl-235b-a22b-thinking` |
|
|
254
253
|
| `openrouter/qwen/qwen3-vl-30b-a3b-instruct` |
|
|
255
254
|
| `openrouter/qwen/qwen3-vl-8b-instruct` |
|
|
256
255
|
| `openrouter/qwen/qwen3.5-122b-a10b` |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# OpenRouter
|
|
6
6
|
|
|
7
|
-
OpenRouter aggregates models from multiple providers with enhanced features like rate limiting and failover. Access
|
|
7
|
+
OpenRouter aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 390 models through Mastra's model router.
|
|
8
8
|
|
|
9
9
|
Learn more in the [OpenRouter documentation](https://openrouter.ai/models).
|
|
10
10
|
|
|
@@ -71,6 +71,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
71
71
|
| `anthropic/claude-fable-5` |
|
|
72
72
|
| `anthropic/claude-fable-5.1` |
|
|
73
73
|
| `anthropic/claude-haiku-4.5` |
|
|
74
|
+
| `anthropic/claude-haiku-5.5` |
|
|
74
75
|
| `anthropic/claude-opus-4.1` |
|
|
75
76
|
| `anthropic/claude-opus-4.5` |
|
|
76
77
|
| `anthropic/claude-opus-4.6` |
|
|
@@ -85,7 +86,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
85
86
|
| `anthropic/claude-sonnet-5.5` |
|
|
86
87
|
| `apodex/apodex-1.1-mini:free` |
|
|
87
88
|
| `arcee-ai/trinity-large-thinking` |
|
|
88
|
-
| `baidu/ernie-4.5-vl-424b-a47b` |
|
|
89
89
|
| `bytedance-seed/seed-1.6` |
|
|
90
90
|
| `bytedance-seed/seed-1.6-flash` |
|
|
91
91
|
| `bytedance-seed/seed-2-1-turbo` |
|
|
@@ -154,7 +154,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
154
154
|
| `inception/mercury-2.5` |
|
|
155
155
|
| `inclusionai/ling-3.0-flash` |
|
|
156
156
|
| `inclusionai/ling-3.0-flash-fin` |
|
|
157
|
-
| `inclusionai/ling-3.0-flash-sante
|
|
157
|
+
| `inclusionai/ling-3.0-flash-sante` |
|
|
158
158
|
| `inclusionai/ling-3.0-flash-vl` |
|
|
159
159
|
| `inclusionai/ling-3.1-flash` |
|
|
160
160
|
| `inference-net/schematron-v2-small` |
|
|
@@ -378,6 +378,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
378
378
|
| `sao10k/l3.3-euryale-70b` |
|
|
379
379
|
| `stepfun/step-3.5-flash` |
|
|
380
380
|
| `stepfun/step-3.7-flash` |
|
|
381
|
+
| `stepfun/step-5-preview` |
|
|
381
382
|
| `tencent/hunyuan-a13b-instruct` |
|
|
382
383
|
| `tencent/hy-mt2-1.8b` |
|
|
383
384
|
| `tencent/hy-mt2-30b-a3b` |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Vercel
|
|
6
6
|
|
|
7
|
-
Vercel aggregates models from multiple providers with enhanced features like rate limiting and failover. Access
|
|
7
|
+
Vercel aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 408 models through Mastra's model router.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Vercel documentation](https://ai-sdk.dev/providers/ai-sdk-providers).
|
|
10
10
|
|
|
@@ -92,6 +92,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
92
92
|
| `anthropic/claude-fable-5` |
|
|
93
93
|
| `anthropic/claude-fable-5.1` |
|
|
94
94
|
| `anthropic/claude-haiku-4.5` |
|
|
95
|
+
| `anthropic/claude-haiku-5.5` |
|
|
95
96
|
| `anthropic/claude-opus-4` |
|
|
96
97
|
| `anthropic/claude-opus-4.5` |
|
|
97
98
|
| `anthropic/claude-opus-4.6` |
|
|
@@ -134,6 +135,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
134
135
|
| `bytedance/seedream-4.5` |
|
|
135
136
|
| `bytedance/seedream-5.0-lite` |
|
|
136
137
|
| `bytedance/seedream-5.0-pro` |
|
|
138
|
+
| `callstack/apex` |
|
|
137
139
|
| `cohere/command-a` |
|
|
138
140
|
| `cohere/embed-v4.0` |
|
|
139
141
|
| `cohere/embed-v5.0-fast` |
|
|
@@ -143,7 +145,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
143
145
|
| `cohere/rerank-v4-pro` |
|
|
144
146
|
| `deepseek/deepseek-r1` |
|
|
145
147
|
| `deepseek/deepseek-v3.1` |
|
|
146
|
-
| `deepseek/deepseek-v3.1-terminus` |
|
|
147
148
|
| `deepseek/deepseek-v3.2` |
|
|
148
149
|
| `deepseek/deepseek-v3.2-thinking` |
|
|
149
150
|
| `deepseek/deepseek-v4-flash` |
|
|
@@ -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` |
|
|
@@ -255,7 +255,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
255
255
|
| `mistral/mistral-small` |
|
|
256
256
|
| `mixedbread/toast-1` |
|
|
257
257
|
| `moonshotai/kimi-k2` |
|
|
258
|
-
| `moonshotai/kimi-k2-thinking` |
|
|
259
258
|
| `moonshotai/kimi-k2.5` |
|
|
260
259
|
| `moonshotai/kimi-k2.6` |
|
|
261
260
|
| `moonshotai/kimi-k2.7-code` |
|
|
@@ -398,7 +397,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
398
397
|
| `spacexai/grok-tts` |
|
|
399
398
|
| `spacexai/grok-voice-think-fast-1.0` |
|
|
400
399
|
| `spacexai/grok-voice-think-fast-2.0` |
|
|
401
|
-
| `
|
|
400
|
+
| `stealth/glyph-cluster` |
|
|
402
401
|
| `stepfun/step-3.7-flash` |
|
|
403
402
|
| `stepfun/step-5-preview` |
|
|
404
403
|
| `tencent/hy-mt2-lite` |
|
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 7823 models from 213 providers through a single API.
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
@@ -52,7 +52,7 @@ for await (const chunk of stream) {
|
|
|
52
52
|
| `alibaba/qwen-plus-character-ja` | 8K | | | | | | $0.50 | $1 |
|
|
53
53
|
| `alibaba/qwen-turbo` | 1.0M | | | | | | $0.05 | $0.20 |
|
|
54
54
|
| `alibaba/qwen-vl-max` | 131K | | | | | | $0.80 | $3 |
|
|
55
|
-
| `alibaba/qwen-vl-ocr` | 34K | | | | | | $0.
|
|
55
|
+
| `alibaba/qwen-vl-ocr` | 34K | | | | | | $0.07 | $0.16 |
|
|
56
56
|
| `alibaba/qwen-vl-plus` | 131K | | | | | | $0.21 | $0.63 |
|
|
57
57
|
| `alibaba/qwen2-5-14b-instruct` | 131K | | | | | | $0.35 | $1 |
|
|
58
58
|
| `alibaba/qwen2-5-32b-instruct` | 131K | | | | | | $0.70 | $3 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Anthropic
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 17 Anthropic models through Mastra's model router. Authentication is handled automatically using the `ANTHROPIC_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Anthropic documentation](https://docs.anthropic.com/en/docs/about-claude/models).
|
|
10
10
|
|
|
@@ -40,6 +40,7 @@ for await (const chunk of stream) {
|
|
|
40
40
|
| `anthropic/claude-fable-5-1` | 1.0M | | | | | | $10 | $50 |
|
|
41
41
|
| `anthropic/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
42
42
|
| `anthropic/claude-haiku-4-5-20251001` | 200K | | | | | | $1 | $5 |
|
|
43
|
+
| `anthropic/claude-haiku-5-5` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
43
44
|
| `anthropic/claude-opus-4-5` | 200K | | | | | | $5 | $25 |
|
|
44
45
|
| `anthropic/claude-opus-4-5-20251101` | 200K | | | | | | $5 | $25 |
|
|
45
46
|
| `anthropic/claude-opus-4-6` | 1.0M | | | | | | $5 | $25 |
|
|
@@ -47,8 +48,8 @@ for await (const chunk of stream) {
|
|
|
47
48
|
| `anthropic/claude-opus-4-8` | 1.0M | | | | | | $5 | $25 |
|
|
48
49
|
| `anthropic/claude-opus-5` | 1.0M | | | | | | $5 | $25 |
|
|
49
50
|
| `anthropic/claude-opus-5-5` | 1.0M | | | | | | $4 | $20 |
|
|
50
|
-
| `anthropic/claude-sonnet-4-5` |
|
|
51
|
-
| `anthropic/claude-sonnet-4-5-20250929` |
|
|
51
|
+
| `anthropic/claude-sonnet-4-5` | 200K | | | | | | $3 | $15 |
|
|
52
|
+
| `anthropic/claude-sonnet-4-5-20250929` | 200K | | | | | | $3 | $15 |
|
|
52
53
|
| `anthropic/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
53
54
|
| `anthropic/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
|
|
54
55
|
| `anthropic/claude-sonnet-5-5` | 1.0M | | | | | | $2 | $10 |
|
|
@@ -43,7 +43,7 @@ for await (const chunk of stream) {
|
|
|
43
43
|
| `berget/moonshotai/Kimi-K3` | 328K | | | | | | $3 | $15 |
|
|
44
44
|
| `berget/Qwen/Qwen3.8-27B-FP8` | 262K | | | | | | $0.46 | $3 |
|
|
45
45
|
| `berget/zai-org/GLM-5.2` | 524K | | | | | | $2 | $5 |
|
|
46
|
-
| `berget/zai-org/GLM-5.3-Flash` |
|
|
46
|
+
| `berget/zai-org/GLM-5.3-Flash` | 1.0M | | | | | | $0.29 | $0.58 |
|
|
47
47
|
|
|
48
48
|
Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
|
|
49
49
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# CoralBricks
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 4 CoralBricks models through Mastra's model router. Authentication is handled automatically using the `CORAL_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [CoralBricks documentation](https://www.coralbricks.ai/docs).
|
|
10
10
|
|
|
@@ -41,7 +41,6 @@ for await (const chunk of stream) {
|
|
|
41
41
|
| `coralbricks/deepseek-v4.1-flash-fast` | 1.0M | | | | | | $0.30 | $1 |
|
|
42
42
|
| `coralbricks/deepseek-v4.1-flash-fast-fp4` | 1.0M | | | | | | $0.30 | $1 |
|
|
43
43
|
| `coralbricks/glm-5.3-fast` | 1.0M | | | | | | $1 | $4 |
|
|
44
|
-
| `coralbricks/glm-5.3-flash-fp4` | 1.0M | | | | | | $0.15 | $0.50 |
|
|
45
44
|
| `coralbricks/glm-5.3-fp4` | 1.0M | | | | | | $1 | $4 |
|
|
46
45
|
|
|
47
46
|
Model availability, capabilities, context windows, and pricing are sourced from [models.dev](https://models.dev) and may change.
|
|
@@ -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 |
|
|
@@ -50,6 +51,7 @@ for await (const chunk of stream) {
|
|
|
50
51
|
| `cortecs/claude-opus4-8` | 1.0M | | | | | | $5 | $27 |
|
|
51
52
|
| `cortecs/claude-sonnet-4` | 200K | | | | | | $3 | $15 |
|
|
52
53
|
| `cortecs/claude-sonnet-5` | 1.0M | | | | | | $2 | $11 |
|
|
54
|
+
| `cortecs/claude-sonnet-5.5` | 1.0M | | | | | | $2 | $11 |
|
|
53
55
|
| `cortecs/codestral-2508` | 256K | | | | | | $0.37 | $1 |
|
|
54
56
|
| `cortecs/deepseek-v3.2` | 164K | | | | | | $0.50 | $1 |
|
|
55
57
|
| `cortecs/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.09 | $0.17 |
|
|
@@ -110,6 +112,7 @@ for await (const chunk of stream) {
|
|
|
110
112
|
| `cortecs/mistral-7b-instruct-v0.3` | 127K | | | | | | $0.11 | $0.11 |
|
|
111
113
|
| `cortecs/mistral-large-2402` | 32K | | | | | | $4 | $13 |
|
|
112
114
|
| `cortecs/mistral-large-2512` | 256K | | | | | | $0.61 | $2 |
|
|
115
|
+
| `cortecs/mistral-large-4-0` | 1.0M | | | | | | $0.77 | $2 |
|
|
113
116
|
| `cortecs/mistral-medium-3.5` | 256K | | | | | | $2 | $8 |
|
|
114
117
|
| `cortecs/mistral-nemo-instruct-2407` | 128K | | | | | | $0.14 | $0.14 |
|
|
115
118
|
| `cortecs/mistral-small-2503` | 128K | | | | | | $0.11 | $0.33 |
|
|
@@ -128,7 +131,7 @@ for await (const chunk of stream) {
|
|
|
128
131
|
| `cortecs/qwen3-235b-a22b-instruct-2507` | 262K | | | | | | $0.20 | $0.60 |
|
|
129
132
|
| `cortecs/qwen3-30b-a3b-instruct-2507` | 262K | | | | | | $0.10 | $0.30 |
|
|
130
133
|
| `cortecs/qwen3-32b` | 16K | | | | | | $0.18 | $0.70 |
|
|
131
|
-
| `cortecs/qwen3-coder-30b-a3b-instruct` | 262K | | | | | | $0.
|
|
134
|
+
| `cortecs/qwen3-coder-30b-a3b-instruct` | 262K | | | | | | $0.18 | $0.70 |
|
|
132
135
|
| `cortecs/qwen3-coder-next` | 256K | | | | | | $0.17 | $0.89 |
|
|
133
136
|
| `cortecs/qwen3-vl-235b-a22b` | 256K | | | | | | $0.62 | $3 |
|
|
134
137
|
| `cortecs/qwen3.5-397b-a17b` | 262K | | | | | | $0.67 | $4 |
|
|
@@ -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 |
|