@mastra/mcp-docs-server 1.3.2-alpha.6 → 1.3.2
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/code-mode.md +1 -1
- package/.docs/docs/agents/human-in-the-loop.md +4 -2
- package/.docs/docs/agents/processors.md +3 -3
- package/.docs/docs/agents/tools.md +3 -1
- package/.docs/docs/connections/acp.md +3 -3
- package/.docs/docs/connections/mcp.md +1 -1
- package/.docs/docs/deployment/workers.md +7 -2
- package/.docs/docs/develop.md +4 -4
- package/.docs/docs/evals/datasets.md +1 -1
- package/.docs/docs/evals/evals-with-memory.md +7 -6
- package/.docs/docs/evals/experiments.md +4 -4
- package/.docs/docs/evals/multi-turn.md +2 -2
- package/.docs/docs/evals/vitest-integration.md +1 -1
- package/.docs/docs/harness/agent-controller.md +6 -4
- package/.docs/docs/harness/background-tasks.md +2 -2
- package/.docs/docs/harness/durable-agents.md +2 -2
- package/.docs/docs/harness/goals.md +27 -4
- package/.docs/docs/harness/schedules.md +28 -1
- package/.docs/docs/harness/signals.md +2 -2
- package/.docs/docs/mastra-platform/deploy.md +1 -1
- package/.docs/docs/mastra-platform/environments.md +1 -1
- package/.docs/docs/mastra-platform/observability.md +1 -1
- package/.docs/docs/mastra-platform/workspaces.md +1 -1
- package/.docs/docs/memory/observational-memory.md +3 -3
- package/.docs/docs/memory/overview.md +1 -1
- package/.docs/docs/sandbox/skills.md +1 -1
- package/.docs/docs/server/pubsub.md +1 -1
- package/.docs/docs/server/server-adapters.md +1 -1
- package/.docs/docs/studio/auth.md +1 -1
- package/.docs/docs/workflows/control-flow.md +4 -1
- package/.docs/docs/workflows/dynamic-workflows.md +1 -1
- package/.docs/docs/workflows/overview.md +1 -1
- package/.docs/docs/workflows/scheduled-workflows.md +11 -7
- package/.docs/integrations/frameworks/nestjs.md +34 -1
- package/.docs/models/environment-variables.md +2 -0
- package/.docs/models/gateways/merge-gateway.md +2 -1
- package/.docs/models/gateways/netlify.md +3 -6
- package/.docs/models/gateways/openrouter.md +5 -4
- package/.docs/models/gateways/vercel.md +7 -4
- package/.docs/models/index.md +212 -2
- package/.docs/models/providers/302ai.md +5 -1
- package/.docs/models/providers/alibaba-cn.md +2 -1
- package/.docs/models/providers/alibaba-coding-plan-cn.md +1 -3
- package/.docs/models/providers/alibaba-coding-plan.md +1 -3
- package/.docs/models/providers/alibaba.md +5 -2
- package/.docs/models/providers/ambient.md +3 -1
- package/.docs/models/providers/anthropic.md +3 -2
- package/.docs/models/providers/bailing.md +1 -1
- package/.docs/models/providers/bee.md +82 -0
- package/.docs/models/providers/cloudflare-workers-ai.md +3 -3
- package/.docs/models/providers/coralbricks.md +2 -3
- package/.docs/models/providers/cortecs.md +1 -1
- package/.docs/models/providers/crossmodel.md +2 -1
- package/.docs/models/providers/deepinfra.md +2 -1
- package/.docs/models/providers/digitalocean.md +2 -1
- package/.docs/models/providers/edenai.md +287 -287
- package/.docs/models/providers/fireworks-ai.md +4 -7
- package/.docs/models/providers/kilo.md +25 -25
- package/.docs/models/providers/llmgateway-providers.md +24 -13
- package/.docs/models/providers/llmgateway.md +16 -8
- package/.docs/models/providers/minimax-cn-coding-plan.md +12 -11
- package/.docs/models/providers/minimax-coding-plan.md +12 -11
- package/.docs/models/providers/mistral.md +1 -2
- package/.docs/models/providers/nan.md +3 -2
- package/.docs/models/providers/nano-gpt.md +8 -6
- package/.docs/models/providers/nebius.md +2 -1
- package/.docs/models/providers/nvidia.md +1 -47
- package/.docs/models/providers/ofox.md +3 -1
- package/.docs/models/providers/openai.md +44 -41
- package/.docs/models/providers/opencode-go.md +2 -5
- package/.docs/models/providers/opencode.md +4 -2
- package/.docs/models/providers/pareto.md +77 -0
- package/.docs/models/providers/pioneer.md +4 -2
- package/.docs/models/providers/privatemode-ai.md +2 -2
- package/.docs/models/providers/requesty.md +7 -3
- package/.docs/models/providers/scaleway.md +2 -1
- package/.docs/models/providers/tempr.md +26 -2
- package/.docs/models/providers/togetherai.md +1 -3
- package/.docs/models/providers/umans-ai-coding-plan.md +1 -1
- package/.docs/models/providers/umans-ai.md +1 -1
- package/.docs/models/providers.md +2 -0
- package/.docs/reference/agent-controller/session.md +5 -5
- package/.docs/reference/agents/channels.md +3 -1
- package/.docs/reference/agents/durable-agent.md +3 -1
- package/.docs/reference/channels/teams-provider.md +189 -0
- package/.docs/reference/classifier/classifier.md +47 -5
- package/.docs/reference/client-js/agent-controller.md +1 -1
- package/.docs/reference/code-sdk/acp-server.md +101 -0
- package/.docs/reference/configuration.md +4 -1
- package/.docs/reference/datasets/finalizeExperiment.md +1 -1
- package/.docs/reference/evals/create-classifier-scorer.md +4 -1
- package/.docs/reference/file-based-agents/logger.md +1 -1
- package/.docs/reference/file-based-agents/schedules.md +3 -3
- package/.docs/reference/file-based-agents/workspace.md +1 -1
- package/.docs/reference/index.md +2 -0
- package/.docs/reference/migrations/mcp-v2.md +1 -1
- package/.docs/reference/observability/tracing/interfaces.md +1 -1
- package/.docs/reference/observability/tracing/trace-query.md +37 -16
- package/.docs/reference/processors/classifier-processor.md +14 -4
- package/.docs/reference/processors/model-selection-processor.md +15 -6
- package/.docs/reference/processors/tool-search-processor.md +1 -1
- package/.docs/reference/pubsub/google-cloud-pubsub.md +1 -1
- package/.docs/reference/pubsub/redis-streams.md +3 -3
- package/.docs/reference/rag/graph-rag.md +1 -1
- package/.docs/reference/storage/retention.md +1 -1
- package/.docs/reference/workers/overview.md +3 -1
- package/.docs/reference/workflows/step.md +4 -1
- package/.docs/reference/workflows/workflow.md +1 -1
- package/.docs/reference/workspace/local-sandbox.md +2 -0
- package/.docs/reference/workspace/platform-sandbox.md +1 -1
- package/.docs/reference/workspace/sandbox.md +1 -1
- package/.docs/reference/workspace/workspace-class.md +1 -1
- package/package.json +6 -6
|
@@ -66,7 +66,7 @@ Studio handles the token as follows:
|
|
|
66
66
|
|
|
67
67
|
- It reads `auth_header` once on load and sends the value as the `Authorization` header on every API request in that session.
|
|
68
68
|
- It removes `auth_header` from the address bar while preserving other query parameters and the hash.
|
|
69
|
-
- It keeps the token in memory only and never writes it to local storage, so
|
|
69
|
+
- It keeps the token in memory only and never writes it to local storage, so it doesn't persist across page reloads.
|
|
70
70
|
|
|
71
71
|
The token rides in a URL parameter, so the host application is responsible for how that URL is generated and transmitted. URL parameters can be exposed through browser history and referrer headers, plus server access logs.
|
|
72
72
|
|
|
@@ -255,12 +255,15 @@ A configured classifier can produce typed answers before `.branch()`. Route on t
|
|
|
255
255
|
|
|
256
256
|
```typescript
|
|
257
257
|
import { Classifier } from '@mastra/core/classifier'
|
|
258
|
+
import { createTypeSafeAi } from '@ai-sdk/typesafe-ai'
|
|
258
259
|
import { createWorkflow } from '@mastra/core/workflows'
|
|
259
260
|
import { z } from 'zod'
|
|
260
261
|
|
|
261
262
|
const router = new Classifier({
|
|
262
263
|
id: 'ticket-router',
|
|
263
|
-
model
|
|
264
|
+
model: createTypeSafeAi({ apiKey: process.env.TYPESAFE_AI_API_KEY }).evaluationModel(
|
|
265
|
+
'jev-latest',
|
|
266
|
+
),
|
|
264
267
|
questions: {
|
|
265
268
|
route: {
|
|
266
269
|
type: 'choice',
|
|
@@ -100,7 +100,7 @@ await mastra.addDynamicWorkflow(definition)
|
|
|
100
100
|
|
|
101
101
|
### Register dependencies first
|
|
102
102
|
|
|
103
|
-
Register referenced components on the same `Mastra` instance before adding the dynamic workflow. Agent and nested workflow entries use their intrinsic IDs. A tool entry uses its key from the `Mastra` `tools` object
|
|
103
|
+
Register referenced components on the same `Mastra` instance before adding the dynamic workflow. Agent and nested workflow entries use their intrinsic IDs. A tool entry uses its key from the `Mastra` `tools` object. The quickstart registers the tool under `create-greeting` before referencing that key with `toolId`.
|
|
104
104
|
|
|
105
105
|
Use a `mapping` entry when one step's output doesn't match the next step's input. Mapping entries can read data from the workflow input and previous step results, along with workflow state and request context. The [definition reference](https://mastra.ai/reference/workflows/dynamic-workflow-definition) lists the supported mapping descriptors.
|
|
106
106
|
|
|
@@ -294,7 +294,7 @@ const testWorkflow = mastra.getWorkflow('testWorkflow')
|
|
|
294
294
|
> 1. It provides access to the Mastra instance configuration (logger, telemetry, storage, registered agents, and vector stores)
|
|
295
295
|
> 2. It provides full TypeScript type inference for workflow input and output schemas
|
|
296
296
|
>
|
|
297
|
-
> Use `getWorkflow()` with the workflow's **registration key** (the key used when adding it to Mastra).
|
|
297
|
+
> Use `getWorkflow()` with the workflow's **registration key** (the key used when adding it to Mastra). `getWorkflowById()` retrieves workflows by their `id` property, but it doesn't provide the same level of type inference.
|
|
298
298
|
|
|
299
299
|
## Running workflows
|
|
300
300
|
|
|
@@ -40,11 +40,15 @@ export const dailyReport = createWorkflow({
|
|
|
40
40
|
|
|
41
41
|
A separate "register schedule" call won't happen. The scheduler reads `schedule` straight off the workflow when `Mastra` boots.
|
|
42
42
|
|
|
43
|
-
##
|
|
43
|
+
## Execution engine
|
|
44
44
|
|
|
45
|
-
|
|
45
|
+
Declaring `schedule` doesn't change how the workflow runs. Scheduled fires run in-process on the host that runs the scheduler, the same way `workflow.start()` or an HTTP-triggered run does. A workflow that declares `schedule` needs no extra storage or worker setup to run directly.
|
|
46
46
|
|
|
47
|
-
|
|
47
|
+
Split-worker deployments are the exception. When the [`MASTRA_WORKERS`](https://mastra.ai/reference/workers/overview) environment variable is set to any value, including `false`, `createWorkflow` builds scheduled workflows on the **evented execution engine** so that every process in the deployment runs them the same way. Scheduled fires then run on the [orchestration worker](https://mastra.ai/docs/deployment/workers), and Mastra logs a warning to the console when the workflow is created. The public API (`workflow.start()`, `workflow.startAsync()`, `resume()`) doesn't change.
|
|
48
|
+
|
|
49
|
+
Evented runs require a storage adapter that applies concurrent updates atomically, such as `@mastra/libsql` or `@mastra/pg`. With any other adapter, `createRun()` throws an error that lists the supported adapters.
|
|
50
|
+
|
|
51
|
+
Only the environment variable triggers the switch, because `createWorkflow` runs before `Mastra` reads its `workers` option. If you split workers with the `workers` option instead, import `createWorkflow` from `@mastra/core/workflows/evented` for your scheduled workflows.
|
|
48
52
|
|
|
49
53
|
## Single schedule
|
|
50
54
|
|
|
@@ -92,7 +96,7 @@ Each entry creates an independent schedule row and fires on its own cron, plus s
|
|
|
92
96
|
|
|
93
97
|
Studio surfaces schedules as a top-level area, not as a tab inside a workflow:
|
|
94
98
|
|
|
95
|
-
- **All schedules**: open `/workflows/schedules` for a cross-workflow list. Each row shows the workflow id, cron, next fire, and the most recent run's status
|
|
99
|
+
- **All schedules**: open `/workflows/schedules` for a cross-workflow list. Each row shows the workflow id, cron, next fire, and the most recent run's status. The list answers "is anything broken?" at a glance.
|
|
96
100
|
- **Filtered by workflow**: append `?workflowId=<id>` to scope the list to a single workflow, for example `/workflows/schedules?workflowId=daily-report`.
|
|
97
101
|
- **Schedule detail**: Select any row to open `/workflows/schedules/:scheduleId`. The page shows schedule metadata and **Pause** / **Resume** controls, followed by the full trigger history.
|
|
98
102
|
|
|
@@ -133,7 +137,7 @@ await client.resumeSchedule('wf_daily-report')
|
|
|
133
137
|
|
|
134
138
|
In Studio, open the schedule detail page and select **Pause** or **Resume** in the header.
|
|
135
139
|
|
|
136
|
-
A few rules
|
|
140
|
+
A few rules to know:
|
|
137
141
|
|
|
138
142
|
- Pause is durable. The status is written to the schedules table and survives process restarts and redeploys. The declarative-config upsert never overwrites a user-set status, even when you change `cron`, `timezone`, or other fields.
|
|
139
143
|
- Resume recomputes `nextFireAt` from now. A schedule paused for a week doesn't fire seven backlogged runs the moment you resume it. It fires on the next regular cron tick.
|
|
@@ -163,9 +167,9 @@ Deploy targets such as Fly Machines, Railway, Render, AWS ECS, GKE, or your own
|
|
|
163
167
|
|
|
164
168
|
### Serverless platforms
|
|
165
169
|
|
|
166
|
-
Functions-as-a-service platforms such as Vercel, Netlify, AWS Lambda, and Cloudflare Workers shut the process down after each request, so the tick loop doesn't get a second tick and schedules declared in code don't fire with the built-in scheduler today.
|
|
170
|
+
Functions-as-a-service platforms such as Vercel, Netlify, AWS Lambda, and Cloudflare Workers shut the process down after each request, so the tick loop doesn't get a second tick and schedules declared in code don't fire with the built-in scheduler today. Direct runs still work: calling `run.start()` from an HTTP route runs a workflow that declares `schedule` in-process, like any other workflow.
|
|
167
171
|
|
|
168
|
-
|
|
172
|
+
For cron fires on these platforms, use [`@mastra/inngest`](#inngest-workflows) instead. Inngest is serverless-native and holds the cron state for you.
|
|
169
173
|
|
|
170
174
|
## Inngest workflows
|
|
171
175
|
|
|
@@ -86,6 +86,39 @@ This creates a `src/mastra` folder with an example weather agent and the followi
|
|
|
86
86
|
|
|
87
87
|
You'll pass the `src/mastra/index.ts` file to the NestJS adapter in the next step.
|
|
88
88
|
|
|
89
|
+
## Update the generated files for your module system
|
|
90
|
+
|
|
91
|
+
The files that `mastra init` generates need one change to compile in a NestJS project. Check the `type` field in your `package.json`. NestJS CLI v12 creates ECMAScript module (ESM) projects with `"type": "module"`. Earlier versions of the CLI create CommonJS projects.
|
|
92
|
+
|
|
93
|
+
**ESM**:
|
|
94
|
+
|
|
95
|
+
ESM projects use `"moduleResolution": "nodenext"`, which requires file extensions on relative imports. Add `.js` to every relative import in the generated files, for example:
|
|
96
|
+
|
|
97
|
+
```typescript
|
|
98
|
+
import { weatherWorkflow } from './workflows/weather-workflow.js'
|
|
99
|
+
import { weatherAgent } from './agents/weather-agent.js'
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
```typescript
|
|
103
|
+
import { weatherTool } from '../tools/weather-tool.js'
|
|
104
|
+
```
|
|
105
|
+
|
|
106
|
+
**CommonJS**:
|
|
107
|
+
|
|
108
|
+
CommonJS doesn't support top-level `await`. Open `src/mastra/index.ts` and remove the `DuckDBStore` import and the `domains` option of `MastraCompositeStore`:
|
|
109
|
+
|
|
110
|
+
```typescript
|
|
111
|
+
import { DuckDBStore } from '@mastra/duckdb'
|
|
112
|
+
|
|
113
|
+
// ...
|
|
114
|
+
|
|
115
|
+
domains: {
|
|
116
|
+
observability: await new DuckDBStore().getStore('observability'),
|
|
117
|
+
},
|
|
118
|
+
```
|
|
119
|
+
|
|
120
|
+
Observability data is then stored in the default LibSQL storage.
|
|
121
|
+
|
|
89
122
|
## Add server adapter
|
|
90
123
|
|
|
91
124
|
Install the NestJS server adapter package:
|
|
@@ -119,7 +152,7 @@ Open `src/app.module.ts` and register `MastraModule`:
|
|
|
119
152
|
```typescript
|
|
120
153
|
import { Module } from '@nestjs/common'
|
|
121
154
|
import { MastraModule } from '@mastra/nestjs'
|
|
122
|
-
import { mastra } from './mastra'
|
|
155
|
+
import { mastra } from './mastra/index.js'
|
|
123
156
|
|
|
124
157
|
@Module({
|
|
125
158
|
imports: [
|
|
@@ -35,6 +35,7 @@ List of required environment variables for each model provider and gateway suppo
|
|
|
35
35
|
| [Auriko](https://mastra.ai/models/providers/auriko) | `auriko/*` | `AURIKO_API_KEY` |
|
|
36
36
|
| [Bailing](https://mastra.ai/models/providers/bailing) | `bailing/*` | `BAILING_API_TOKEN` |
|
|
37
37
|
| [Baseten](https://mastra.ai/models/providers/baseten) | `baseten/*` | `BASETEN_API_KEY` |
|
|
38
|
+
| [Bee by HEOSSI](https://mastra.ai/models/providers/bee) | `bee/*` | `BEE_API_KEY` |
|
|
38
39
|
| [Berget.AI](https://mastra.ai/models/providers/berget) | `berget/*` | `BERGET_API_KEY` |
|
|
39
40
|
| [Blue Claw](https://mastra.ai/models/providers/blueclaw) | `blueclaw/*` | `BLUECLAW_API_KEY` |
|
|
40
41
|
| [Bothub](https://mastra.ai/models/providers/bothub) | `bothub/*` | `BOTHUB_API_KEY` |
|
|
@@ -143,6 +144,7 @@ List of required environment variables for each model provider and gateway suppo
|
|
|
143
144
|
| [Opper](https://mastra.ai/models/providers/opper) | `opper/*` | `OPPER_API_KEY` |
|
|
144
145
|
| [OrcaRouter](https://mastra.ai/models/providers/orcarouter) | `orcarouter/*` | `ORCAROUTER_API_KEY` |
|
|
145
146
|
| [OVHcloud AI Endpoints](https://mastra.ai/models/providers/ovhcloud) | `ovhcloud/*` | `OVHCLOUD_API_KEY` |
|
|
147
|
+
| [Pareto Inference](https://mastra.ai/models/providers/pareto) | `pareto/*` | `PARETO_API_KEY` |
|
|
146
148
|
| [Pendra](https://mastra.ai/models/providers/pendra) | `pendra/*` | `PENDRA_API_KEY` |
|
|
147
149
|
| [Perplexity](https://mastra.ai/models/providers/perplexity) | `perplexity/*` | `PERPLEXITY_API_KEY` |
|
|
148
150
|
| [Perplexity Agent](https://mastra.ai/models/providers/perplexity-agent) | `perplexity-agent/*` | `PERPLEXITY_API_KEY` |
|
|
@@ -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 192 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
|
|
|
@@ -54,6 +54,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
54
54
|
| `anthropic/claude-sonnet-4-5-20250929` |
|
|
55
55
|
| `anthropic/claude-sonnet-4-6` |
|
|
56
56
|
| `anthropic/claude-sonnet-5` |
|
|
57
|
+
| `anthropic/claude-sonnet-5-5` |
|
|
57
58
|
| `bytedance/dola-seed-2.0-code` |
|
|
58
59
|
| `bytedance/dola-seed-2.0-code-preview` |
|
|
59
60
|
| `bytedance/dola-seed-2.0-lite` |
|
|
@@ -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 267 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
|
|
|
@@ -54,6 +54,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
54
54
|
| `anthropic/claude-sonnet-4-5-20250929` |
|
|
55
55
|
| `anthropic/claude-sonnet-4-6` |
|
|
56
56
|
| `anthropic/claude-sonnet-5` |
|
|
57
|
+
| `anthropic/claude-sonnet-5-5` |
|
|
57
58
|
| `gemini/gemini-2.5-flash` |
|
|
58
59
|
| `gemini/gemini-2.5-flash-image` |
|
|
59
60
|
| `gemini/gemini-2.5-flash-lite` |
|
|
@@ -109,6 +110,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
109
110
|
| `openai/gpt-6-astra` |
|
|
110
111
|
| `openai/gpt-6-luna` |
|
|
111
112
|
| `openai/gpt-6-sol` |
|
|
113
|
+
| `openai/gpt-6.1-sol` |
|
|
112
114
|
| `openai/gpt-image-1` |
|
|
113
115
|
| `openai/gpt-image-1.5` |
|
|
114
116
|
| `openai/gpt-image-2` |
|
|
@@ -139,14 +141,10 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
139
141
|
| `openrouter/cognitivecomputations/dolphin-mistral-24b-venice-edition` |
|
|
140
142
|
| `openrouter/cohere/command-a-plus` |
|
|
141
143
|
| `openrouter/deepseek/deepseek-chat` |
|
|
142
|
-
| `openrouter/deepseek/deepseek-chat-v3-0324` |
|
|
143
144
|
| `openrouter/deepseek/deepseek-chat-v3.1` |
|
|
144
145
|
| `openrouter/deepseek/deepseek-r1` |
|
|
145
146
|
| `openrouter/deepseek/deepseek-r1-0528` |
|
|
146
|
-
| `openrouter/deepseek/deepseek-r1-distill-llama-70b` |
|
|
147
|
-
| `openrouter/deepseek/deepseek-v3.1-terminus` |
|
|
148
147
|
| `openrouter/deepseek/deepseek-v3.2` |
|
|
149
|
-
| `openrouter/deepseek/deepseek-v3.2-exp` |
|
|
150
148
|
| `openrouter/deepseek/deepseek-v4-flash` |
|
|
151
149
|
| `openrouter/deepseek/deepseek-v4-flash-0731` |
|
|
152
150
|
| `openrouter/deepseek/deepseek-v4-flash-vision-exp` |
|
|
@@ -166,7 +164,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
166
164
|
| `openrouter/inception/mercury-2.5` |
|
|
167
165
|
| `openrouter/inclusionai/ling-3.0-flash` |
|
|
168
166
|
| `openrouter/inclusionai/ling-3.0-flash-fin` |
|
|
169
|
-
| `openrouter/inclusionai/ling-3.0-flash-fin:free` |
|
|
170
167
|
| `openrouter/inclusionai/ling-3.0-flash-sante:free` |
|
|
171
168
|
| `openrouter/inclusionai/ling-3.0-flash-vl` |
|
|
172
169
|
| `openrouter/inference-net/schematron-v2-small` |
|
|
@@ -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 386 models through Mastra's model router.
|
|
8
8
|
|
|
9
9
|
Learn more in the [OpenRouter documentation](https://openrouter.ai/models).
|
|
10
10
|
|
|
@@ -68,7 +68,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
68
68
|
| `amazon/nova-premier-v1` |
|
|
69
69
|
| `amazon/nova-pro-v1` |
|
|
70
70
|
| `anthracite-org/magnum-v4-72b` |
|
|
71
|
-
| `anthropic/claude-3-haiku` |
|
|
72
71
|
| `anthropic/claude-fable-5` |
|
|
73
72
|
| `anthropic/claude-fable-5.1` |
|
|
74
73
|
| `anthropic/claude-haiku-4.5` |
|
|
@@ -83,6 +82,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
83
82
|
| `anthropic/claude-sonnet-4.5` |
|
|
84
83
|
| `anthropic/claude-sonnet-4.6` |
|
|
85
84
|
| `anthropic/claude-sonnet-5` |
|
|
85
|
+
| `anthropic/claude-sonnet-5.5` |
|
|
86
86
|
| `arcee-ai/trinity-large-thinking` |
|
|
87
87
|
| `baidu/ernie-4.5-vl-424b-a47b` |
|
|
88
88
|
| `bytedance-seed/seed-1.6` |
|
|
@@ -104,7 +104,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
104
104
|
| `deepseek/deepseek-chat-v3.1` |
|
|
105
105
|
| `deepseek/deepseek-r1` |
|
|
106
106
|
| `deepseek/deepseek-r1-0528` |
|
|
107
|
-
| `deepseek/deepseek-r1-distill-llama-70b` |
|
|
108
107
|
| `deepseek/deepseek-v3.1-terminus` |
|
|
109
108
|
| `deepseek/deepseek-v3.2` |
|
|
110
109
|
| `deepseek/deepseek-v3.2-exp` |
|
|
@@ -153,7 +152,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
153
152
|
| `inception/mercury-2.5` |
|
|
154
153
|
| `inclusionai/ling-3.0-flash` |
|
|
155
154
|
| `inclusionai/ling-3.0-flash-fin` |
|
|
156
|
-
| `inclusionai/ling-3.0-flash-fin:free` |
|
|
157
155
|
| `inclusionai/ling-3.0-flash-sante:free` |
|
|
158
156
|
| `inclusionai/ling-3.0-flash-vl` |
|
|
159
157
|
| `inference-net/schematron-v2-small` |
|
|
@@ -214,6 +212,8 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
214
212
|
| `moonshotai/kimi-k3` |
|
|
215
213
|
| `morph/morph-v3-fast` |
|
|
216
214
|
| `morph/morph-v3-large` |
|
|
215
|
+
| `nex-agi/nex-n2.5-mini` |
|
|
216
|
+
| `nex-agi/nex-n2.5-pro` |
|
|
217
217
|
| `nousresearch/hermes-3-llama-3.1-405b` |
|
|
218
218
|
| `nousresearch/hermes-3-llama-3.1-70b` |
|
|
219
219
|
| `nousresearch/hermes-4-405b` |
|
|
@@ -276,6 +276,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
276
276
|
| `openai/gpt-6-luna-pro` |
|
|
277
277
|
| `openai/gpt-6-sol` |
|
|
278
278
|
| `openai/gpt-6-sol-pro` |
|
|
279
|
+
| `openai/gpt-6.1-sol` |
|
|
279
280
|
| `openai/gpt-audio` |
|
|
280
281
|
| `openai/gpt-audio-mini` |
|
|
281
282
|
| `openai/gpt-chat-latest` |
|
|
@@ -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 391 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
|
|
|
@@ -106,6 +106,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
106
106
|
| `anthropic/claude-sonnet-4.5` |
|
|
107
107
|
| `anthropic/claude-sonnet-4.6` |
|
|
108
108
|
| `anthropic/claude-sonnet-5` |
|
|
109
|
+
| `anthropic/claude-sonnet-5.5` |
|
|
109
110
|
| `arcee-ai/trinity-large-thinking` |
|
|
110
111
|
| `bfl/flux-2-flex` |
|
|
111
112
|
| `bfl/flux-2-klein-4b` |
|
|
@@ -148,6 +149,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
148
149
|
| `deepseek/deepseek-v4-pro` |
|
|
149
150
|
| `deepseek/deepseek-v4-pro-0813` |
|
|
150
151
|
| `deepseek/deepseek-v4.1-flash` |
|
|
152
|
+
| `fireworks/ember-1` |
|
|
151
153
|
| `fish-audio/s1` |
|
|
152
154
|
| `fish-audio/s2-pro` |
|
|
153
155
|
| `fish-audio/s2.1-pro` |
|
|
@@ -191,7 +193,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
191
193
|
| `inception/mercury-coder-small` |
|
|
192
194
|
| `inclusionai/ling-3.0-flash` |
|
|
193
195
|
| `inclusionai/ling-3.0-flash-fin` |
|
|
194
|
-
| `inclusionai/ling-3.0-flash-fin-free` |
|
|
195
196
|
| `inclusionai/ling-3.0-flash-sante` |
|
|
196
197
|
| `inclusionai/ling-3.0-flash-sante-free` |
|
|
197
198
|
| `inclusionai/ling-3.0-flash-vl` |
|
|
@@ -206,6 +207,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
206
207
|
| `klingai/kling-v3.0-i2v` |
|
|
207
208
|
| `klingai/kling-v3.0-motion-control` |
|
|
208
209
|
| `klingai/kling-v3.0-t2v` |
|
|
210
|
+
| `meituan/longcat-2.5-preview` |
|
|
209
211
|
| `meta/llama-3.1-70b` |
|
|
210
212
|
| `meta/llama-3.1-8b` |
|
|
211
213
|
| `meta/llama-3.3-70b` |
|
|
@@ -308,6 +310,8 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
308
310
|
| `openai/gpt-6-luna-fast` |
|
|
309
311
|
| `openai/gpt-6-sol` |
|
|
310
312
|
| `openai/gpt-6-sol-fast` |
|
|
313
|
+
| `openai/gpt-6.1-sol` |
|
|
314
|
+
| `openai/gpt-6.1-sol-fast` |
|
|
311
315
|
| `openai/gpt-image-1` |
|
|
312
316
|
| `openai/gpt-image-1-mini` |
|
|
313
317
|
| `openai/gpt-image-1.5` |
|
|
@@ -340,8 +344,6 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
340
344
|
| `perplexity/pplx-embed-v1-0.6b` |
|
|
341
345
|
| `perplexity/pplx-embed-v1-4b` |
|
|
342
346
|
| `perplexity/sonar` |
|
|
343
|
-
| `perplexity/sonar-pro` |
|
|
344
|
-
| `perplexity/sonar-reasoning-pro` |
|
|
345
347
|
| `poolside/laguna-s-2.1` |
|
|
346
348
|
| `poolside/laguna-s-2.1-free` |
|
|
347
349
|
| `prodia/flux-fast-schnell` |
|
|
@@ -382,6 +384,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
382
384
|
| `spacexai/grok-tts` |
|
|
383
385
|
| `spacexai/grok-voice-think-fast-1.0` |
|
|
384
386
|
| `spacexai/grok-voice-think-fast-2.0` |
|
|
387
|
+
| `stealth/pixel-canary` |
|
|
385
388
|
| `stepfun/step-3.5-flash` |
|
|
386
389
|
| `stepfun/step-3.7-flash` |
|
|
387
390
|
| `stepfun/step-5-preview` |
|
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 7685 models from 212 providers through a single API.
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
@@ -363,4 +363,214 @@ const agent = new Agent({
|
|
|
363
363
|
})
|
|
364
364
|
```
|
|
365
365
|
|
|
366
|
-
You can use an AI SDK model (e.g. `groq('gemma2-9b-it')`) anywhere that accepts a `"provider/model"` string, including within model router fallbacks and [scorers](https://mastra.ai/docs/evals/overview).
|
|
366
|
+
You can use an AI SDK model (e.g. `groq('gemma2-9b-it')`) anywhere that accepts a `"provider/model"` string, including within model router fallbacks and [scorers](https://mastra.ai/docs/evals/overview).
|
|
367
|
+
|
|
368
|
+
## All providers
|
|
369
|
+
|
|
370
|
+
Every provider below works with the model router as `provider/model`. Read the provider page for its environment variable, setup, and model list.
|
|
371
|
+
|
|
372
|
+
- [OpenAI](https://mastra.ai/models/providers/openai)
|
|
373
|
+
- [Anthropic](https://mastra.ai/models/providers/anthropic)
|
|
374
|
+
- [Google](https://mastra.ai/models/providers/google)
|
|
375
|
+
- [DeepSeek](https://mastra.ai/models/providers/deepseek)
|
|
376
|
+
- [Groq](https://mastra.ai/models/providers/groq)
|
|
377
|
+
- [Mistral](https://mastra.ai/models/providers/mistral)
|
|
378
|
+
- [xAI](https://mastra.ai/models/providers/xai)
|
|
379
|
+
- [302.AI](https://mastra.ai/models/providers/302ai)
|
|
380
|
+
- [Abacus](https://mastra.ai/models/providers/abacus)
|
|
381
|
+
- [abliteration.ai](https://mastra.ai/models/providers/abliteration-ai)
|
|
382
|
+
- [above.dev](https://mastra.ai/models/providers/above)
|
|
383
|
+
- [AgentRouter](https://mastra.ai/models/providers/agentrouter)
|
|
384
|
+
- [Agnes AI](https://mastra.ai/models/providers/agnes)
|
|
385
|
+
- [AI-ROUTER](https://mastra.ai/models/providers/ai-router)
|
|
386
|
+
- [ai&](https://mastra.ai/models/providers/aiand)
|
|
387
|
+
- [AI21 Labs](https://mastra.ai/models/providers/ai21)
|
|
388
|
+
- [ainetcafe](https://mastra.ai/models/providers/ainetcafe)
|
|
389
|
+
- [Aixy](https://mastra.ai/models/providers/aixy)
|
|
390
|
+
- [AKI.IO](https://mastra.ai/models/providers/aki-io)
|
|
391
|
+
- [Alibaba](https://mastra.ai/models/providers/alibaba)
|
|
392
|
+
- [Alibaba (China)](https://mastra.ai/models/providers/alibaba-cn)
|
|
393
|
+
- [Alibaba Coding Plan](https://mastra.ai/models/providers/alibaba-coding-plan)
|
|
394
|
+
- [Alibaba Coding Plan (China)](https://mastra.ai/models/providers/alibaba-coding-plan-cn)
|
|
395
|
+
- [Alibaba Token Plan](https://mastra.ai/models/providers/alibaba-token-plan)
|
|
396
|
+
- [Alibaba Token Plan (China)](https://mastra.ai/models/providers/alibaba-token-plan-cn)
|
|
397
|
+
- [Ambient](https://mastra.ai/models/providers/ambient)
|
|
398
|
+
- [AMD](https://mastra.ai/models/providers/amd)
|
|
399
|
+
- [AnyAPI](https://mastra.ai/models/providers/anyapi)
|
|
400
|
+
- [Arcee](https://mastra.ai/models/providers/arcee)
|
|
401
|
+
- [Atomic Chat](https://mastra.ai/models/providers/atomic-chat)
|
|
402
|
+
- [Auriko](https://mastra.ai/models/providers/auriko)
|
|
403
|
+
- [Bailing](https://mastra.ai/models/providers/bailing)
|
|
404
|
+
- [Baseten](https://mastra.ai/models/providers/baseten)
|
|
405
|
+
- [Bee by HEOSSI](https://mastra.ai/models/providers/bee)
|
|
406
|
+
- [Berget.AI](https://mastra.ai/models/providers/berget)
|
|
407
|
+
- [Blue Claw](https://mastra.ai/models/providers/blueclaw)
|
|
408
|
+
- [Bothub](https://mastra.ai/models/providers/bothub)
|
|
409
|
+
- [Cerebras](https://mastra.ai/models/providers/cerebras)
|
|
410
|
+
- [Charm Hyper](https://mastra.ai/models/providers/hyper)
|
|
411
|
+
- [Chutes](https://mastra.ai/models/providers/chutes)
|
|
412
|
+
- [Clarifai](https://mastra.ai/models/providers/clarifai)
|
|
413
|
+
- [Claudinio](https://mastra.ai/models/providers/claudinio)
|
|
414
|
+
- [ClinePass](https://mastra.ai/models/providers/cline-pass)
|
|
415
|
+
- [CloudFerro Sherlock](https://mastra.ai/models/providers/cloudferro-sherlock)
|
|
416
|
+
- [Cloudflare Workers AI](https://mastra.ai/models/providers/cloudflare-workers-ai)
|
|
417
|
+
- [CoralBricks](https://mastra.ai/models/providers/coralbricks)
|
|
418
|
+
- [CoreWeave](https://mastra.ai/models/providers/wandb)
|
|
419
|
+
- [Cortecs](https://mastra.ai/models/providers/cortecs)
|
|
420
|
+
- [CrofAI](https://mastra.ai/models/providers/crof)
|
|
421
|
+
- [CrossModel](https://mastra.ai/models/providers/crossmodel)
|
|
422
|
+
- [Crusoe](https://mastra.ai/models/providers/crusoe)
|
|
423
|
+
- [D.Run (China)](https://mastra.ai/models/providers/drun)
|
|
424
|
+
- [DaoXE](https://mastra.ai/models/providers/daoxe)
|
|
425
|
+
- [Databricks](https://mastra.ai/models/providers/databricks)
|
|
426
|
+
- [Deep Infra](https://mastra.ai/models/providers/deepinfra)
|
|
427
|
+
- [DevPass (LLM Gateway)](https://mastra.ai/models/providers/llmgateway)
|
|
428
|
+
- [DigitalOcean](https://mastra.ai/models/providers/digitalocean)
|
|
429
|
+
- [DInference](https://mastra.ai/models/providers/dinference)
|
|
430
|
+
- [EBCloud](https://mastra.ai/models/providers/ebcloud)
|
|
431
|
+
- [Echo](https://mastra.ai/models/providers/echo)
|
|
432
|
+
- [Eden AI](https://mastra.ai/models/providers/edenai)
|
|
433
|
+
- [EmpirioLabs AI](https://mastra.ai/models/providers/empiriolabs)
|
|
434
|
+
- [evroc](https://mastra.ai/models/providers/evroc)
|
|
435
|
+
- [FastRouter](https://mastra.ai/models/providers/fastrouter)
|
|
436
|
+
- [Fireworks AI](https://mastra.ai/models/providers/fireworks-ai)
|
|
437
|
+
- [FreeModel](https://mastra.ai/models/providers/freemodel)
|
|
438
|
+
- [Friendli](https://mastra.ai/models/providers/friendli)
|
|
439
|
+
- [FrogBot](https://mastra.ai/models/providers/frogbot)
|
|
440
|
+
- [GMI Cloud](https://mastra.ai/models/providers/gmicloud)
|
|
441
|
+
- [GreenPT](https://mastra.ai/models/providers/greenpt)
|
|
442
|
+
- [Helicone](https://mastra.ai/models/providers/helicone)
|
|
443
|
+
- [Hetzner](https://mastra.ai/models/providers/hetzner)
|
|
444
|
+
- [HPC-AI](https://mastra.ai/models/providers/hpc-ai)
|
|
445
|
+
- [Hugging Face](https://mastra.ai/models/providers/huggingface)
|
|
446
|
+
- [iFlow](https://mastra.ai/models/providers/iflowcn)
|
|
447
|
+
- [Impossibl](https://mastra.ai/models/providers/impossibl)
|
|
448
|
+
- [Inception](https://mastra.ai/models/providers/inception)
|
|
449
|
+
- [Inceptron](https://mastra.ai/models/providers/inceptron)
|
|
450
|
+
- [Inco](https://mastra.ai/models/providers/inco)
|
|
451
|
+
- [Infer by Flow7](https://mastra.ai/models/providers/infer)
|
|
452
|
+
- [Inference](https://mastra.ai/models/providers/inference)
|
|
453
|
+
- [InferX](https://mastra.ai/models/providers/inferx)
|
|
454
|
+
- [Infomaniak](https://mastra.ai/models/providers/infomaniak)
|
|
455
|
+
- [IO.NET](https://mastra.ai/models/providers/io-net)
|
|
456
|
+
- [IteraCompute](https://mastra.ai/models/providers/iteracompute)
|
|
457
|
+
- [Jalapeno Cloud](https://mastra.ai/models/providers/jalapeno)
|
|
458
|
+
- [Jiekou.AI](https://mastra.ai/models/providers/jiekou)
|
|
459
|
+
- [Kenari](https://mastra.ai/models/providers/kenari)
|
|
460
|
+
- [Kilo Gateway](https://mastra.ai/models/providers/kilo)
|
|
461
|
+
- [Kimi For Coding (kimi.ai)](https://mastra.ai/models/providers/kimi-code-plan-global)
|
|
462
|
+
- [Kimi For Coding (kimi.com)](https://mastra.ai/models/providers/kimi-code-plan-cn)
|
|
463
|
+
- [klokintegration.se](https://mastra.ai/models/providers/klokintegration)
|
|
464
|
+
- [Kosmik Compute](https://mastra.ai/models/providers/kosmik)
|
|
465
|
+
- [KUAE Cloud Coding Plan](https://mastra.ai/models/providers/kuae-cloud-coding-plan)
|
|
466
|
+
- [Lilac](https://mastra.ai/models/providers/lilac)
|
|
467
|
+
- [Llama](https://mastra.ai/models/providers/llama)
|
|
468
|
+
- [LLM Gateway](https://mastra.ai/models/providers/llmgateway-providers)
|
|
469
|
+
- [LLM Tech](https://mastra.ai/models/providers/llmtech)
|
|
470
|
+
- [LLMTR](https://mastra.ai/models/providers/llmtr)
|
|
471
|
+
- [LMStudio](https://mastra.ai/models/providers/lmstudio)
|
|
472
|
+
- [LongCat](https://mastra.ai/models/providers/longcat)
|
|
473
|
+
- [LucidQuery](https://mastra.ai/models/providers/lucidquery)
|
|
474
|
+
- [Lynkr](https://mastra.ai/models/providers/lynkr)
|
|
475
|
+
- [Meganova](https://mastra.ai/models/providers/meganova)
|
|
476
|
+
- [Melious](https://mastra.ai/models/providers/melious)
|
|
477
|
+
- [Meta](https://mastra.ai/models/providers/meta)
|
|
478
|
+
- [MiniMax (minimax.cn)](https://mastra.ai/models/providers/minimax-cn)
|
|
479
|
+
- [MiniMax (minimax.io)](https://mastra.ai/models/providers/minimax)
|
|
480
|
+
- [MiniMax Token Plan (minimax.cn)](https://mastra.ai/models/providers/minimax-cn-coding-plan)
|
|
481
|
+
- [MiniMax Token Plan (minimax.io)](https://mastra.ai/models/providers/minimax-coding-plan)
|
|
482
|
+
- [Mixlayer](https://mastra.ai/models/providers/mixlayer)
|
|
483
|
+
- [Moark](https://mastra.ai/models/providers/moark)
|
|
484
|
+
- [Modal](https://mastra.ai/models/providers/modal)
|
|
485
|
+
- [Model Oracle AI](https://mastra.ai/models/providers/model-oracle-ai)
|
|
486
|
+
- [Modelis](https://mastra.ai/models/providers/modelis)
|
|
487
|
+
- [ModelScope](https://mastra.ai/models/providers/modelscope)
|
|
488
|
+
- [Moonshot AI](https://mastra.ai/models/providers/moonshotai)
|
|
489
|
+
- [Moonshot AI (China)](https://mastra.ai/models/providers/moonshotai-cn)
|
|
490
|
+
- [Morph](https://mastra.ai/models/providers/morph)
|
|
491
|
+
- [NaN](https://mastra.ai/models/providers/nan)
|
|
492
|
+
- [NanoGPT](https://mastra.ai/models/providers/nano-gpt)
|
|
493
|
+
- [NEAR AI Cloud](https://mastra.ai/models/providers/nearai)
|
|
494
|
+
- [Nebius Token Factory](https://mastra.ai/models/providers/nebius)
|
|
495
|
+
- [NeoSmith](https://mastra.ai/models/providers/neosmith)
|
|
496
|
+
- [Neuralwatt](https://mastra.ai/models/providers/neuralwatt)
|
|
497
|
+
- [Nova](https://mastra.ai/models/providers/nova)
|
|
498
|
+
- [NovitaAI](https://mastra.ai/models/providers/novita-ai)
|
|
499
|
+
- [Nvidia](https://mastra.ai/models/providers/nvidia)
|
|
500
|
+
- [OCI Generative AI](https://mastra.ai/models/providers/oci)
|
|
501
|
+
- [Ofox](https://mastra.ai/models/providers/ofox)
|
|
502
|
+
- [Ollama Cloud](https://mastra.ai/models/providers/ollama-cloud)
|
|
503
|
+
- [OpenCode Go](https://mastra.ai/models/providers/opencode-go)
|
|
504
|
+
- [OpenCode Zen](https://mastra.ai/models/providers/opencode)
|
|
505
|
+
- [OpenReason](https://mastra.ai/models/providers/openreason)
|
|
506
|
+
- [Opper](https://mastra.ai/models/providers/opper)
|
|
507
|
+
- [OrcaRouter](https://mastra.ai/models/providers/orcarouter)
|
|
508
|
+
- [OVHcloud AI Endpoints](https://mastra.ai/models/providers/ovhcloud)
|
|
509
|
+
- [Pareto Inference](https://mastra.ai/models/providers/pareto)
|
|
510
|
+
- [Pendra](https://mastra.ai/models/providers/pendra)
|
|
511
|
+
- [Perplexity](https://mastra.ai/models/providers/perplexity)
|
|
512
|
+
- [Perplexity Agent](https://mastra.ai/models/providers/perplexity-agent)
|
|
513
|
+
- [Pioneer](https://mastra.ai/models/providers/pioneer)
|
|
514
|
+
- [Poe](https://mastra.ai/models/providers/poe)
|
|
515
|
+
- [Poolside](https://mastra.ai/models/providers/poolside)
|
|
516
|
+
- [Privatemode AI](https://mastra.ai/models/providers/privatemode-ai)
|
|
517
|
+
- [QiHang](https://mastra.ai/models/providers/qihang-ai)
|
|
518
|
+
- [Qiniu](https://mastra.ai/models/providers/qiniu-ai)
|
|
519
|
+
- [Regolo AI](https://mastra.ai/models/providers/regolo-ai)
|
|
520
|
+
- [Requesty](https://mastra.ai/models/providers/requesty)
|
|
521
|
+
- [routing.run](https://mastra.ai/models/providers/routing-run)
|
|
522
|
+
- [RunInfra](https://mastra.ai/models/providers/runinfra)
|
|
523
|
+
- [Sakana AI](https://mastra.ai/models/providers/sakana)
|
|
524
|
+
- [Sarvam AI](https://mastra.ai/models/providers/sarvam)
|
|
525
|
+
- [Scaleway](https://mastra.ai/models/providers/scaleway)
|
|
526
|
+
- [SCNet Token Plan](https://mastra.ai/models/providers/scnet-token-plan)
|
|
527
|
+
- [SCX.ai](https://mastra.ai/models/providers/scx-ai)
|
|
528
|
+
- [SenseNova (China)](https://mastra.ai/models/providers/sensenova)
|
|
529
|
+
- [SiliconFlow](https://mastra.ai/models/providers/siliconflow)
|
|
530
|
+
- [SiliconFlow (China)](https://mastra.ai/models/providers/siliconflow-cn)
|
|
531
|
+
- [Snowflake Cortex](https://mastra.ai/models/providers/snowflake-cortex)
|
|
532
|
+
- [STACKIT](https://mastra.ai/models/providers/stackit)
|
|
533
|
+
- [Standard Compute](https://mastra.ai/models/providers/standardcompute)
|
|
534
|
+
- [StepFun (China)](https://mastra.ai/models/providers/stepfun)
|
|
535
|
+
- [StepFun (Global)](https://mastra.ai/models/providers/stepfun-ai)
|
|
536
|
+
- [StepFun Step Plan (China)](https://mastra.ai/models/providers/stepfun-step-plan)
|
|
537
|
+
- [StepFun Step Plan (Global)](https://mastra.ai/models/providers/stepfun-ai-step-plan)
|
|
538
|
+
- [Subconscious](https://mastra.ai/models/providers/subconscious)
|
|
539
|
+
- [submodel](https://mastra.ai/models/providers/submodel)
|
|
540
|
+
- [Synthetic](https://mastra.ai/models/providers/synthetic)
|
|
541
|
+
- [Tempr](https://mastra.ai/models/providers/tempr)
|
|
542
|
+
- [Tencent Coding Plan (China)](https://mastra.ai/models/providers/tencent-coding-plan)
|
|
543
|
+
- [Tencent Token Plan](https://mastra.ai/models/providers/tencent-token-plan)
|
|
544
|
+
- [Tencent TokenHub](https://mastra.ai/models/providers/tencent-tokenhub)
|
|
545
|
+
- [TensorX](https://mastra.ai/models/providers/tensorx)
|
|
546
|
+
- [The Grid AI](https://mastra.ai/models/providers/the-grid-ai)
|
|
547
|
+
- [Thinking Machines](https://mastra.ai/models/providers/thinkingmachines)
|
|
548
|
+
- [Tinfoil](https://mastra.ai/models/providers/tinfoil)
|
|
549
|
+
- [Together AI](https://mastra.ai/models/providers/togetherai)
|
|
550
|
+
- [TokenGo](https://mastra.ai/models/providers/tokengo)
|
|
551
|
+
- [TokenRouter](https://mastra.ai/models/providers/tokenrouter)
|
|
552
|
+
- [TrustedRouter](https://mastra.ai/models/providers/trustedrouter)
|
|
553
|
+
- [Umans AI](https://mastra.ai/models/providers/umans-ai)
|
|
554
|
+
- [Umans AI Coding Plan](https://mastra.ai/models/providers/umans-ai-coding-plan)
|
|
555
|
+
- [UnoRouter](https://mastra.ai/models/providers/unorouter)
|
|
556
|
+
- [Upstage](https://mastra.ai/models/providers/upstage)
|
|
557
|
+
- [Vancine](https://mastra.ai/models/providers/vancine)
|
|
558
|
+
- [Vispark](https://mastra.ai/models/providers/vispark)
|
|
559
|
+
- [Vivgrid](https://mastra.ai/models/providers/vivgrid)
|
|
560
|
+
- [Volcengine Ark](https://mastra.ai/models/providers/volcengine)
|
|
561
|
+
- [Volcengine Ark Coding Plan](https://mastra.ai/models/providers/volcengine-coding-plan)
|
|
562
|
+
- [Vultr](https://mastra.ai/models/providers/vultr)
|
|
563
|
+
- [Wafer](https://mastra.ai/models/providers/wafer.ai)
|
|
564
|
+
- [Wallaby](https://mastra.ai/models/providers/wallaby)
|
|
565
|
+
- [Xiaomi](https://mastra.ai/models/providers/xiaomi)
|
|
566
|
+
- [Xiaomi Token Plan (China)](https://mastra.ai/models/providers/xiaomi-token-plan-cn)
|
|
567
|
+
- [Xiaomi Token Plan (Europe)](https://mastra.ai/models/providers/xiaomi-token-plan-ams)
|
|
568
|
+
- [Xiaomi Token Plan (Singapore)](https://mastra.ai/models/providers/xiaomi-token-plan-sgp)
|
|
569
|
+
- [Xpersona](https://mastra.ai/models/providers/xpersona)
|
|
570
|
+
- [Z.AI](https://mastra.ai/models/providers/zai)
|
|
571
|
+
- [Z.AI Coding Plan](https://mastra.ai/models/providers/zai-coding-plan)
|
|
572
|
+
- [Zeldoc](https://mastra.ai/models/providers/zeldoc)
|
|
573
|
+
- [Zenifra](https://mastra.ai/models/providers/zenifra)
|
|
574
|
+
- [ZenMux](https://mastra.ai/models/providers/zenmux)
|
|
575
|
+
- [Zhipu AI](https://mastra.ai/models/providers/zhipuai)
|
|
576
|
+
- [Zhipu AI Coding Plan](https://mastra.ai/models/providers/zhipuai-coding-plan)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# 302.AI
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 121 302.AI models through Mastra's model router. Authentication is handled automatically using the `302AI_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [302.AI documentation](https://doc.302.ai).
|
|
10
10
|
|
|
@@ -49,6 +49,7 @@ for await (const chunk of stream) {
|
|
|
49
49
|
| `302ai/claude-opus-4-7-thinking` | 1.0M | | | | | | $5 | $25 |
|
|
50
50
|
| `302ai/claude-opus-4-8` | 1.0M | | | | | | $5 | $25 |
|
|
51
51
|
| `302ai/claude-opus-5` | 1.0M | | | | | | $5 | $25 |
|
|
52
|
+
| `302ai/claude-opus-5-5` | 1.0M | | | | | | $4 | $20 |
|
|
52
53
|
| `302ai/claude-opus-5-thinking` | 1.0M | | | | | | $5 | $25 |
|
|
53
54
|
| `302ai/claude-sonnet-4-5-20250929` | 200K | | | | | | $3 | $15 |
|
|
54
55
|
| `302ai/claude-sonnet-4-5-20250929-thinking` | 200K | | | | | | $3 | $15 |
|
|
@@ -117,6 +118,8 @@ for await (const chunk of stream) {
|
|
|
117
118
|
| `302ai/gpt-5.6-terra` | 1.1M | | | | | | $2 | $12 |
|
|
118
119
|
| `302ai/gpt-5.6-terra-pro` | 1.1M | | | | | | $2 | $12 |
|
|
119
120
|
| `302ai/gpt-6-astra` | 1.1M | | | | | | $10 | $50 |
|
|
121
|
+
| `302ai/gpt-6-luna` | 1.1M | | | | | | $0.10 | $0.50 |
|
|
122
|
+
| `302ai/gpt-6-sol` | 1.1M | | | | | | $2 | $10 |
|
|
120
123
|
| `302ai/grok-4-1-fast-reasoning` | 2.0M | | | | | | $0.20 | $0.50 |
|
|
121
124
|
| `302ai/grok-4-fast-non-reasoning` | 2.0M | | | | | | $0.20 | $0.50 |
|
|
122
125
|
| `302ai/grok-4-fast-reasoning` | 2.0M | | | | | | $0.20 | $0.50 |
|
|
@@ -125,6 +128,7 @@ for await (const chunk of stream) {
|
|
|
125
128
|
| `302ai/grok-4.3` | 1.0M | | | | | | $1 | $3 |
|
|
126
129
|
| `302ai/grok-4.5` | 500K | | | | | | $2 | $6 |
|
|
127
130
|
| `302ai/grok-4.6` | 500K | | | | | | $2 | $6 |
|
|
131
|
+
| `302ai/grok-4.7` | 500K | | | | | | $2 | $6 |
|
|
128
132
|
| `302ai/kimi-k2-0905-preview` | 262K | | | | | | $0.63 | $3 |
|
|
129
133
|
| `302ai/kimi-k2-thinking` | 262K | | | | | | $0.57 | $2 |
|
|
130
134
|
| `302ai/kimi-k2.5` | 262K | | | | | | $0.66 | $3 |
|