@mastra/mcp-docs-server 1.3.16-alpha.2 → 1.3.16-alpha.4
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/mastra-platform/gateway/api/audio.md +2 -0
- package/.docs/docs/mastra-platform/gateway/api/chat-completions.md +2 -0
- package/.docs/docs/mastra-platform/gateway/api/decisions.md +2 -0
- package/.docs/docs/mastra-platform/gateway/api/embeddings.md +2 -0
- package/.docs/docs/mastra-platform/gateway/api/images.md +2 -0
- package/.docs/docs/mastra-platform/gateway/api/messages.md +2 -0
- package/.docs/docs/mastra-platform/gateway/api/models.md +2 -0
- package/.docs/docs/mastra-platform/gateway/api/rerank.md +2 -0
- package/.docs/docs/mastra-platform/gateway/api/responses.md +2 -0
- package/.docs/docs/mastra-platform/gateway/api/videos.md +2 -0
- package/.docs/docs/mastra-platform/gateway/overview.md +9 -0
- package/.docs/docs/mastra-platform/gateway/quickstart.md +1 -1
- package/.docs/docs/observability/metrics/overview.md +57 -2
- package/.docs/integrations/browsers/agent-browser.md +1 -1
- package/.docs/models/gateways/netlify.md +3 -19
- package/.docs/models/gateways/openrouter.md +4 -6
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/aimlapi.md +1 -1
- package/.docs/models/providers/cortecs.md +3 -3
- package/.docs/models/providers/edenai.md +2 -14
- package/.docs/models/providers/huggingface.md +2 -1
- package/.docs/models/providers/inceptron.md +4 -4
- package/.docs/models/providers/keln.md +1 -2
- package/.docs/models/providers/kenari.md +1 -1
- package/.docs/models/providers/kilo.md +22 -24
- package/.docs/models/providers/llmgateway-providers.md +6 -2
- package/.docs/models/providers/llmgateway.md +3 -1
- package/.docs/models/providers/nano-gpt.md +21 -20
- package/.docs/models/providers/nearai.md +3 -1
- package/.docs/models/providers/nebius.md +27 -26
- package/.docs/models/providers/obscurify.md +4 -4
- package/.docs/models/providers/opencode.md +2 -2
- package/.docs/models/providers/prime.md +2 -6
- package/.docs/models/providers/vivgrid.md +4 -1
- package/.docs/reference/agents/durable-agent.md +6 -0
- package/.docs/reference/agents/inngest-agent.md +6 -0
- package/.docs/reference/browser/agent-browser.md +2 -2
- package/.docs/reference/index.md +1 -0
- package/.docs/reference/knowledge/knowledge-class.md +29 -2
- package/.docs/reference/observability/metrics/metrics-context.md +117 -0
- package/.docs/reference/observability/metrics/queries.md +1 -1
- package/.docs/reference/observability/tracing/configuration.md +7 -0
- package/.docs/reference/tools/create-tool.md +2 -0
- package/.docs/reference/workflows/step.md +2 -0
- package/package.json +2 -2
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
# Audio
|
|
6
6
|
|
|
7
|
+
**For AI agents:** Gateway publishes a public OpenAPI spec for every endpoint at <https://gateway-api.mastra.ai/openapi.json>. Use it for request and response schemas. Some fields, such as streaming event payloads, are open objects in the spec. Check those against the [OpenAI Audio API reference](https://developers.openai.com/api/reference/resources/audio), which this endpoint is compatible with.
|
|
8
|
+
|
|
7
9
|
```text
|
|
8
10
|
POST https://gateway-api.mastra.ai/v1/audio/speech
|
|
9
11
|
POST https://gateway-api.mastra.ai/v1/audio/transcriptions
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
# Chat Completions
|
|
6
6
|
|
|
7
|
+
**For AI agents:** Gateway publishes a public OpenAPI spec for every endpoint at <https://gateway-api.mastra.ai/openapi.json>. Use it for request and response schemas. Some fields, such as streaming event payloads, are open objects in the spec. Check those against the [OpenAI Chat Completions API reference](https://developers.openai.com/api/reference/resources/chat), which this endpoint is compatible with.
|
|
8
|
+
|
|
7
9
|
```text
|
|
8
10
|
POST https://gateway-api.mastra.ai/v1/chat/completions
|
|
9
11
|
```
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
# Decisions
|
|
6
6
|
|
|
7
|
+
**For AI agents:** Gateway publishes a public OpenAPI spec for every endpoint at <https://gateway-api.mastra.ai/openapi.json>. Use it for request and response schemas. Some fields, such as streaming event payloads, are open objects in the spec. Check those against the [OpenAI Decisions API reference](https://developers.openai.com/api/reference/resources/decisions), which this endpoint is compatible with.
|
|
8
|
+
|
|
7
9
|
```text
|
|
8
10
|
POST https://gateway-api.mastra.ai/v1/decisions
|
|
9
11
|
```
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
# Embeddings
|
|
6
6
|
|
|
7
|
+
**For AI agents:** Gateway publishes a public OpenAPI spec for every endpoint at <https://gateway-api.mastra.ai/openapi.json>. Use it for request and response schemas. Some fields, such as streaming event payloads, are open objects in the spec. Check those against the [OpenAI Embeddings API reference](https://developers.openai.com/api/reference/resources/embeddings), which this endpoint is compatible with.
|
|
8
|
+
|
|
7
9
|
```text
|
|
8
10
|
POST https://gateway-api.mastra.ai/v1/embeddings
|
|
9
11
|
```
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
# Images
|
|
6
6
|
|
|
7
|
+
**For AI agents:** Gateway publishes a public OpenAPI spec for every endpoint at <https://gateway-api.mastra.ai/openapi.json>. Use it for request and response schemas. Some fields, such as streaming event payloads, are open objects in the spec. Check those against the [OpenAI Images API reference](https://developers.openai.com/api/reference/resources/images), which this endpoint is compatible with.
|
|
8
|
+
|
|
7
9
|
```text
|
|
8
10
|
POST https://gateway-api.mastra.ai/v1/images/generations
|
|
9
11
|
POST https://gateway-api.mastra.ai/v1/images/edits
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
# Anthropic Messages
|
|
6
6
|
|
|
7
|
+
**For AI agents:** Gateway publishes a public OpenAPI spec for every endpoint at <https://gateway-api.mastra.ai/openapi.json>. Use it for request and response schemas. Some fields, such as streaming event payloads, are open objects in the spec. Check those against the [Anthropic Messages API reference](https://platform.claude.com/docs/en/api/messages), which this endpoint is compatible with.
|
|
8
|
+
|
|
7
9
|
```text
|
|
8
10
|
POST https://gateway-api.mastra.ai/v1/messages
|
|
9
11
|
```
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
# Models list
|
|
6
6
|
|
|
7
|
+
**For AI agents:** Gateway publishes a public OpenAPI spec for every endpoint at <https://gateway-api.mastra.ai/openapi.json>. Use it for request and response schemas. Some fields, such as streaming event payloads, are open objects in the spec. Check those against the [OpenAI Models API reference](https://developers.openai.com/api/reference/resources/models), which this endpoint is compatible with.
|
|
8
|
+
|
|
7
9
|
```text
|
|
8
10
|
GET https://gateway-api.mastra.ai/v1/models
|
|
9
11
|
```
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
# Responses
|
|
6
6
|
|
|
7
|
+
**For AI agents:** Gateway publishes a public OpenAPI spec for every endpoint at <https://gateway-api.mastra.ai/openapi.json>. Use it for request and response schemas. Some fields, such as streaming event payloads, are open objects in the spec. Check those against the [OpenAI Responses API reference](https://developers.openai.com/api/reference/resources/responses), which this endpoint is compatible with.
|
|
8
|
+
|
|
7
9
|
```text
|
|
8
10
|
POST https://gateway-api.mastra.ai/v1/responses
|
|
9
11
|
GET https://gateway-api.mastra.ai/v1/responses/{response_id}
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
# Videos
|
|
6
6
|
|
|
7
|
+
**For AI agents:** Gateway publishes a public OpenAPI spec for every endpoint at <https://gateway-api.mastra.ai/openapi.json>. Use it for request and response schemas.
|
|
8
|
+
|
|
7
9
|
```text
|
|
8
10
|
POST https://gateway-api.mastra.ai/v1/videos
|
|
9
11
|
GET https://gateway-api.mastra.ai/v1/videos
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
# Gateway
|
|
6
6
|
|
|
7
|
+
**For AI agents:** Gateway publishes a public OpenAPI spec for every endpoint at <https://gateway-api.mastra.ai/openapi.json>. Use it for request and response schemas. Some fields, such as streaming event payloads, are open objects in the spec, so check those against the provider API that each endpoint page names as compatible.
|
|
8
|
+
|
|
7
9
|
Mastra Gateway lets you call models from many providers through one managed API. It centralizes credentials, fails over between providers, controls spend, and records the cost of every request. You don't have to run your own proxy or routing layer.
|
|
8
10
|
|
|
9
11
|
- **One key, many providers**: Call OpenAI, Anthropic, Google, and other providers with one Gateway key and a `provider/model` model ID.
|
|
@@ -139,6 +141,13 @@ Add credits in **Billing** at [projects.mastra.ai](https://projects.mastra.ai),
|
|
|
139
141
|
|
|
140
142
|
</details>
|
|
141
143
|
|
|
144
|
+
<details>
|
|
145
|
+
**Is there a public OpenAPI spec?**
|
|
146
|
+
|
|
147
|
+
Yes. The OpenAPI spec for every Gateway endpoint is at [gateway-api.mastra.ai/openapi.json](https://gateway-api.mastra.ai/openapi.json). Use it to generate clients or to look up request and response schemas.
|
|
148
|
+
|
|
149
|
+
</details>
|
|
150
|
+
|
|
142
151
|
<details>
|
|
143
152
|
**Does Gateway store my prompts or conversations?**
|
|
144
153
|
|
|
@@ -79,7 +79,7 @@ print(completion.choices[0].message.content)
|
|
|
79
79
|
|
|
80
80
|
Change the `model` value to call another provider, for example `anthropic/claude-sonnet-5.5`. Find more models in the [model catalog](https://mastra.ai/ai-gateway/models), or list them with [`GET /v1/models`](https://mastra.ai/docs/mastra-platform/gateway/api/models).
|
|
81
81
|
|
|
82
|
-
The response includes an `x-request-id` header. Use it to find the request in your usage logs.
|
|
82
|
+
The response includes an `x-request-id` header. Use it to find the request in your usage logs. For the request and response schemas of every endpoint, see the [OpenAPI spec](https://gateway-api.mastra.ai/openapi.json).
|
|
83
83
|
|
|
84
84
|
## Use Gateway from a Mastra agent
|
|
85
85
|
|
|
@@ -12,7 +12,7 @@ Mastra emits:
|
|
|
12
12
|
- **Token usage metrics** for model input and output, including detailed token categories when the provider reports them
|
|
13
13
|
- **Cost estimates** calculated from token usage, provider, model, and model prices from [models.dev](https://models.dev) or from a [custom gateway](https://mastra.ai/models/gateways/custom-gateways)
|
|
14
14
|
|
|
15
|
-
Metrics retain trace correlation context, so you can investigate a change in a chart by finding the related span. See the [Automatic metrics reference](https://mastra.ai/reference/observability/metrics/automatic-metrics) for metric names, labels, and cost fields.
|
|
15
|
+
Metrics retain trace correlation context, so you can investigate a change in a chart by finding the related span. See the [Automatic metrics reference](https://mastra.ai/reference/observability/metrics/automatic-metrics) for metric names, labels, and cost fields. To record your own measurements, [emit custom metrics](#emit-custom-metrics).
|
|
16
16
|
|
|
17
17
|
## When to use metrics
|
|
18
18
|
|
|
@@ -20,6 +20,7 @@ Metrics retain trace correlation context, so you can investigate a change in a c
|
|
|
20
20
|
- Track token consumption and estimated cost over time
|
|
21
21
|
- Compare success and error rates across agents or tools
|
|
22
22
|
- Measure the effect of prompt, model, or code changes
|
|
23
|
+
- Count business events, such as orders processed or documents indexed
|
|
23
24
|
|
|
24
25
|
## Storage support
|
|
25
26
|
|
|
@@ -95,9 +96,63 @@ export const mastra = new Mastra({
|
|
|
95
96
|
|
|
96
97
|
`MastraStorageExporter` persists metrics to the configured observability store and makes them available to Studio. Use `MastraPlatformExporter` instead, or alongside it, to send metrics to Mastra Platform.
|
|
97
98
|
|
|
99
|
+
## Emit custom metrics
|
|
100
|
+
|
|
101
|
+
Emit your own metrics from tools and workflow steps with `metrics.emit()`. Custom metrics go to the same exporters and storage as automatic metrics. They also carry the trace and span of the tool call or step that emitted them.
|
|
102
|
+
|
|
103
|
+
In a tool, read `metrics` from the execution context:
|
|
104
|
+
|
|
105
|
+
```ts
|
|
106
|
+
import { createTool } from '@mastra/core/tools'
|
|
107
|
+
import { z } from 'zod'
|
|
108
|
+
|
|
109
|
+
export const lookupOrder = createTool({
|
|
110
|
+
id: 'lookup-order',
|
|
111
|
+
description: 'Looks up an order by ID',
|
|
112
|
+
inputSchema: z.object({ orderId: z.string() }),
|
|
113
|
+
execute: async ({ orderId }, context) => {
|
|
114
|
+
const order = await db.orders.find(orderId)
|
|
115
|
+
|
|
116
|
+
context.metrics?.emit('orders_looked_up', 1, {
|
|
117
|
+
status: order ? 'found' : 'missing',
|
|
118
|
+
})
|
|
119
|
+
|
|
120
|
+
return { order }
|
|
121
|
+
},
|
|
122
|
+
})
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
In a workflow step, read `metrics` from the `execute` parameters:
|
|
126
|
+
|
|
127
|
+
```ts
|
|
128
|
+
import { createStep } from '@mastra/core/workflows'
|
|
129
|
+
import { z } from 'zod'
|
|
130
|
+
|
|
131
|
+
const chargeCard = createStep({
|
|
132
|
+
id: 'charge-card',
|
|
133
|
+
inputSchema: z.object({ amount: z.number(), currency: z.string() }),
|
|
134
|
+
outputSchema: z.object({ charged: z.boolean() }),
|
|
135
|
+
execute: async ({ inputData, metrics }) => {
|
|
136
|
+
metrics?.emit('payment_amount', inputData.amount, { currency: inputData.currency })
|
|
137
|
+
|
|
138
|
+
return { charged: true }
|
|
139
|
+
},
|
|
140
|
+
})
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
Mastra drops negative, `NaN`, and infinite values. When observability isn't configured, `emit()` does nothing.
|
|
144
|
+
|
|
145
|
+
### Keep labels low-cardinality
|
|
146
|
+
|
|
147
|
+
Each distinct combination of labels becomes a separate series in the metrics store. Use labels for small, fixed sets of values, such as a status, region, or plan tier. Don't use IDs or free text as labels.
|
|
148
|
+
|
|
149
|
+
Mastra removes labels that would create unbounded series. By default it drops `trace_id`, `span_id`, `run_id`, `request_id`, `user_id`, `resource_id`, `session_id`, and `thread_id`, and any label whose value is a UUID. Each metric still keeps its trace and span IDs, so you can go from a metric to the related trace without them. Change this behavior with the `cardinality` option in the [observability configuration](https://mastra.ai/reference/observability/tracing/configuration).
|
|
150
|
+
|
|
151
|
+
See the [`MetricsContext` reference](https://mastra.ai/reference/observability/metrics/metrics-context) for every parameter.
|
|
152
|
+
|
|
98
153
|
## View and query metrics
|
|
99
154
|
|
|
100
|
-
Use the [Studio observability dashboard](https://mastra.ai/docs/studio/observability) to inspect KPI cards, breakdowns, and time-series charts. For custom dashboards and analysis, use the observability store, `@mastra/client-js`, HTTP endpoints, or CLI described in the [Metric queries reference](https://mastra.ai/reference/observability/metrics/queries).
|
|
155
|
+
Use the [Studio observability dashboard](https://mastra.ai/docs/studio/observability) to inspect KPI cards, breakdowns, and time-series charts. For custom dashboards and analysis, use the observability store, `@mastra/client-js`, HTTP endpoints, or CLI described in the [Metric queries reference](https://mastra.ai/reference/observability/metrics/queries). To query a custom metric, pass the name you gave to `emit()`.
|
|
101
156
|
|
|
102
157
|
In production, always include a timestamp range in metric queries. Time bounds limit the data scanned and allow partitioned backends to skip unrelated partitions or chunks.
|
|
103
158
|
|
|
@@ -67,7 +67,7 @@ When interacting with pages:
|
|
|
67
67
|
})
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
-
> **Note:** For local launches (the default), AgentBrowser
|
|
70
|
+
> **Note:** For local launches (the default), AgentBrowser starts Chrome with Playwright as a child process of your app. The browser exits when your app does. It uses Playwright's Chromium when installed (`npx playwright install chromium`) and otherwise falls back to an installed Google Chrome. If launching fails with `"Chrome executable not found"`, install one of them or set `executablePath`. If you connect to a remote browser using the [`cdpUrl`](https://mastra.ai/reference/browser/agent-browser) option, the remote browser provides Chromium.
|
|
71
71
|
|
|
72
72
|
## Screenshots
|
|
73
73
|
|
|
@@ -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
|
|
|
@@ -141,9 +141,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
141
141
|
| `openrouter/~z-ai/glm-flash-latest` |
|
|
142
142
|
| `openrouter/~z-ai/glm-latest` |
|
|
143
143
|
| `openrouter/anthracite-org/magnum-v4-72b` |
|
|
144
|
-
| `openrouter/bytedance-seed/seed-2-1-turbo` |
|
|
145
|
-
| `openrouter/bytedance-seed/seed-2.0-lite` |
|
|
146
|
-
| `openrouter/bytedance-seed/seed-2.0-mini` |
|
|
147
144
|
| `openrouter/bytedance/ui-tars-1.5-7b` |
|
|
148
145
|
| `openrouter/cognitivecomputations/dolphin-mistral-24b-venice-edition` |
|
|
149
146
|
| `openrouter/cohere/command-a-plus` |
|
|
@@ -171,7 +168,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
171
168
|
| `openrouter/inclusionai/ling-3.0-flash` |
|
|
172
169
|
| `openrouter/inclusionai/ling-3.0-flash-vl` |
|
|
173
170
|
| `openrouter/inclusionai/ling-3.0-tiny` |
|
|
174
|
-
| `openrouter/inclusionai/ling-3.1-flash` |
|
|
175
171
|
| `openrouter/inclusionai/ling-3.2-flash:free` |
|
|
176
172
|
| `openrouter/inference-net/schematron-v2-small` |
|
|
177
173
|
| `openrouter/inference-net/schematron-v2-turbo` |
|
|
@@ -212,10 +208,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
212
208
|
| `openrouter/mistralai/voxtral-small-24b-2507` |
|
|
213
209
|
| `openrouter/moondream/moondream3-preview` |
|
|
214
210
|
| `openrouter/moondream/moondream3.1-9b-a2b` |
|
|
215
|
-
| `openrouter/moonshotai/kimi-k2` |
|
|
216
|
-
| `openrouter/moonshotai/kimi-k2-0905` |
|
|
217
|
-
| `openrouter/moonshotai/kimi-k2-thinking` |
|
|
218
|
-
| `openrouter/moonshotai/kimi-k2.5` |
|
|
219
211
|
| `openrouter/moonshotai/kimi-k2.6` |
|
|
220
212
|
| `openrouter/moonshotai/kimi-k2.7-code` |
|
|
221
213
|
| `openrouter/moonshotai/kimi-k3` |
|
|
@@ -261,7 +253,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
261
253
|
| `openrouter/qwen/qwen3-vl-235b-a22b-instruct` |
|
|
262
254
|
| `openrouter/qwen/qwen3-vl-30b-a3b-instruct` |
|
|
263
255
|
| `openrouter/qwen/qwen3-vl-8b-instruct` |
|
|
264
|
-
| `openrouter/qwen/qwen3.5-122b-a10b` |
|
|
265
256
|
| `openrouter/qwen/qwen3.5-27b` |
|
|
266
257
|
| `openrouter/qwen/qwen3.5-35b-a3b` |
|
|
267
258
|
| `openrouter/qwen/qwen3.5-397b-a17b` |
|
|
@@ -270,6 +261,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
270
261
|
| `openrouter/qwen/qwen3.6-35b-a3b` |
|
|
271
262
|
| `openrouter/qwen/qwen3.8-2.4t-a95b` |
|
|
272
263
|
| `openrouter/qwen/qwen3.8-27b` |
|
|
264
|
+
| `openrouter/radixark/daisyrose-27b` |
|
|
273
265
|
| `openrouter/reflection/beam-1.0-501b-a23b` |
|
|
274
266
|
| `openrouter/rekaai/reka-edge` |
|
|
275
267
|
| `openrouter/rekaai/reka-flash-3` |
|
|
@@ -280,19 +272,14 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
280
272
|
| `openrouter/sao10k/l3.1-euryale-70b` |
|
|
281
273
|
| `openrouter/scaledown/extract` |
|
|
282
274
|
| `openrouter/scaledown/summarize` |
|
|
283
|
-
| `openrouter/stepfun/step-3.7-flash` |
|
|
284
275
|
| `openrouter/stepfun/step-5-preview` |
|
|
285
|
-
| `openrouter/tencent/hy-mt2-1.8b` |
|
|
286
|
-
| `openrouter/tencent/hy-mt2-30b-a3b` |
|
|
287
|
-
| `openrouter/tencent/hy-mt2-7b` |
|
|
288
|
-
| `openrouter/tencent/hy3` |
|
|
289
276
|
| `openrouter/tencent/hy4` |
|
|
290
|
-
| `openrouter/tencent/hy4-flash` |
|
|
291
277
|
| `openrouter/tencent/hy4-preview` |
|
|
292
278
|
| `openrouter/thedrummer/cydonia-24b-v4.1` |
|
|
293
279
|
| `openrouter/thedrummer/skyfall-36b-v2` |
|
|
294
280
|
| `openrouter/thedrummer/unslopnemo-12b` |
|
|
295
281
|
| `openrouter/thinkingmachines/inkling` |
|
|
282
|
+
| `openrouter/thinkingmachines/inkling-2-mini` |
|
|
296
283
|
| `openrouter/thinkingmachines/inkling-2-small` |
|
|
297
284
|
| `openrouter/thinkingmachines/inkling-small` |
|
|
298
285
|
| `openrouter/typesafe/jev-router` |
|
|
@@ -310,10 +297,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
310
297
|
| `openrouter/xiaomi/mimo-v2.5-pro` |
|
|
311
298
|
| `openrouter/xiaomi/mimo-v2.6-flash` |
|
|
312
299
|
| `openrouter/xiaomi/mimo-v2.6-pro` |
|
|
313
|
-
| `openrouter/z-ai/glm-4.5-air` |
|
|
314
|
-
| `openrouter/z-ai/glm-4.5v` |
|
|
315
300
|
| `openrouter/z-ai/glm-4.6` |
|
|
316
|
-
| `openrouter/z-ai/glm-4.6v` |
|
|
317
301
|
| `openrouter/z-ai/glm-4.7` |
|
|
318
302
|
| `openrouter/z-ai/glm-4.7-flash` |
|
|
319
303
|
| `openrouter/z-ai/glm-5` |
|
|
@@ -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 379 models through Mastra's model router.
|
|
8
8
|
|
|
9
9
|
Learn more in the [OpenRouter documentation](https://openrouter.ai/models).
|
|
10
10
|
|
|
@@ -97,7 +97,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
97
97
|
| `cohere/command-r-08-2024` |
|
|
98
98
|
| `cohere/command-r-plus-08-2024` |
|
|
99
99
|
| `cohere/command-r7b-12-2024` |
|
|
100
|
-
| `cohere/north-mini-code:free` |
|
|
101
100
|
| `deepseek/deepseek-chat` |
|
|
102
101
|
| `deepseek/deepseek-chat-v3-0324` |
|
|
103
102
|
| `deepseek/deepseek-chat-v3.1` |
|
|
@@ -112,7 +111,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
112
111
|
| `deepseek/deepseek-v4-pro-0813` |
|
|
113
112
|
| `deepseek/deepseek-v4.1-flash` |
|
|
114
113
|
| `deepseek/deepseek-v4.1-flash-1017` |
|
|
115
|
-
| `dots-studio/dots-3-note-preview:free` |
|
|
116
114
|
| `elorian/glimpse` |
|
|
117
115
|
| `fireworks/ember-1` |
|
|
118
116
|
| `google/gemini-2.5-flash` |
|
|
@@ -166,10 +164,8 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
166
164
|
| `liquid/lfm-3-1.7b` |
|
|
167
165
|
| `liquid/lfm-3-1.7b:free` |
|
|
168
166
|
| `mancer/weaver` |
|
|
169
|
-
| `meituan/longcat-2.0` |
|
|
170
167
|
| `meta-llama/llama-3.1-70b-instruct` |
|
|
171
168
|
| `meta-llama/llama-3.1-8b-instruct` |
|
|
172
|
-
| `meta-llama/llama-3.2-1b-instruct` |
|
|
173
169
|
| `meta-llama/llama-3.2-3b-instruct` |
|
|
174
170
|
| `meta-llama/llama-3.3-70b-instruct` |
|
|
175
171
|
| `meta-llama/llama-4-maverick` |
|
|
@@ -208,6 +204,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
208
204
|
| `mistralai/mistral-small-3.1-24b-instruct` |
|
|
209
205
|
| `mistralai/mistral-small-3.2-24b-instruct` |
|
|
210
206
|
| `mistralai/mixtral-8x22b-instruct` |
|
|
207
|
+
| `mistralai/pixtral-large-2502` |
|
|
211
208
|
| `mistralai/voxtral-small-24b-2507` |
|
|
212
209
|
| `moondream/moondream3-preview` |
|
|
213
210
|
| `moondream/moondream3.1-9b-a2b` |
|
|
@@ -353,6 +350,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
353
350
|
| `qwen/qwen3.8-max-prime` |
|
|
354
351
|
| `qwen/qwen3.8-omni-flash` |
|
|
355
352
|
| `qwen/qwen4-max` |
|
|
353
|
+
| `radixark/daisyrose-27b` |
|
|
356
354
|
| `recursive/flint-v1.0:free` |
|
|
357
355
|
| `reflection/beam-1.0-501b-a23b` |
|
|
358
356
|
| `rekaai/reka-edge` |
|
|
@@ -374,7 +372,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
374
372
|
| `tencent/hy-mt2-30b-a3b` |
|
|
375
373
|
| `tencent/hy-mt2-7b` |
|
|
376
374
|
| `tencent/hy3` |
|
|
377
|
-
| `tencent/hy3-preview` |
|
|
378
375
|
| `tencent/hy4` |
|
|
379
376
|
| `tencent/hy4-flash` |
|
|
380
377
|
| `tencent/hy4-preview` |
|
|
@@ -382,6 +379,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
382
379
|
| `thedrummer/skyfall-36b-v2` |
|
|
383
380
|
| `thedrummer/unslopnemo-12b` |
|
|
384
381
|
| `thinkingmachines/inkling` |
|
|
382
|
+
| `thinkingmachines/inkling-2-mini` |
|
|
385
383
|
| `thinkingmachines/inkling-2-small` |
|
|
386
384
|
| `thinkingmachines/inkling-small` |
|
|
387
385
|
| `unbiased/pareto-26.10` |
|
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 9261 models from 312 providers through a single API.
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
@@ -188,7 +188,7 @@ for await (const chunk of stream) {
|
|
|
188
188
|
| `aimlapi/thinkingmachines/inkling-small` | 524K | | | | | | $0.61 | $2 |
|
|
189
189
|
| `aimlapi/unbiased/pareto` | 262K | | | | | | $3 | $8 |
|
|
190
190
|
| `aimlapi/undi95/remm-slerp-l2-13b` | 6K | | | | | | $0.53 | $0.79 |
|
|
191
|
-
| `aimlapi/upstage/solar-pro4` | 524K | | | | | | $0.
|
|
191
|
+
| `aimlapi/upstage/solar-pro4` | 524K | | | | | | $0.16 | $0.63 |
|
|
192
192
|
| `aimlapi/x-ai/grok-4-20-0309-non-reasoning` | 2.0M | | | | | | $1 | $3 |
|
|
193
193
|
| `aimlapi/x-ai/grok-4-fast-non-reasoning` | 2.0M | | | | | | $1 | $3 |
|
|
194
194
|
| `aimlapi/xiaomi/mimo-v2.5` | 1.0M | | | | | | $0.15 | $0.30 |
|
|
@@ -56,7 +56,7 @@ for await (const chunk of stream) {
|
|
|
56
56
|
| `cortecs/deepseek-v4-pro` | 1.0M | | | | | | $2 | $3 |
|
|
57
57
|
| `cortecs/deepseek-v4-pro-0813` | 1.0M | | | | | | $2 | $4 |
|
|
58
58
|
| `cortecs/deepseek-v4.1-flash` | 1.0M | | | | | | $0.30 | $1 |
|
|
59
|
-
| `cortecs/deepseek-v4.1-flash-1017` | 1.0M | | | | | | $0.
|
|
59
|
+
| `cortecs/deepseek-v4.1-flash-1017` | 1.0M | | | | | | $0.10 | $0.61 |
|
|
60
60
|
| `cortecs/devstral-2512` | 256K | | | | | | $0.48 | $2 |
|
|
61
61
|
| `cortecs/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $2 |
|
|
62
62
|
| `cortecs/gemini-2.5-pro` | 1.0M | | | | | | $1 | $10 |
|
|
@@ -71,7 +71,7 @@ for await (const chunk of stream) {
|
|
|
71
71
|
| `cortecs/gemini-4-hydrogen` | 1.0M | | | | | | $2 | $8 |
|
|
72
72
|
| `cortecs/gemini-4-neon` | 1.0M | | | | | | $3 | $17 |
|
|
73
73
|
| `cortecs/gemma-3-27b-it` | 131K | | | | | | $0.10 | $0.30 |
|
|
74
|
-
| `cortecs/gemma-4-26b-a4b-it` | 262K | | | | | | $0.
|
|
74
|
+
| `cortecs/gemma-4-26b-a4b-it` | 262K | | | | | | $0.10 | $0.39 |
|
|
75
75
|
| `cortecs/gemma-4-31b-it` | 262K | | | | | | $0.22 | $0.39 |
|
|
76
76
|
| `cortecs/glm-4.7-flash` | 203K | | | | | | $0.08 | $0.48 |
|
|
77
77
|
| `cortecs/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
@@ -142,7 +142,7 @@ for await (const chunk of stream) {
|
|
|
142
142
|
| `cortecs/qwen3.5-397b-a17b` | 262K | | | | | | $0.67 | $4 |
|
|
143
143
|
| `cortecs/qwen3.5-9b` | 262K | | | | | | $0.11 | $0.17 |
|
|
144
144
|
| `cortecs/qwen3.6-27b` | 262K | | | | | | $0.45 | $3 |
|
|
145
|
-
| `cortecs/qwen3.6-35b-a3b` | 262K | | | | | | $0.
|
|
145
|
+
| `cortecs/qwen3.6-35b-a3b` | 262K | | | | | | $0.19 | $1 |
|
|
146
146
|
| `cortecs/qwen3.8-2.4t-a95b` | 262K | | | | | | $3 | $6 |
|
|
147
147
|
| `cortecs/qwen3.8-27b` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
148
148
|
| `cortecs/qwen3guard-gen-0.6b` | 32K | | | | | | — | — |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Eden AI
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 389 Eden AI models through Mastra's model router. Authentication is handled automatically using the `EDENAI_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Eden AI documentation](https://docs.edenai.co).
|
|
10
10
|
|
|
@@ -97,10 +97,7 @@ for await (const chunk of stream) {
|
|
|
97
97
|
| `edenai/azure/gpt-5.2-codex` | 272K | | | | | | $2 | $14 |
|
|
98
98
|
| `edenai/cerebras/gpt-oss-120b` | 131K | | | | | | $0.35 | $0.75 |
|
|
99
99
|
| `edenai/cloudflare/@cf/aisingapore/gemma-sea-lion-v4-27b-it` | 128K | | | | | | $0.35 | $0.56 |
|
|
100
|
-
| `edenai/cloudflare/@cf/deepseek-ai/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.44 | $1 |
|
|
101
|
-
| `edenai/cloudflare/@cf/deepseek-ai/deepseek-v4-pro-0813` | 1.0M | | | | | | $1 | $4 |
|
|
102
100
|
| `edenai/cloudflare/@cf/deepseek-ai/deepseek-v4.1-flash-1017` | 1.0M | | | | | | $0.30 | $1 |
|
|
103
|
-
| `edenai/cloudflare/@cf/meta/llama-3.2-1b-instruct` | 60K | | | | | | $0.03 | $0.20 |
|
|
104
101
|
| `edenai/cloudflare/@cf/meta/llama-3.2-3b-instruct` | 80K | | | | | | $0.05 | $0.34 |
|
|
105
102
|
| `edenai/cloudflare/@cf/meta/llama-guard-3-8b` | 131K | | | | | | $0.48 | $0.03 |
|
|
106
103
|
| `edenai/cloudflare/@cf/mistralai/mistral-small-3.1-24b-instruct` | 128K | | | | | | $0.35 | $0.56 |
|
|
@@ -378,6 +375,7 @@ for await (const chunk of stream) {
|
|
|
378
375
|
| `edenai/together_ai/meta-models/Muse-Glimmer-30B` | 131K | | | | | | $0.35 | $2 |
|
|
379
376
|
| `edenai/together_ai/openai/gpt-oss-120b` | 131K | | | | | | $0.15 | $0.60 |
|
|
380
377
|
| `edenai/together_ai/reflection/Beam-1.0-501B-A23B` | 1.0M | | | | | | $0.40 | $1 |
|
|
378
|
+
| `edenai/together_ai/tencent/Hy4` | 1.0M | | | | | | $0.83 | $3 |
|
|
381
379
|
| `edenai/together_ai/thinkingmachines/Inkling` | 524K | | | | | | $1 | $4 |
|
|
382
380
|
| `edenai/together_ai/thinkingmachines/Inkling-2-Small` | 1.0M | | | | | | $0.30 | $1 |
|
|
383
381
|
| `edenai/tsystems/gpt-oss-120b` | 131K | | | | | | $0.22 | $0.71 |
|
|
@@ -408,15 +406,6 @@ for await (const chunk of stream) {
|
|
|
408
406
|
| `edenai/vertex/gemini-4-argon` | 1.0M | | | | | | $4 | $20 |
|
|
409
407
|
| `edenai/vertex/gemini-4-argon@eu` | 1.0M | | | | | | $4 | $22 |
|
|
410
408
|
| `edenai/vertex/gemini-4-argon@us` | 1.0M | | | | | | $4 | $22 |
|
|
411
|
-
| `edenai/vertex/gemini-4-carbon` | 1.0M | | | | | | $4 | $20 |
|
|
412
|
-
| `edenai/vertex/gemini-4-carbon@eu` | 1.0M | | | | | | $4 | $22 |
|
|
413
|
-
| `edenai/vertex/gemini-4-carbon@us` | 1.0M | | | | | | $4 | $22 |
|
|
414
|
-
| `edenai/vertex/gemini-4-hydrogen` | 1.0M | | | | | | $2 | $8 |
|
|
415
|
-
| `edenai/vertex/gemini-4-hydrogen@eu` | 1.0M | | | | | | $2 | $8 |
|
|
416
|
-
| `edenai/vertex/gemini-4-hydrogen@us` | 1.0M | | | | | | $2 | $8 |
|
|
417
|
-
| `edenai/vertex/gemini-4-neon` | 1.0M | | | | | | $3 | $15 |
|
|
418
|
-
| `edenai/vertex/gemini-4-neon@eu` | 1.0M | | | | | | $3 | $17 |
|
|
419
|
-
| `edenai/vertex/gemini-4-neon@us` | 1.0M | | | | | | $3 | $17 |
|
|
420
409
|
| `edenai/vertex/gemini-flash-latest` | 1.0M | | | | | | $2 | $8 |
|
|
421
410
|
| `edenai/vertex/gemini-nano-banana-2.1` | 131K | | | | | | $2 | $8 |
|
|
422
411
|
| `edenai/vertex/gemini-pro-latest` | 1.0M | | | | | | $4 | $20 |
|
|
@@ -427,7 +416,6 @@ for await (const chunk of stream) {
|
|
|
427
416
|
| `edenai/xai/grok-4.5` | 500K | | | | | | $2 | $6 |
|
|
428
417
|
| `edenai/xai/grok-4.6` | 500K | | | | | | $2 | $6 |
|
|
429
418
|
| `edenai/xai/grok-4.7` | 500K | | | | | | $2 | $6 |
|
|
430
|
-
| `edenai/xai/grok-build-0.1` | 256K | | | | | | $1 | $2 |
|
|
431
419
|
| `edenai/xai/grok-latest` | 500K | | | | | | $2 | $6 |
|
|
432
420
|
| `edenai/zai/glm-4.6` | 203K | | | | | | $0.60 | $2 |
|
|
433
421
|
| `edenai/zai/glm-4.6v` | 131K | | | | | | $0.30 | $0.90 |
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Hugging Face
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 93 Hugging Face models through Mastra's model router. Authentication is handled automatically using the `HF_TOKEN` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Hugging Face documentation](https://huggingface.co).
|
|
10
10
|
|
|
@@ -109,6 +109,7 @@ for await (const chunk of stream) {
|
|
|
109
109
|
| `huggingface/stepfun-ai/Step-3.5-Flash` | 262K | | | | | | $0.10 | $0.30 |
|
|
110
110
|
| `huggingface/stepfun-ai/Step-3.7-Flash` | 262K | | | | | | $0.20 | $1 |
|
|
111
111
|
| `huggingface/tencent/Hy3` | 262K | | | | | | $0.14 | $0.58 |
|
|
112
|
+
| `huggingface/tencent/Hy4` | 1.0M | | | | | | $0.42 | $1 |
|
|
112
113
|
| `huggingface/tencent/Hy4-flash` | 1.0M | | | | | | $0.04 | $0.14 |
|
|
113
114
|
| `huggingface/tencent/Hy4-preview` | 1.0M | | | | | | $0.83 | $3 |
|
|
114
115
|
| `huggingface/thinkingmachines/Inkling` | 1.0M | | | | | | $1 | $4 |
|
|
@@ -40,10 +40,10 @@ for await (const chunk of stream) {
|
|
|
40
40
|
| ------------------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
41
41
|
| `inceptron/deepseek-ai/DeepSeek-V4-Flash-0731` | 1.0M | | | | | | $0.13 | $0.49 |
|
|
42
42
|
| `inceptron/deepseek-ai/DeepSeek-V4.1-Flash-1017` | 1.0M | | | | | | $0.10 | $0.60 |
|
|
43
|
-
| `inceptron/moonshotai/Kimi-K2.6` | 262K | | | | | | $0.
|
|
44
|
-
| `inceptron/moonshotai/Kimi-K2.7-Code` | 262K | | | | | | $0.
|
|
45
|
-
| `inceptron/zai-org/GLM-5.3` | 1.0M | | | | | | $1 | $
|
|
46
|
-
| `inceptron/zai-org/GLM-5.3-Flash` | 1.0M | | | | | | $0.
|
|
43
|
+
| `inceptron/moonshotai/Kimi-K2.6` | 262K | | | | | | $0.56 | $3 |
|
|
44
|
+
| `inceptron/moonshotai/Kimi-K2.7-Code` | 262K | | | | | | $0.61 | $4 |
|
|
45
|
+
| `inceptron/zai-org/GLM-5.3` | 1.0M | | | | | | $1 | $4 |
|
|
46
|
+
| `inceptron/zai-org/GLM-5.3-Flash` | 1.0M | | | | | | $0.16 | $0.50 |
|
|
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
|
# Keln
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 13 Keln models through Mastra's model router. Authentication is handled automatically using the `KELN_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Keln documentation](https://docs.keln.ai/models-pricing/).
|
|
10
10
|
|
|
@@ -43,7 +43,6 @@ for await (const chunk of stream) {
|
|
|
43
43
|
| `keln/deepseek-ai/deepseek-v4.1-flash-1017` | 1.0M | | | | | | $0.30 | $1 |
|
|
44
44
|
| `keln/google/gemma-4-31b-it` | 262K | | | | | | $0.15 | $0.46 |
|
|
45
45
|
| `keln/minimaxai/minimax-m3.1-flash` | 1.0M | | | | | | $0.15 | $0.60 |
|
|
46
|
-
| `keln/moonshotai/kimi-k3` | 1.0M | | | | | | $3 | $15 |
|
|
47
46
|
| `keln/moonshotai/kimi-k3.1-pro` | 1.0M | | | | | | $2 | $10 |
|
|
48
47
|
| `keln/nvidia/nemotron-3-ultra-550b-a55b` | 262K | | | | | | $0.80 | $3 |
|
|
49
48
|
| `keln/openai/gpt-oss-120b` | 131K | | | | | | $0.15 | $0.60 |
|
|
@@ -97,7 +97,7 @@ for await (const chunk of stream) {
|
|
|
97
97
|
| `kenari/minimax-m2-7-highspeed` | 205K | | | | | | $0.59 | $2 |
|
|
98
98
|
| `kenari/minimax-m3` | 1.0M | | | | | | $0.36 | $1 |
|
|
99
99
|
| `kenari/minimax-m3-1-flash` | 1.0M | | | | | | $0.18 | $0.74 |
|
|
100
|
-
| `kenari/muse-ember-1-0` | 1.0M | | | | | | $0.
|
|
100
|
+
| `kenari/muse-ember-1-0` | 1.0M | | | | | | $0.11 | $0.57 |
|
|
101
101
|
| `kenari/muse-glimmer-30b:free` | 131K | | | | | | — | — |
|
|
102
102
|
| `kenari/muse-spark-1-2` | 1.0M | | | | | | $1 | $5 |
|
|
103
103
|
| `kenari/muse-spark-1-2-contributor` | 1.0M | | | | | | $0.11 | $0.23 |
|