@mastra/mcp-docs-server 1.3.12 → 1.3.13-alpha.0
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/auth/simple-auth.md +8 -8
- package/.docs/docs/connections/mcp.md +99 -0
- package/.docs/docs/guides/authentication-identity.md +4 -0
- package/.docs/docs/harness/goals.md +1 -1
- package/.docs/docs/knowledge/agents-and-tools.md +122 -0
- package/.docs/docs/knowledge/load-your-content.md +86 -0
- package/.docs/docs/knowledge/overview.md +106 -0
- package/.docs/docs/knowledge/patterns.md +167 -0
- package/.docs/docs/knowledge/pinned-context.md +177 -0
- package/.docs/docs/knowledge/scopes-and-access.md +202 -0
- package/.docs/docs/knowledge/search.md +63 -0
- package/.docs/docs/memory/observational-memory.md +23 -23
- package/.docs/docs/memory/overview.md +19 -7
- package/.docs/docs/server/custom-adapters.md +4 -0
- package/.docs/docs/server/request-context.md +6 -6
- package/.docs/docs/server/server-adapters.md +12 -12
- package/.docs/docs/studio/knowledge.md +45 -24
- package/.docs/docs/studio/overview.md +3 -1
- package/.docs/models/gateways/netlify.md +3 -1
- package/.docs/models/gateways/vercel.md +2 -1
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/baseten.md +2 -1
- package/.docs/models/providers/edenai.md +7 -7
- package/.docs/models/providers/inceptron.md +3 -3
- package/.docs/models/providers/kilo.md +10 -15
- package/.docs/models/providers/llmgateway-providers.md +8 -4
- package/.docs/models/providers/llmgateway.md +2 -2
- package/.docs/models/providers/modular.md +6 -6
- package/.docs/models/providers/nano-gpt.md +10 -11
- package/.docs/models/providers/opencode.md +2 -1
- package/.docs/models/providers/ovhcloud.md +1 -2
- package/.docs/models/providers/tinfoil.md +2 -2
- package/.docs/models/providers/togetherai.md +2 -1
- package/.docs/models/providers/wandb.md +2 -1
- package/.docs/reference/agents/agent.md +1 -1
- package/.docs/reference/agents/generate.md +1 -1
- package/.docs/reference/agents/getLLM.md +1 -1
- package/.docs/reference/agents/getMetadata.md +1 -1
- package/.docs/reference/agents/getModel.md +4 -2
- package/.docs/reference/agents/getSkill.md +1 -1
- package/.docs/reference/agents/listScorers.md +1 -1
- package/.docs/reference/agents/listTools.md +1 -1
- package/.docs/reference/auth/better-auth.md +2 -2
- package/.docs/reference/channels/slack-provider.md +1 -1
- package/.docs/reference/client-js/observability.md +67 -2
- package/.docs/reference/connect/tools.md +5 -1
- package/.docs/reference/core/addDynamicWorkflow.md +1 -1
- package/.docs/reference/core/addGateway.md +1 -1
- package/.docs/reference/core/getAgent.md +4 -2
- package/.docs/reference/core/getEditor.md +1 -1
- package/.docs/reference/core/getGateway.md +1 -1
- package/.docs/reference/core/getMemory.md +2 -2
- package/.docs/reference/core/getStorage.md +1 -1
- package/.docs/reference/core/listMemory.md +3 -3
- package/.docs/reference/core/listScorers.md +2 -2
- package/.docs/reference/core/listVectors.md +1 -1
- package/.docs/reference/evals/completeness.md +0 -1
- package/.docs/reference/evals/content-similarity.md +1 -3
- package/.docs/reference/evals/create-scorer.md +5 -3
- package/.docs/reference/evals/faithfulness.md +1 -1
- package/.docs/reference/evals/hallucination.md +2 -2
- package/.docs/reference/evals/noise-sensitivity.md +8 -1
- package/.docs/reference/evals/scorer-utils.md +1 -1
- package/.docs/reference/index.md +7 -0
- package/.docs/reference/knowledge/knowledge-class.md +296 -0
- package/.docs/reference/knowledge/knowledge-memory-scopes.md +78 -0
- package/.docs/reference/knowledge/knowledge-tools.md +299 -0
- package/.docs/reference/knowledge/limits.md +44 -0
- package/.docs/reference/knowledge/scope-declarations.md +275 -0
- package/.docs/reference/knowledge/tool-instructions.md +56 -0
- package/.docs/reference/logging/pino-logger.md +1 -1
- package/.docs/reference/memory/observational-memory.md +9 -7
- package/.docs/reference/observability/feedback.md +3 -1
- package/.docs/reference/processors/batch-parts-processor.md +0 -2
- package/.docs/reference/processors/message-history-processor.md +1 -1
- package/.docs/reference/processors/moderation-processor.md +1 -1
- package/.docs/reference/processors/semantic-recall-processor.md +1 -1
- package/.docs/reference/processors/stream-error-retry-processor.md +1 -1
- package/.docs/reference/processors/token-limiter-processor.md +1 -1
- package/.docs/reference/processors/tool-search-processor.md +1 -1
- package/.docs/reference/schedules/overview.md +3 -3
- package/.docs/reference/server/invoke-route.md +86 -0
- package/.docs/reference/server/koa-adapter.md +1 -1
- package/.docs/reference/server/routes.md +63 -0
- package/.docs/reference/streaming/ChunkType.md +3 -1
- package/.docs/reference/streaming/agents/stream.md +1 -1
- package/.docs/reference/streaming/workflows/resumeStream.md +1 -1
- package/.docs/reference/tools/mcp-client.md +4 -0
- package/.docs/reference/tools/vector-query-tool.md +3 -3
- package/.docs/reference/workflows/run-methods/start.md +1 -1
- package/.docs/reference/workflows/run-methods/timeTravel.md +1 -1
- package/.docs/reference/workflows/workflow.md +2 -0
- package/.docs/reference/workspace/sandbox.md +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-BDrEqwuY.js → src-CwUXyWAK.js} +3 -3
- package/dist/src-CwUXyWAK.js.map +1 -0
- package/dist/stdio.js +1 -1
- package/dist/tools/embedded-docs.d.ts.map +1 -1
- package/package.json +4 -4
- package/dist/src-BDrEqwuY.js.map +0 -1
|
@@ -9,8 +9,7 @@ Memory gives your agent access to earlier messages and tool results. The agent c
|
|
|
9
9
|
Mastra agents can be configured to store [message history](https://mastra.ai/docs/memory/message-history). Additionally, you can enable:
|
|
10
10
|
|
|
11
11
|
- [Observational Memory](https://mastra.ai/docs/memory/observational-memory) (Recommended): Uses background agents to maintain a dense observation log that replaces raw message history as it grows. This keeps the context window small while preserving long-term memory.
|
|
12
|
-
- [Working memory](https://mastra.ai/docs/memory/working-memory): Stores persistent, structured user
|
|
13
|
-
- [Semantic recall](https://mastra.ai/docs/memory/semantic-recall): Retrieves relevant past messages based on semantic meaning rather than exact keywords.
|
|
12
|
+
- [Working memory](https://mastra.ai/docs/memory/working-memory): Stores persistent, structured information about the user, the application, or the task, such as names, preferences, and goals.
|
|
14
13
|
- [Multi-user threads](https://mastra.ai/docs/memory/multi-user-threads): Share one thread between multiple users.
|
|
15
14
|
|
|
16
15
|
If the combined memory exceeds the model's context limit, [memory processors](https://mastra.ai/docs/memory/memory-processors) can filter, trim, or prioritize content so the most relevant information is preserved.
|
|
@@ -161,7 +160,7 @@ const response = await memoryAgent.generate('Remember my favorite color is blue.
|
|
|
161
160
|
})
|
|
162
161
|
```
|
|
163
162
|
|
|
164
|
-
Scopes can also come from the
|
|
163
|
+
Scopes can also come from the request context and from the agent. Scopes from the call and the request context arrive first. The agent's `scopes` option then adds a list to them, or a function receives them and returns the run's final set:
|
|
165
164
|
|
|
166
165
|
```typescript
|
|
167
166
|
import { Agent } from '@mastra/core/agent'
|
|
@@ -170,10 +169,10 @@ import { Memory } from '@mastra/memory'
|
|
|
170
169
|
export const memoryAgent = new Agent({
|
|
171
170
|
id: 'memory-agent',
|
|
172
171
|
name: 'Memory Agent',
|
|
173
|
-
scopes: ({ requestContext }) => {
|
|
172
|
+
scopes: ({ scopes, requestContext }) => {
|
|
174
173
|
// Set by your auth middleware. Request bodies can fill unreserved keys.
|
|
175
174
|
const orgId = requestContext.get('org-id')
|
|
176
|
-
return orgId ? [`org:${orgId}`] :
|
|
175
|
+
return orgId ? [...scopes, `org:${orgId}`] : scopes
|
|
177
176
|
},
|
|
178
177
|
memory: new Memory(),
|
|
179
178
|
})
|
|
@@ -181,7 +180,7 @@ export const memoryAgent = new Agent({
|
|
|
181
180
|
|
|
182
181
|
The resolver's inputs must come from the server, not the client: a request body can set any request context key that isn't reserved. Trusted server middleware can also set scopes directly with the `MASTRA_SCOPES_KEY` request context key. Visit [Request Context](https://mastra.ai/docs/server/request-context) for details. Clients can't send scopes in a request body.
|
|
183
182
|
|
|
184
|
-
You can mix scopes with `memory.resource`, `memory.thread`, or the resource and thread request context keys, as long as they agree. If a `resource:` or `thread:` scope names a different value than another source, the call throws an error.
|
|
183
|
+
You can mix scopes with `memory.resource`, `memory.thread`, or the resource and thread request context keys, as long as they agree. If a `resource:` or `thread:` scope names a different value than another source, the call throws an error. A `scopes` function must also return every `resource:` and `thread:` scope it receives. Dropping one throws an error.
|
|
185
184
|
|
|
186
185
|
Tools, processors, and subagents receive the run's other scopes, but not its `resource:` and `thread:` scopes. Each nested agent call picks its own resource and thread.
|
|
187
186
|
|
|
@@ -189,6 +188,8 @@ Tools, processors, and subagents receive the run's other scopes, but not its `re
|
|
|
189
188
|
|
|
190
189
|
Long conversations can fill the context window with raw message history and reduce agent performance. [Observational Memory](https://mastra.ai/docs/memory/observational-memory) uses background agents to compress older messages into observations. This reduces the context used by message history while retaining information for later turns.
|
|
191
190
|
|
|
191
|
+
Compression loses exact wording, so Observational Memory can register a `recall` tool that goes back to the original messages. The tool is off by default: set `retrieval: true` to enable browsing, which lists earlier messages across the resource's threads unless you pass `scope: 'thread'`. With `retrieval: { vector: true }` plus a vector store and embedder on `Memory`, it can also search by meaning. That search matches observation groups rather than raw messages, so a detail the summary dropped may not turn up, and each hit links back to the messages it came from. See [retrieval mode](https://mastra.ai/docs/memory/observational-memory).
|
|
192
|
+
|
|
192
193
|
**For AI agents:** Using Observational Memory requires a storage provider! You either need to set it on the Mastra instance at `src/mastra/index.ts` or pass it to the Agent constructor.
|
|
193
194
|
|
|
194
195
|
```typescript
|
|
@@ -302,4 +303,15 @@ Visit [Request Context](https://mastra.ai/docs/server/request-context) for more
|
|
|
302
303
|
- [`Memory` reference](https://mastra.ai/reference/memory/memory-class)
|
|
303
304
|
- [Tracing](https://mastra.ai/docs/observability/tracing/overview)
|
|
304
305
|
- [Request Context](https://mastra.ai/docs/server/request-context)
|
|
305
|
-
- [Mastra Code](https://code.mastra.ai/): A coding agent using Mastra's memory system
|
|
306
|
+
- [Mastra Code](https://code.mastra.ai/): A coding agent using Mastra's memory system
|
|
307
|
+
|
|
308
|
+
**For AI agents:** Observational Memory has a few failure modes that cause real problems.
|
|
309
|
+
|
|
310
|
+
- Thread scope requires a `threadId` when you call the agent. Without one, Observational Memory throws.
|
|
311
|
+
- On an existing thread, the first turn loads every stored message until the first observation completes. A large thread pays a one-time context cost.
|
|
312
|
+
- `lastMessages` does nothing under Observational Memory. It replaces raw history itself, so the MessageHistory processor is skipped.
|
|
313
|
+
- Leave `observation.observeOnContextOverflow` at its default `true`. When the main model's context overflows, it can activate buffered observations, observe pending messages, and retry the request. It skips read-only requests and only retries when it observed or activated something. With it off, the overflowing request fails.
|
|
314
|
+
- Some invalid options are validated on first use, not when you construct `Memory`. For example, `shareTokenBudget: true` with async buffering enabled fails on the first memory operation. Read the error instead of retrying.
|
|
315
|
+
- With async buffering, work continues in the background. Call `await memory.settled()` before closing storage or shutting down, or that work is lost.
|
|
316
|
+
- The observation mutex only works inside one process. Across processes, coordination comes from a shared PubSub backend and storage: the agent loop uses a backend with leases to run one loop per thread, and the Observer runs inside that loop. Configure every process with the same backend with leases and the same storage. See [Running across processes](https://mastra.ai/docs/signals/running-across-processes).
|
|
317
|
+
- Debug with `OM_DEBUG=1`, which writes `om-debug.log`, plus `getStatus()` and the `onDebugEvent` callback.
|
|
@@ -334,6 +334,10 @@ constructor(options: {
|
|
|
334
334
|
bodyLimitOptions?: BodyLimitOptions;
|
|
335
335
|
streamOptions?: StreamOptions;
|
|
336
336
|
customRouteAuthConfig?: Map<string, boolean>;
|
|
337
|
+
tools?: ToolsInput;
|
|
338
|
+
taskStore?: InMemoryTaskStore;
|
|
339
|
+
customApiRoutes?: ApiRoute[];
|
|
340
|
+
mcpOptions?: MCPOptions;
|
|
337
341
|
}) {
|
|
338
342
|
super(options);
|
|
339
343
|
}
|
|
@@ -290,12 +290,12 @@ requestContext.set(MASTRA_RESOURCE_ID_KEY, user.id)
|
|
|
290
290
|
requestContext.set(MASTRA_THREAD_ID_KEY, threadId)
|
|
291
291
|
```
|
|
292
292
|
|
|
293
|
-
| Key | Purpose
|
|
294
|
-
| --------------------------- |
|
|
295
|
-
| `MASTRA_RESOURCE_ID_KEY` | Forces all memory operations to use this resource ID. The server validates that accessed threads belong to this resource and returns 403 if not.
|
|
296
|
-
| `MASTRA_THREAD_ID_KEY` | Forces thread operations to use this thread ID, overriding client-provided values
|
|
297
|
-
| `MASTRA_SCOPES_KEY` | Sets the [scopes](https://mastra.ai/docs/memory/overview) the agent run acts as, as an array of `<type>:<value>` strings. Combined with the agent's `scopes` and
|
|
298
|
-
| `MASTRA_MESSAGE_AUTHOR_KEY` | Names who sent a user message as `{ id, name?, avatarUrl? }`. Agent-controller sessions persist it at `content.metadata.signal.author` and mirror it to `providerMetadata.mastra.author` for compatibility, so a thread shared by several people can show who wrote what.
|
|
293
|
+
| Key | Purpose |
|
|
294
|
+
| --------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
295
|
+
| `MASTRA_RESOURCE_ID_KEY` | Forces all memory operations to use this resource ID. The server validates that accessed threads belong to this resource and returns 403 if not. |
|
|
296
|
+
| `MASTRA_THREAD_ID_KEY` | Forces thread operations to use this thread ID, overriding client-provided values |
|
|
297
|
+
| `MASTRA_SCOPES_KEY` | Sets the [scopes](https://mastra.ai/docs/memory/overview) the agent run acts as, as an array of `<type>:<value>` strings. Combined with per-call `scopes`; the agent's `scopes` list adds to them, and a `scopes` function replaces them. A `resource:` or `thread:` scope that conflicts with another resource or thread value returns a 400 error. |
|
|
298
|
+
| `MASTRA_MESSAGE_AUTHOR_KEY` | Names who sent a user message as `{ id, name?, avatarUrl? }`. Agent-controller sessions persist it at `content.metadata.signal.author` and mirror it to `providerMetadata.mastra.author` for compatibility, so a thread shared by several people can show who wrote what. |
|
|
299
299
|
|
|
300
300
|
Server ownership checks read only `MASTRA_RESOURCE_ID_KEY` and `MASTRA_THREAD_ID_KEY`. If your middleware sets identity through `MASTRA_SCOPES_KEY` and you want those checks, set `MASTRA_RESOURCE_ID_KEY` too:
|
|
301
301
|
|
|
@@ -594,12 +594,13 @@ When using server adapters, configuration comes from two places: the Mastra `ser
|
|
|
594
594
|
|
|
595
595
|
The adapter reads these settings from `mastra.getServer()`:
|
|
596
596
|
|
|
597
|
-
| Option | Description
|
|
598
|
-
| --------------- |
|
|
599
|
-
| `auth` | Authentication config, used by `registerAuthMiddleware()`.
|
|
600
|
-
| `
|
|
601
|
-
| `
|
|
602
|
-
| `
|
|
597
|
+
| Option | Description |
|
|
598
|
+
| --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
599
|
+
| `auth` | Authentication config, used by `registerAuthMiddleware()`. |
|
|
600
|
+
| `apiRoutes` | Custom [`registerApiRoute()`](https://mastra.ai/reference/server/register-api-route) routes, registered by `registerCustomApiRoutes()` and added to the OpenAPI spec when `openapiPath` is set. The adapter constructor `customApiRoutes` option overrides this list. |
|
|
601
|
+
| `bodySizeLimit` | Default body size limit in bytes. Can be overridden per-adapter via `bodyLimitOptions`. |
|
|
602
|
+
| `onError` | Custom error handler called when an unhandled error occurs in a route handler. See [server.onError](https://mastra.ai/reference/configuration). |
|
|
603
|
+
| `middleware` | User [middleware](https://mastra.ai/docs/server/middleware), registered by `registerUserMiddleware()`. Hono-based adapters run it; Elysia, Express, Fastify, Koa, and NestJS log a warning because Hono handlers can't run there. |
|
|
603
604
|
|
|
604
605
|
### Adapter constructor only
|
|
605
606
|
|
|
@@ -618,12 +619,11 @@ These options are passed directly to the adapter constructor and aren't read fro
|
|
|
618
619
|
|
|
619
620
|
These `server` config options are only used by `mastra build` and have no effect when using adapters directly:
|
|
620
621
|
|
|
621
|
-
| Option | Used by
|
|
622
|
-
| -------------- |
|
|
623
|
-
| `port`, `host` | `mastra dev`, `mastra build`
|
|
624
|
-
| `cors` | `mastra build` adds CORS middleware
|
|
625
|
-
| `timeout` | `mastra build`
|
|
626
|
-
| `apiRoutes` | `registerApiRoute()` for `mastra build` |
|
|
622
|
+
| Option | Used by |
|
|
623
|
+
| -------------- | ----------------------------------- |
|
|
624
|
+
| `port`, `host` | `mastra dev`, `mastra build` |
|
|
625
|
+
| `cors` | `mastra build` adds CORS middleware |
|
|
626
|
+
| `timeout` | `mastra build` |
|
|
627
627
|
|
|
628
628
|
When using adapters, configure these features directly with your framework. For example, add CORS middleware using Hono's or Express's built-in CORS packages, and set the port when calling your framework's listen function.
|
|
629
629
|
|
|
@@ -4,43 +4,59 @@
|
|
|
4
4
|
|
|
5
5
|
# Knowledge
|
|
6
6
|
|
|
7
|
-
Studio
|
|
7
|
+
Studio's Knowledge page shows what your agents know: every scope and page, how they link, and who wrote what. Use it to check content you loaded and to watch agents' edits as they happen. It's read-only.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
The routes that feed it are **off by default**. Until you enable them, the Knowledge page in Studio shows an explainer saying Knowledge browsing isn't enabled.
|
|
9
|
+
> **Alpha:** Knowledge is in alpha. Its API may change between releases.
|
|
12
10
|
|
|
13
11
|
## Enable the routes
|
|
14
12
|
|
|
15
|
-
Register the Knowledge routes
|
|
13
|
+
The Knowledge routes are **off by default**. Until you enable them, Studio's Knowledge page says browsing isn't enabled. Register the Knowledge instance on `Mastra` and add the routes:
|
|
16
14
|
|
|
17
15
|
```typescript
|
|
18
|
-
import { Mastra } from '@mastra/core'
|
|
16
|
+
import { Mastra } from '@mastra/core/mastra'
|
|
19
17
|
import { KNOWLEDGE_ROUTES } from '@mastra/server/server-adapter'
|
|
18
|
+
import { knowledge } from './knowledge'
|
|
19
|
+
import { supportAgent } from './agents/support-agent'
|
|
20
20
|
|
|
21
21
|
export const mastra = new Mastra({
|
|
22
|
+
agents: { supportAgent },
|
|
23
|
+
knowledge: { company: knowledge },
|
|
22
24
|
server: { apiRoutes: [...KNOWLEDGE_ROUTES] },
|
|
23
25
|
})
|
|
24
26
|
```
|
|
25
27
|
|
|
26
|
-
|
|
28
|
+
The routes mount under your server's API prefix, `/api/knowledge` by default, and need `@mastra/core` 1.81.0 or later. With 1.81.0, Studio counts links only among the pages it has loaded. [Server routes](https://mastra.ai/reference/server/routes) lists each route, its parameters and its errors.
|
|
29
|
+
|
|
30
|
+
## What you see
|
|
31
|
+
|
|
32
|
+
- **Tree**: every scope and the pages inside it, nested the way your agents organized them.
|
|
33
|
+
- **Graph**: the same pages and how they connect. Lines show each page's parent, the pages its notes mention, the links written in its body, and which scopes grant access to which. A legend names each kind of line. Select a page in either view to open it.
|
|
34
|
+
- **Page**: the body, version and who last updated it, its notes with their authors, its child pages, the notes on other pages that mention it, and who it's pinned for.
|
|
35
|
+
- **Activity**: each page's history of creates, edits, moves, merges, notes and pins, with the author and time of each.
|
|
36
|
+
- **Search**: over page names, descriptions, bodies and note text.
|
|
37
|
+
|
|
38
|
+
On narrow screens the tree and graph share one panel, with a toggle between them that keeps the selected page.
|
|
39
|
+
|
|
40
|
+
When an agent writes, the tree, graph and open page update as it happens, without a reload. Studio follows writes made through the Knowledge instance registered with Mastra. Writes from another process or another instance on the same storage show up after a reload.
|
|
27
41
|
|
|
28
|
-
|
|
29
|
-
| -------------------------------------------- | ------------------------------------------------------------------------------------------------------------------ |
|
|
30
|
-
| `GET /knowledge` | The Knowledge instances you can read |
|
|
31
|
-
| `GET /knowledge/:knowledgeKey/tree` | The root scopes, or the child scopes and pages under `parentId` |
|
|
32
|
-
| `GET /knowledge/:knowledgeKey/pages/:pageId` | One page with its ancestors, notes, pin and referenced pages |
|
|
33
|
-
| `GET /knowledge/:knowledgeKey/graph` | A bounded graph of pages with parent and mention edges |
|
|
34
|
-
| `GET /knowledge/:knowledgeKey/search` | Pages and notes matching a query |
|
|
35
|
-
| `GET /knowledge/:knowledgeKey/activity` | Recent changes, optionally for one scope or page |
|
|
36
|
-
| `GET /knowledge/:knowledgeKey/events` | A Server-Sent Events stream of the writes the caller can read, which Studio follows to show changes as they happen |
|
|
42
|
+

|
|
37
43
|
|
|
38
|
-
|
|
44
|
+
Hover over or select a page in the graph to draw its links: solid green lines for the pages it links to, dashed orange lines for the pages that link to it.
|
|
45
|
+
|
|
46
|
+

|
|
47
|
+
|
|
48
|
+
Focus a page to see only it, its parent and its child pages.
|
|
49
|
+
|
|
50
|
+

|
|
51
|
+
|
|
52
|
+
In an agent's chat, Knowledge tool calls show the pages they read or wrote, and pinned pages show what the run received. Both link to the page in this view.
|
|
53
|
+
|
|
54
|
+
## Control who sees what
|
|
39
55
|
|
|
40
56
|
What the routes return depends on whether your app configures auth (`server.auth` or `studio.auth`):
|
|
41
57
|
|
|
42
|
-
- **No auth:** the routes read as the instance owner and return every scope, page and note.
|
|
43
|
-
- **Auth:** the routes return only what the signed-in
|
|
58
|
+
- **No auth:** the routes read as the instance owner and return every scope, page and note to anyone who can reach the server. Use this only for a local or test project, and add auth before you deploy.
|
|
59
|
+
- **Auth:** the routes return only what the signed-in user can read. In `authorize`, set the request context key `MASTRA_KNOWLEDGE_PRINCIPALS_KEY` to the user's Knowledge scopes. Knowledge applies the same access rules agents use. In the alpha, these rules aren't an [isolation boundary](https://mastra.ai/docs/knowledge/scopes-and-access), so don't store content that must never reach another user.
|
|
44
60
|
|
|
45
61
|
```typescript
|
|
46
62
|
import { Mastra } from '@mastra/core/mastra'
|
|
@@ -69,13 +85,18 @@ export const mastra = new Mastra({
|
|
|
69
85
|
})
|
|
70
86
|
```
|
|
71
87
|
|
|
88
|
+
If you set a different prefix, change the `/api/knowledge` check in `authorize` to match. Otherwise the key isn't set and the routes return `403`.
|
|
89
|
+
|
|
72
90
|
An `authorize` function replaces the server's rules and role checks for every route, so keep your app's existing decision for the other paths, as above. Returning `true` for everything would let any signed-in user call any route.
|
|
73
91
|
|
|
74
|
-
Set the value to
|
|
92
|
+
Set the value to an array of scopes, or `'all'` for someone who should see the whole instance. An empty array reads nothing. See [Knowledge access and errors](https://mastra.ai/reference/server/routes) for what other values return. If you configure `studio.auth`, Studio requests use it instead of `server.auth`, so set the key in that `authorize`.
|
|
75
93
|
|
|
76
|
-
|
|
94
|
+
### Deployment notes
|
|
77
95
|
|
|
78
|
-
- **No auth configured:** the routes are open to anyone who can reach the server and read the whole instance. Enable them only where Studio itself is private.
|
|
79
96
|
- **No RBAC provider:** the `knowledge:read` check is skipped, so any authenticated user with a principal mapping can read the pages those principals cover, in every instance.
|
|
80
|
-
- **With an FGA provider:** Knowledge
|
|
81
|
-
- **NestJS:** the NestJS adapter doesn't serve the Knowledge routes yet.
|
|
97
|
+
- **With an FGA provider:** each Knowledge instance is checked separately with `knowledge:read`. A user sees only the instances you grant. See [Knowledge access and errors](https://mastra.ai/reference/server/routes).
|
|
98
|
+
- **NestJS:** the NestJS adapter doesn't serve the Knowledge routes yet.
|
|
99
|
+
|
|
100
|
+
## Build your own view
|
|
101
|
+
|
|
102
|
+
To show Knowledge changes in your own app, subscribe with [`knowledge.onChange()`](https://mastra.ai/reference/knowledge/knowledge-class). Events carry IDs, not content. Read the page again under the user's scopes before you show it to them. A `page` `delete` event can't be read again, so remove the page from your view. A `page` `merge` event's `pageId` is the target, so also remove the merged-away page in `sourceId`. A `scope` event is sent for a new scope only, not for its child scopes or template pages, so list the scope again to find them.
|
|
@@ -63,6 +63,8 @@ CSV exports contain plain cell text, including link labels rather than URLs. Foo
|
|
|
63
63
|
|
|
64
64
|
You can also attach [scorers](#scorers) to measure and compare response quality over time.
|
|
65
65
|
|
|
66
|
+
To ask about part of a response, select the text in the message and choose **Add to chat**, or press Tab to reach it from the keyboard. Each passage you add gets a numbered comment bubble in the chat, and the message box counts them, for example **2 annotations**. Select a bubble to write a comment on that passage or remove it, or open the count to find a passage in the chat. When you send, the agent receives a numbered list of the passages, each quoted with its comment, ahead of what you type. You can also send the annotations without typing anything. A selection that spans two messages doesn't offer **Add to chat**.
|
|
67
|
+
|
|
66
68
|
You can send a follow-up message in the same thread during an agent response stream. Studio shows the message as pending until the stream confirms it, then continues the response below that follow-up. Other Studio tabs that have the same thread open can observe the active stream.
|
|
67
69
|
|
|
68
70
|
Use [Editor](https://mastra.ai/docs/studio/editor) to let non-technical team members iterate on agents and version every change, plus run experiments without redeploying.
|
|
@@ -73,7 +75,7 @@ Use [Agent Builder](https://agent-builder.mastra.ai) to create and manage fully
|
|
|
73
75
|
|
|
74
76
|
Open an agent's **Models** panel to view its primary model and fallback models in priority order. For static model lists, you can reorder models, enable or disable fallbacks, and change the provider or model. The panel stays synchronized when Studio refetches the agent.
|
|
75
77
|
|
|
76
|
-
|
|
78
|
+
When the agent sets `editor: { model: true }`, these edits are saved through [Editor](https://mastra.ai/docs/studio/editor). This requires a configured `MastraEditor` and agent storage; without either, saving fails with HTTP 500. Otherwise they change the running server's in-memory agent and are lost when the server restarts. Persistent editing for other agents is tracked in [GitHub issue #27089](https://github.com/mastra-ai/mastra/issues/27089).
|
|
77
79
|
|
|
78
80
|
Function-valued model lists can vary by request context, so Studio displays them as read-only. Change a dynamic model list in code instead.
|
|
79
81
|
|
|
@@ -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 282 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
|
|
|
@@ -216,6 +216,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
216
216
|
| `openrouter/moonshotai/kimi-k2.6` |
|
|
217
217
|
| `openrouter/moonshotai/kimi-k2.7-code` |
|
|
218
218
|
| `openrouter/moonshotai/kimi-k3` |
|
|
219
|
+
| `openrouter/moonshotai/kimi-k3.1-pro` |
|
|
219
220
|
| `openrouter/morph/morph-v3-fast` |
|
|
220
221
|
| `openrouter/morph/morph-v3-large` |
|
|
221
222
|
| `openrouter/nousresearch/hermes-4-405b` |
|
|
@@ -281,6 +282,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
281
282
|
| `openrouter/tencent/hy-mt2-30b-a3b` |
|
|
282
283
|
| `openrouter/tencent/hy-mt2-7b` |
|
|
283
284
|
| `openrouter/tencent/hy3` |
|
|
285
|
+
| `openrouter/tencent/hy4` |
|
|
284
286
|
| `openrouter/tencent/hy4-preview` |
|
|
285
287
|
| `openrouter/thedrummer/cydonia-24b-v4.1` |
|
|
286
288
|
| `openrouter/thedrummer/skyfall-36b-v2` |
|
|
@@ -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 417 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
|
|
|
@@ -413,6 +413,7 @@ ANTHROPIC_API_KEY=ant-...
|
|
|
413
413
|
| `tencent/hy-mt2-plus` |
|
|
414
414
|
| `tencent/hy-mt2-pro` |
|
|
415
415
|
| `tencent/hy3` |
|
|
416
|
+
| `tencent/hy4` |
|
|
416
417
|
| `tencent/hy4-preview` |
|
|
417
418
|
| `thinkingmachines/inkling` |
|
|
418
419
|
| `thinkingmachines/inkling-small` |
|
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 8237 models from 223 providers through a single API.
|
|
8
8
|
|
|
9
9
|
## Features
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
# Baseten
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 15 Baseten models through Mastra's model router. Authentication is handled automatically using the `BASETEN_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Baseten documentation](https://docs.baseten.co).
|
|
10
10
|
|
|
@@ -45,6 +45,7 @@ for await (const chunk of stream) {
|
|
|
45
45
|
| `baseten/deepseek-ai/DeepSeek-V4.1-Flash-1017-Fast` | 1.0M | | | | | | $0.60 | $2 |
|
|
46
46
|
| `baseten/deepseek-ai/DeepSeek-V4.1-Flash-Fast` | 1.0M | | | | | | $0.60 | $2 |
|
|
47
47
|
| `baseten/moonshotai/Kimi-K3` | 1.0M | | | | | | $3 | $15 |
|
|
48
|
+
| `baseten/moonshotai/Kimi-K3.1-Pro` | 1.0M | | | | | | $2 | $10 |
|
|
48
49
|
| `baseten/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B` | 203K | | | | | | $0.60 | $2 |
|
|
49
50
|
| `baseten/openai/gpt-oss-120b` | 128K | | | | | | $0.10 | $0.50 |
|
|
50
51
|
| `baseten/zai-org/GLM-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
@@ -149,7 +149,7 @@ for await (const chunk of stream) {
|
|
|
149
149
|
| `edenai/deepinfra/mistralai/Mixtral-8x7B-Instruct-v0.1` | 33K | | | | | | $0.40 | $0.40 |
|
|
150
150
|
| `edenai/deepinfra/moonshotai/Kimi-K2-Instruct` | 131K | | | | | | $0.50 | $2 |
|
|
151
151
|
| `edenai/deepinfra/moonshotai/Kimi-K2.5` | 262K | | | | | | $0.45 | $2 |
|
|
152
|
-
| `edenai/deepinfra/nemotron-3-super-120b-a12b` | 262K | | | | | | $0.
|
|
152
|
+
| `edenai/deepinfra/nemotron-3-super-120b-a12b` | 262K | | | | | | $0.07 | $0.40 |
|
|
153
153
|
| `edenai/deepinfra/nemotron-3-ultra-550b-a55b` | 262K | | | | | | $0.50 | $2 |
|
|
154
154
|
| `edenai/deepinfra/NousResearch/Hermes-3-Llama-3.1-405B` | 131K | | | | | | $1 | $1 |
|
|
155
155
|
| `edenai/deepinfra/NousResearch/Hermes-3-Llama-3.1-70B` | 131K | | | | | | $0.70 | $0.70 |
|
|
@@ -216,7 +216,7 @@ for await (const chunk of stream) {
|
|
|
216
216
|
| `edenai/greenference/gpt-oss-20b` | 131K | | | | | | $0.01 | $0.04 |
|
|
217
217
|
| `edenai/greenpt/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.16 | $0.39 |
|
|
218
218
|
| `edenai/greenpt/deepseek-v4.1-flash` | 1.0M | | | | | | $0.25 | $1 |
|
|
219
|
-
| `edenai/greenpt/gpt-oss-120b` | 128K | | | | | | $0.
|
|
219
|
+
| `edenai/greenpt/gpt-oss-120b` | 128K | | | | | | $0.23 | $0.79 |
|
|
220
220
|
| `edenai/greenpt/llama-3.3-70b-instruct` | 128K | | | | | | $1 | $1 |
|
|
221
221
|
| `edenai/greenpt/qwen3-235b-a22b-instruct-2507` | 250K | | | | | | $1 | $3 |
|
|
222
222
|
| `edenai/groq/meta-llama/llama-prompt-guard-2-22m` | 512 | | | | | | $0.03 | $0.03 |
|
|
@@ -227,7 +227,7 @@ for await (const chunk of stream) {
|
|
|
227
227
|
| `edenai/infomaniak/mistralai/Ministral-3-14B-Instruct-2512` | 100K | | | | | | $0.34 | $0.45 |
|
|
228
228
|
| `edenai/ionos/meta-llama/Llama-3.3-70B-Instruct` | 128K | | | | | | $0.73 | $0.73 |
|
|
229
229
|
| `edenai/ionos/openai/gpt-oss-120b` | 128K | | | | | | $0.17 | $0.73 |
|
|
230
|
-
| `edenai/ionos/Qwen/Qwen3-Coder-Next` | 128K | | | | | | $0.17 | $0.
|
|
230
|
+
| `edenai/ionos/Qwen/Qwen3-Coder-Next` | 128K | | | | | | $0.17 | $0.90 |
|
|
231
231
|
| `edenai/meta/muse-spark-1.1` | 1.0M | | | | | | $1 | $4 |
|
|
232
232
|
| `edenai/meta/muse-spark-1.2` | 1.0M | | | | | | $1 | $4 |
|
|
233
233
|
| `edenai/meta/muse-spark-1.3` | 1.0M | | | | | | $1 | $4 |
|
|
@@ -348,13 +348,13 @@ for await (const chunk of stream) {
|
|
|
348
348
|
| `edenai/qwen/qwen3.8-max` | 1.0M | | | | | | $2 | $6 |
|
|
349
349
|
| `edenai/qwen/qwen3.8-max-0902` | 1.0M | | | | | | $2 | $6 |
|
|
350
350
|
| `edenai/qwen/qwen3.8-omni-flash` | 1.0M | | | | | | $0.15 | $0.47 |
|
|
351
|
-
| `edenai/scaleway/deepseek-v4-flash-0731` | 256K | | | | | | $0.45 | $0.
|
|
351
|
+
| `edenai/scaleway/deepseek-v4-flash-0731` | 256K | | | | | | $0.45 | $0.90 |
|
|
352
352
|
| `edenai/scaleway/deepseek-v4.1-flash` | 256K | | | | | | $0.67 | $2 |
|
|
353
|
-
| `edenai/scaleway/deepseek-v4.1-flash-1017` | 1.0M | | | | | | $0.
|
|
353
|
+
| `edenai/scaleway/deepseek-v4.1-flash-1017` | 1.0M | | | | | | $0.68 | $2 |
|
|
354
354
|
| `edenai/scaleway/gemma-3-27b-it` | 40K | | | | | | $0.29 | $0.57 |
|
|
355
|
-
| `edenai/scaleway/gpt-oss-120b` | 128K | | | | | | $0.17 | $0.
|
|
355
|
+
| `edenai/scaleway/gpt-oss-120b` | 128K | | | | | | $0.17 | $0.68 |
|
|
356
356
|
| `edenai/scaleway/llama-3.3-70b-instruct` | 128K | | | | | | $1 | $1 |
|
|
357
|
-
| `edenai/scaleway/qwen3-235b-a22b-instruct-2507` | 250K | | | | | | $0.
|
|
357
|
+
| `edenai/scaleway/qwen3-235b-a22b-instruct-2507` | 250K | | | | | | $0.85 | $3 |
|
|
358
358
|
| `edenai/scaleway/qwen3-coder-30b-a3b-instruct` | 128K | | | | | | $0.22 | $0.90 |
|
|
359
359
|
| `edenai/sference/deepseek-ai/DeepSeek-V4-Flash-0731` | 1.0M | | | | | | $0.28 | $0.56 |
|
|
360
360
|
| `edenai/sference/deepseek-ai/DeepSeek-V4.1-Flash-1017` | 1.0M | | | | | | $0.50 | $2 |
|
|
@@ -39,11 +39,11 @@ for await (const chunk of stream) {
|
|
|
39
39
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
40
40
|
| ---------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
41
41
|
| `inceptron/deepseek-ai/DeepSeek-V4-Flash-0731` | 1.0M | | | | | | $0.13 | $0.49 |
|
|
42
|
-
| `inceptron/moonshotai/Kimi-K2.6` | 262K | | | | | | $0.
|
|
42
|
+
| `inceptron/moonshotai/Kimi-K2.6` | 262K | | | | | | $0.80 | $4 |
|
|
43
43
|
| `inceptron/moonshotai/Kimi-K2.7-Code` | 262K | | | | | | $0.60 | $4 |
|
|
44
44
|
| `inceptron/zai-org/GLM-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
45
|
-
| `inceptron/zai-org/GLM-5.3` | 1.0M | | | | | | $1 | $
|
|
46
|
-
| `inceptron/zai-org/GLM-5.3-Flash` | 1.0M | | | | | | $0.
|
|
45
|
+
| `inceptron/zai-org/GLM-5.3` | 1.0M | | | | | | $1 | $3 |
|
|
46
|
+
| `inceptron/zai-org/GLM-5.3-Flash` | 1.0M | | | | | | $0.15 | $0.45 |
|
|
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
|
# Kilo Gateway
|
|
6
6
|
|
|
7
|
-
Access
|
|
7
|
+
Access 376 Kilo Gateway models through Mastra's model router. Authentication is handled automatically using the `KILO_API_KEY` environment variable.
|
|
8
8
|
|
|
9
9
|
Learn more in the [Kilo Gateway documentation](https://kilo.ai).
|
|
10
10
|
|
|
@@ -42,12 +42,12 @@ for await (const chunk of stream) {
|
|
|
42
42
|
| `kilo/~anthropic/claude-haiku-latest` | 1.0M | | | | | | $0.10 | $0.50 |
|
|
43
43
|
| `kilo/~anthropic/claude-opus-latest` | 1.0M | | | | | | $4 | $20 |
|
|
44
44
|
| `kilo/~anthropic/claude-sonnet-latest` | 1.0M | | | | | | $2 | $10 |
|
|
45
|
-
| `kilo/~deepseek/deepseek-flash-latest` | 1.0M | | | | | | $0.
|
|
45
|
+
| `kilo/~deepseek/deepseek-flash-latest` | 1.0M | | | | | | $0.02 | $0.40 |
|
|
46
46
|
| `kilo/~deepseek/deepseek-pro-latest` | 1.0M | | | | | | $0.10 | $8 |
|
|
47
47
|
| `kilo/~deepseek/deepseek-v4-flash-latest` | 1.0M | | | | | | $0.06 | $0.30 |
|
|
48
48
|
| `kilo/~google/gemini-flash-latest` | 1.0M | | | | | | $0.75 | $4 |
|
|
49
49
|
| `kilo/~google/gemini-pro-latest` | 1.0M | | | | | | $2 | $10 |
|
|
50
|
-
| `kilo/~moonshotai/kimi-latest` | 1.0M | | | | | | $0.
|
|
50
|
+
| `kilo/~moonshotai/kimi-latest` | 1.0M | | | | | | $0.15 | $9 |
|
|
51
51
|
| `kilo/~openai/gpt-astra-latest` | 1.1M | | | | | | $10 | $50 |
|
|
52
52
|
| `kilo/~openai/gpt-luna-latest` | 1.1M | | | | | | $0.10 | $0.50 |
|
|
53
53
|
| `kilo/~openai/gpt-mini-latest` | 400K | | | | | | $0.75 | $5 |
|
|
@@ -55,7 +55,7 @@ for await (const chunk of stream) {
|
|
|
55
55
|
| `kilo/~openai/gpt-terra-latest` | 1.1M | | | | | | $1 | $5 |
|
|
56
56
|
| `kilo/~unbiased/pareto-latest` | 1.0M | | | | | | $0.80 | $3 |
|
|
57
57
|
| `kilo/~x-ai/grok-latest` | 500K | | | | | | $2 | $6 |
|
|
58
|
-
| `kilo/~z-ai/glm-flash-latest` | 1.0M | | | | | | $0.03 | $0.
|
|
58
|
+
| `kilo/~z-ai/glm-flash-latest` | 1.0M | | | | | | $0.03 | $0.10 |
|
|
59
59
|
| `kilo/~z-ai/glm-latest` | 1.0M | | | | | | $0.07 | $1 |
|
|
60
60
|
| `kilo/aion-labs/aion-2.0` | 131K | | | | | | $0.80 | $2 |
|
|
61
61
|
| `kilo/aion-labs/aion-3.0` | 131K | | | | | | $3 | $6 |
|
|
@@ -136,7 +136,6 @@ for await (const chunk of stream) {
|
|
|
136
136
|
| `kilo/google/gemma-3-4b-it` | 131K | | | | | | $0.04 | $0.05 |
|
|
137
137
|
| `kilo/google/gemma-4-26b-a4b-it` | 262K | | | | | | $0.04 | $0.15 |
|
|
138
138
|
| `kilo/google/gemma-4-31b-it` | 262K | | | | | | $0.10 | $0.34 |
|
|
139
|
-
| `kilo/google/gemma-4-31b-it:free` | 262K | | | | | | — | — |
|
|
140
139
|
| `kilo/google/lyria-3-clip-preview` | 1.0M | | | | | | — | — |
|
|
141
140
|
| `kilo/google/lyria-3-pro-preview` | 1.0M | | | | | | — | — |
|
|
142
141
|
| `kilo/gryphe/mythomax-l2-13b` | 4K | | | | | | $0.08 | $0.11 |
|
|
@@ -155,7 +154,6 @@ for await (const chunk of stream) {
|
|
|
155
154
|
| `kilo/kilo-auto/frontier` | 1.0M | | | | | | $5 | $25 |
|
|
156
155
|
| `kilo/kilo-auto/small` | 262K | | | | | | $0.05 | $0.40 |
|
|
157
156
|
| `kilo/liquid/lfm-2.5-2.6b` | 128K | | | | | | $0.35 | $0.50 |
|
|
158
|
-
| `kilo/liquid/lfm-2.5-2.6b:free` | 66K | | | | | | — | — |
|
|
159
157
|
| `kilo/liquid/lfm-2.5-24b-a2b` | 128K | | | | | | $0.05 | $0.70 |
|
|
160
158
|
| `kilo/mancer/weaver` | 8K | | | | | | $0.40 | $0.75 |
|
|
161
159
|
| `kilo/meituan/longcat-2.0` | 1.0M | | | | | | $0.75 | $3 |
|
|
@@ -222,14 +220,13 @@ for await (const chunk of stream) {
|
|
|
222
220
|
| `kilo/nousresearch/hermes-4-405b` | 131K | | | | | | $1 | $3 |
|
|
223
221
|
| `kilo/nvidia/nemotron-3-nano-30b-a3b` | 262K | | | | | | $0.06 | $0.24 |
|
|
224
222
|
| `kilo/nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free` | 256K | | | | | | — | — |
|
|
225
|
-
| `kilo/nvidia/nemotron-3-super-120b-a12b` | 1.0M | | | | | | $0.
|
|
223
|
+
| `kilo/nvidia/nemotron-3-super-120b-a12b` | 1.0M | | | | | | $0.07 | $0.40 |
|
|
226
224
|
| `kilo/nvidia/nemotron-3-ultra-550b-a55b` | 203K | | | | | | $0.40 | $2 |
|
|
227
225
|
| `kilo/nvidia/nemotron-3-ultra-550b-a55b:free` | 1.0M | | | | | | — | — |
|
|
228
226
|
| `kilo/nvidia/nemotron-3.5-content-safety` | 131K | | | | | | $0.20 | $0.20 |
|
|
229
|
-
| `kilo/nvidia/nemotron-3.5-content-safety:free` | 128K | | | | | | — | — |
|
|
230
227
|
| `kilo/nvidia/nemotron-3.5-lightning` | 262K | | | | | | $0.03 | $0.12 |
|
|
231
228
|
| `kilo/nvidia/nemotron-3.5-lightning:free` | 1.0M | | | | | | — | — |
|
|
232
|
-
| `kilo/nvidia/nemotron-3.5-super-vl` |
|
|
229
|
+
| `kilo/nvidia/nemotron-3.5-super-vl` | 1.0M | | | | | | $0.06 | $0.35 |
|
|
233
230
|
| `kilo/nvidia/nemotron-3.5-super-vl:free` | 1.0M | | | | | | — | — |
|
|
234
231
|
| `kilo/openai/gpt-3.5-turbo-0613` | 4K | | | | | | $1 | $2 |
|
|
235
232
|
| `kilo/openai/gpt-3.5-turbo-16k` | 16K | | | | | | $3 | $4 |
|
|
@@ -283,8 +280,8 @@ for await (const chunk of stream) {
|
|
|
283
280
|
| `kilo/openai/gpt-audio` | 128K | | | | | | $3 | $10 |
|
|
284
281
|
| `kilo/openai/gpt-audio-mini` | 128K | | | | | | $0.60 | $2 |
|
|
285
282
|
| `kilo/openai/gpt-chat-latest` | 400K | | | | | | $5 | $30 |
|
|
286
|
-
| `kilo/openai/gpt-oss-120b` | 131K | | | | | | $0.03 | $0.
|
|
287
|
-
| `kilo/openai/gpt-oss-20b` | 131K | | | | | | $0.
|
|
283
|
+
| `kilo/openai/gpt-oss-120b` | 131K | | | | | | $0.03 | $0.11 |
|
|
284
|
+
| `kilo/openai/gpt-oss-20b` | 131K | | | | | | $0.02 | $0.09 |
|
|
288
285
|
| `kilo/openai/gpt-oss-safeguard-20b` | 131K | | | | | | $0.07 | $0.30 |
|
|
289
286
|
| `kilo/openai/o3` | 200K | | | | | | $2 | $8 |
|
|
290
287
|
| `kilo/openai/o3-pro` | 200K | | | | | | $20 | $80 |
|
|
@@ -342,7 +339,6 @@ for await (const chunk of stream) {
|
|
|
342
339
|
| `kilo/qwen/qwen3.8-max-0902` | 1.0M | | | | | | $2 | $6 |
|
|
343
340
|
| `kilo/qwen/qwen3.8-max-prime` | 1.0M | | | | | | $4 | $12 |
|
|
344
341
|
| `kilo/qwen/qwen3.8-omni-flash` | 1.0M | | | | | | $0.15 | $0.47 |
|
|
345
|
-
| `kilo/recursive/flint-v1.0:free` | 262K | | | | | | — | — |
|
|
346
342
|
| `kilo/reflection/beam-1.0-501b-a23b` | 1.0M | | | | | | $0.25 | $1 |
|
|
347
343
|
| `kilo/reflection/beam-free` | 1.0M | | | | | | — | — |
|
|
348
344
|
| `kilo/rekaai/reka-edge` | 16K | | | | | | $0.10 | $0.10 |
|
|
@@ -357,6 +353,7 @@ for await (const chunk of stream) {
|
|
|
357
353
|
| `kilo/sao10k/l3.1-euryale-70b` | 131K | | | | | | $0.85 | $0.85 |
|
|
358
354
|
| `kilo/scaledown/extract` | 1.0M | | | | | | $0.05 | — |
|
|
359
355
|
| `kilo/scaledown/summarize` | 1.0M | | | | | | $0.05 | — |
|
|
356
|
+
| `kilo/stealth/crouton-alpha` | 1.0M | | | | | | — | — |
|
|
360
357
|
| `kilo/stealth/glyph-cluster` | 256K | | | | | | — | — |
|
|
361
358
|
| `kilo/stepfun/step-3.5-flash` | 262K | | | | | | $0.10 | $0.30 |
|
|
362
359
|
| `kilo/stepfun/step-3.7-flash` | 256K | | | | | | $0.20 | $1 |
|
|
@@ -367,14 +364,13 @@ for await (const chunk of stream) {
|
|
|
367
364
|
| `kilo/tencent/hy-mt2-7b` | 8K | | | | | | $0.07 | $0.29 |
|
|
368
365
|
| `kilo/tencent/hy3` | 262K | | | | | | $0.08 | $0.33 |
|
|
369
366
|
| `kilo/tencent/hy3-preview` | 262K | | | | | | $0.18 | $0.60 |
|
|
367
|
+
| `kilo/tencent/hy4` | 1.0M | | | | | | $0.83 | $3 |
|
|
370
368
|
| `kilo/tencent/hy4-preview` | 1.0M | | | | | | $0.75 | $2 |
|
|
371
369
|
| `kilo/thedrummer/cydonia-24b-v4.1` | 131K | | | | | | $0.30 | $0.50 |
|
|
372
370
|
| `kilo/thedrummer/skyfall-36b-v2` | 33K | | | | | | $0.55 | $0.80 |
|
|
373
371
|
| `kilo/thedrummer/unslopnemo-12b` | 1.0M | | | | | | $0.40 | $0.40 |
|
|
374
372
|
| `kilo/thinkingmachines/inkling` | 524K | | | | | | $1 | $4 |
|
|
375
373
|
| `kilo/thinkingmachines/inkling-small` | 524K | | | | | | $0.45 | $1 |
|
|
376
|
-
| `kilo/thinkingmachines/inkling-small:free` | 1.0M | | | | | | — | — |
|
|
377
|
-
| `kilo/thinkingmachines/inkling:free` | 1.0M | | | | | | — | — |
|
|
378
374
|
| `kilo/unbiased/pareto-26.10` | 1.0M | | | | | | $0.80 | $3 |
|
|
379
375
|
| `kilo/unbiased/pareto-26.9` | 262K | | | | | | $3 | $8 |
|
|
380
376
|
| `kilo/undi95/remm-slerp-l2-13b` | 6K | | | | | | $0.35 | $0.65 |
|
|
@@ -391,7 +387,6 @@ for await (const chunk of stream) {
|
|
|
391
387
|
| `kilo/xiaomi/mimo-v2.6-flash` | 1.0M | | | | | | $0.10 | $0.28 |
|
|
392
388
|
| `kilo/xiaomi/mimo-v2.6-pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
393
389
|
| `kilo/xiaomi/mimo-v2.6-pro-ultraspeed` | 1.0M | | | | | | $4 | $9 |
|
|
394
|
-
| `kilo/xingchen-agi/xing4.0-29b-a4b:free` | 262K | | | | | | — | — |
|
|
395
390
|
| `kilo/z-ai/glm-4.5` | 131K | | | | | | $0.60 | $2 |
|
|
396
391
|
| `kilo/z-ai/glm-4.5-air` | 131K | | | | | | $0.13 | $0.85 |
|
|
397
392
|
| `kilo/z-ai/glm-4.5v` | 66K | | | | | | $0.60 | $2 |
|