@mastra/mcp-docs-server 1.3.11-alpha.0 → 1.3.11-alpha.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.
Files changed (87) hide show
  1. package/.docs/course/01-first-agent/16-adding-memory-to-agent.md +7 -1
  2. package/.docs/course/02-agent-tools-mcp/25-creating-notes-directory.md +8 -0
  3. package/.docs/course/02-agent-tools-mcp/26-updating-mcp-config-filesystem.md +10 -7
  4. package/.docs/course/02-agent-tools-mcp/27-updating-agent-instructions-filesystem.md +3 -1
  5. package/.docs/course/02-agent-tools-mcp/29-troubleshooting-filesystem.md +3 -2
  6. package/.docs/course/02-agent-tools-mcp/31-enhancing-memory-configuration.md +2 -2
  7. package/.docs/course/03-agent-memory/04-creating-basic-memory-agent.md +3 -1
  8. package/.docs/course/03-agent-memory/08-configuring-conversation-history.md +1 -1
  9. package/.docs/course/03-agent-memory/09-using-memory-in-application.md +8 -6
  10. package/.docs/course/03-agent-memory/10-storage-configuration.md +11 -1
  11. package/.docs/course/03-agent-memory/12-handling-memory-frontend.md +5 -3
  12. package/.docs/course/03-agent-memory/13-vector-store-configuration.md +4 -2
  13. package/.docs/course/03-agent-memory/16-configuring-semantic-recall.md +2 -2
  14. package/.docs/course/03-agent-memory/18-advanced-configuration-semantic-recall.md +2 -2
  15. package/.docs/course/03-agent-memory/21-configuring-working-memory.md +2 -2
  16. package/.docs/course/03-agent-memory/22-custom-working-memory-templates.md +2 -5
  17. package/.docs/course/03-agent-memory/25-combining-memory-features.md +2 -2
  18. package/.docs/course/03-agent-memory/27-creating-learning-assistant.md +2 -2
  19. package/.docs/course/04-workflows/05-chaining-steps-together.md +2 -1
  20. package/.docs/course/04-workflows/12-using-agent-in-workflow.md +11 -14
  21. package/.docs/course/04-workflows/20-building-conditional-workflow.md +32 -6
  22. package/.docs/docs/agents/guardrails.md +1 -1
  23. package/.docs/docs/agents/human-in-the-loop.md +1 -1
  24. package/.docs/docs/agents/structured-output.md +11 -0
  25. package/.docs/docs/channels.md +2 -0
  26. package/.docs/docs/classifier.md +103 -0
  27. package/.docs/docs/deployment/mastra-server.md +3 -1
  28. package/.docs/docs/evals/custom-scorers.md +20 -0
  29. package/.docs/docs/evals/quick-checks.md +7 -7
  30. package/.docs/docs/guides/context-engineering.md +2 -2
  31. package/.docs/docs/mastra-platform/observability.md +1 -1
  32. package/.docs/docs/memory/memory-processors.md +49 -3
  33. package/.docs/docs/memory/observational-memory.md +27 -1
  34. package/.docs/docs/observability/tracing/overview.md +41 -1
  35. package/.docs/docs/workflows/control-flow.md +1 -1
  36. package/.docs/integrations/databases/postgresql.md +31 -0
  37. package/.docs/integrations/deploy/vercel.md +11 -0
  38. package/.docs/integrations/observability/langfuse.md +13 -0
  39. package/.docs/models/gateways/netlify.md +2 -5
  40. package/.docs/models/gateways/openrouter.md +2 -11
  41. package/.docs/models/gateways/vercel.md +1 -1
  42. package/.docs/models/index.md +1 -1
  43. package/.docs/models/providers/cortecs.md +1 -1
  44. package/.docs/models/providers/deepinfra.md +0 -1
  45. package/.docs/models/providers/edenai.md +25 -4
  46. package/.docs/models/providers/empiriolabs.md +2 -1
  47. package/.docs/models/providers/google.md +1 -4
  48. package/.docs/models/providers/inceptron.md +4 -4
  49. package/.docs/models/providers/kilo.md +13 -27
  50. package/.docs/models/providers/llmgateway-providers.md +16 -21
  51. package/.docs/models/providers/llmgateway.md +4 -3
  52. package/.docs/models/providers/melious.md +10 -10
  53. package/.docs/models/providers/mistral.md +25 -24
  54. package/.docs/models/providers/nano-gpt.md +10 -21
  55. package/.docs/models/providers/nvidia.md +0 -1
  56. package/.docs/models/providers/ofox.md +3 -1
  57. package/.docs/models/providers/openai.md +1 -4
  58. package/.docs/models/providers/opencode.md +0 -1
  59. package/.docs/models/providers/scaleway.md +1 -1
  60. package/.docs/reference/agents/channels.md +61 -1
  61. package/.docs/reference/agents/generate.md +0 -10
  62. package/.docs/reference/agents/generateLegacy.md +0 -10
  63. package/.docs/reference/agents/network.md +0 -10
  64. package/.docs/reference/browser/agent-browser.md +7 -3
  65. package/.docs/reference/browser/mastra-browser.md +34 -0
  66. package/.docs/reference/classifier/classifier.md +3 -1
  67. package/.docs/reference/client-js/observability.md +16 -15
  68. package/.docs/reference/configuration.md +3 -1
  69. package/.docs/reference/connect/providers.md +65 -1
  70. package/.docs/reference/core/getDeployer.md +1 -1
  71. package/.docs/reference/core/mastra-class.md +1 -1
  72. package/.docs/reference/deployer/vercel.md +24 -1
  73. package/.docs/reference/editor/mastra-editor.md +1 -1
  74. package/.docs/reference/evals/tool-call-accuracy.md +7 -4
  75. package/.docs/reference/memory/memory-class.md +77 -0
  76. package/.docs/reference/observability/tracing/advanced-queries.md +33 -16
  77. package/.docs/reference/observability/tracing/exporters/langfuse.md +11 -0
  78. package/.docs/reference/observability/tracing/exporters/otel.md +123 -3
  79. package/.docs/reference/observability/tracing/interfaces.md +15 -0
  80. package/.docs/reference/observability/tracing/spans.md +1 -1
  81. package/.docs/reference/signals/signal-provider.md +42 -1
  82. package/.docs/reference/streaming/agents/stream.md +19 -10
  83. package/.docs/reference/streaming/agents/streamLegacy.md +0 -10
  84. package/.docs/reference/workspace/factory-sandbox.md +18 -0
  85. package/.docs/reference/workspace/filesystem.md +1 -1
  86. package/.docs/reference/workspace/local-filesystem.md +1 -1
  87. package/package.json +3 -3
@@ -369,6 +369,26 @@ Put the check in `preprocess` so it runs before any judge step. `notScorable()`
369
369
 
370
370
  See the [`notScorable()` reference](https://mastra.ai/reference/evals/not-scorable) for the result shape and how live scoring, `runEvals()`, and experiments treat a skipped run.
371
371
 
372
+ ## Anchoring the judge's score scale
373
+
374
+ A prompt-object `generateScore` step asks the judge for `{ score: number }`. Mastra forwards whatever number comes back without clamping or normalizing it, so the prompt is the only thing defining your scale:
375
+
376
+ ```typescript
377
+ .generateScore({
378
+ description: 'Score the refund handling from 0 to 1',
379
+ createPrompt: ({ run }) => `Rate this refund handling:
380
+ - 1.0: refund issued correctly, no policy breach
381
+ - 0.5: refund issued but policy explained poorly or a step was missed
382
+ - 0.0: refund not issued, or issued against policy
383
+
384
+ ${JSON.stringify(run.output)}`,
385
+ })
386
+ ```
387
+
388
+ `Rate this refund handling from 0 to 1` alone leaves the middle of the scale undefined, and judges fill that gap differently between calls. Name the endpoints and describe at least one middle value. Leave the output format out of the prompt: the step already asks the judge for `{ score: number }`, and a prompt that says "return only the number" makes the judge answer in a shape the step can't read. If your scorer must not drift outside a range, clamp or reject the value in a function step instead of trusting the judge.
389
+
390
+ This matters most for [gates](https://mastra.ai/docs/evals/gates-and-verdicts), whose thresholds must be between 0 and 1 even though the judge's number is stored exactly as returned. A prompt that asks for a 1 to 10 score makes a failing `2` pass every threshold you're allowed to set. The gate then never fires.
391
+
372
392
  ## Example: Create a custom scorer
373
393
 
374
394
  A custom scorer in Mastra uses `createScorer` with four core components:
@@ -43,13 +43,13 @@ Quick Checks fall into these categories:
43
43
 
44
44
  These scorers evaluate the agent's text output:
45
45
 
46
- | Check | What it does | Score |
47
- | ------------------------ | ------------------------------------- | -------------------------------- |
48
- | `checks.includes(str)` | Output contains substring | 1 or 0 |
49
- | `checks.excludes(str)` | Output doesn't contain substring | 1 or 0 |
50
- | `checks.equals(str)` | Output exactly equals string | 1 or 0 |
51
- | `checks.matches(regex)` | Output matches regular expression | 1 or 0 |
52
- | `checks.similarity(str)` | Dice coefficient similarity to string | 0-1 (or binary with `threshold`) |
46
+ | Check | What it does | Score |
47
+ | ------------------------ | --------------------------------------------------------------------------------------------------- | -------------------------------- |
48
+ | `checks.includes(str)` | Output contains substring | 1 or 0 |
49
+ | `checks.excludes(str)` | Output doesn't contain substring | 1 or 0 |
50
+ | `checks.equals(str)` | Output equals string (case-insensitive by default; pass `{ ignoreCase: false }` for an exact match) | 1 or 0 |
51
+ | `checks.matches(regex)` | Output matches regular expression | 1 or 0 |
52
+ | `checks.similarity(str)` | Dice coefficient similarity to string | 0-1 (or binary with `threshold`) |
53
53
 
54
54
  ### Tool call checks
55
55
 
@@ -145,8 +145,8 @@ export const workspace = new Workspace({
145
145
  autoIndexPaths: ['**/*.md'],
146
146
  })
147
147
 
148
- // Agents receive tools including read_file, list_files, grep,
149
- // mastra_workspace_search, and mastra_workspace_index.
148
+ // Agents receive tools including mastra_workspace_read_file, mastra_workspace_list_files,
149
+ // mastra_workspace_grep, mastra_workspace_search, and mastra_workspace_index.
150
150
  await workspace.init()
151
151
  ```
152
152
 
@@ -300,7 +300,7 @@ Set `SINCE` and `UNTIL` to ISO 8601 dates or timestamps. The following rules app
300
300
  - The selected window can't exceed 30 days.
301
301
  - If only `--until` is set, the default start is the later of 30 days before `--until` and the current retention boundary.
302
302
 
303
- Commands written with the earlier `--from` and `--to` names still work.
303
+ The earlier `--from` and `--to` names still work, but they're deprecated hidden aliases of `--since` and `--until` and don't appear in the command help. Use `--since` and `--until` in new commands.
304
304
 
305
305
  Trace eligibility is based on the root observation's start time. The Langfuse adapter discovers roots in the selected window and then reads all currently available observations for each selected trace. It skips the complete trace if the available parent-child tree or timestamps are invalid.
306
306
 
@@ -12,13 +12,13 @@ Memory processors are [processors](https://mastra.ai/docs/agents/processors) tha
12
12
 
13
13
  ## Built-in memory processors
14
14
 
15
- Mastra automatically adds these processors when memory is enabled:
15
+ Mastra automatically adds these processors when memory is enabled. `MemoryInputFilter` is added only when a memory store is available and stored history will be loaded:
16
16
 
17
17
  ### `MemoryInputFilter`
18
18
 
19
- Trims client-echoed history before memory loaders run. For an existing thread, it keeps only the current user turn or new tool results. For an empty thread, it keeps the full initial input and removes provider item metadata from assistant parts that could refer to items that don't exist in storage.
19
+ Trims client-echoed history before memory loaders run. For an existing thread, it keeps only the current user turn or new tool results. For an empty thread, it keeps the full initial input and removes provider item metadata from assistant parts that could refer to items that don't exist in storage. When `retainFullInput: true` is set, it skips both the trim and the metadata strip and processes the input exactly as supplied, while stored history still loads.
20
20
 
21
- This processor runs first so `MessageHistory`, `SemanticRecall`, and Observational Memory receive only the new input they need.
21
+ By default, this processor runs first so `MessageHistory`, `SemanticRecall`, and Observational Memory receive only the new input they need.
22
22
 
23
23
  ### `MessageHistory`
24
24
 
@@ -320,6 +320,52 @@ const agent = new Agent({
320
320
 
321
321
  Both scenarios are safe - guardrails prevent inappropriate content from being persisted to memory
322
322
 
323
+ ## Aborted runs and saved messages
324
+
325
+ Cancelling a run and blocking it with a processor `abort()` both stop generation, but they save different things:
326
+
327
+ | What stops the run | Memory processors | What's persisted |
328
+ | ----------------------------- | ----------------- | ------------------------------------------------------------ |
329
+ | `abortSignal` from the caller | Still run | The user message and the assistant text the user already saw |
330
+ | `abort()` inside a processor | Skipped | Nothing; the tripwire blocks the save |
331
+
332
+ A caller cancellation goes through output processors like any other run, so the built-in `MessageHistory` processor saves the thread. The partial answer is stored as an ordinary assistant message with no error part, which means the next turn starts from what the user actually read.
333
+
334
+ ```typescript
335
+ import { Agent } from '@mastra/core/agent'
336
+ import { Memory } from '@mastra/memory'
337
+
338
+ const memory = new Memory({ options: { lastMessages: 20 } })
339
+ const agent = new Agent({
340
+ id: 'writer',
341
+ name: 'writer',
342
+ instructions: 'You write step-by-step migration guides.',
343
+ model: 'openai/gpt-6.1-sol',
344
+ memory,
345
+ })
346
+
347
+ const controller = new AbortController()
348
+ const stream = await agent.stream('Write the migration guide.', {
349
+ memory: { thread: 'thread-1', resource: 'user-1' },
350
+ abortSignal: controller.signal,
351
+ onAbort: ({ steps, text }) => {
352
+ console.log(`Aborted after ${steps.length} steps with ${text?.length ?? 0} characters streamed`)
353
+ },
354
+ })
355
+
356
+ let streamed = ''
357
+ for await (const chunk of stream.fullStream) {
358
+ if (chunk.type !== 'text-delta') continue
359
+ streamed += chunk.payload.text
360
+ if (streamed.length > 200) controller.abort()
361
+ }
362
+
363
+ // The partial answer is already in the thread
364
+ const { messages } = await memory.recall({ threadId: 'thread-1', resourceId: 'user-1' })
365
+ ```
366
+
367
+ `onAbort` receives the steps that completed before the cancellation and the assistant text streamed for the in-flight step. For the abort lifecycle itself, including durable runs aborted by `runId`, see the [`stream()` reference](https://mastra.ai/reference/streaming/agents/stream).
368
+
323
369
  ## Handling large attachments
324
370
 
325
371
  Some storage providers enforce record size limits that base64-encoded file attachments can exceed:
@@ -10,7 +10,33 @@ Observational Memory (OM) is Mastra's memory system for long-context agentic mem
10
10
 
11
11
  ## Quickstart
12
12
 
13
- Ensure you have `@mastra/memory` installed in your project. Set `observationalMemory: true` in your Memory config to enable Observational Memory.
13
+ Install `@mastra/memory` and a [storage adapter](https://mastra.ai/docs/storage). The examples below use `@mastra/libsql`, which stores data locally in a `memory.db` file.
14
+
15
+ **npm**:
16
+
17
+ ```bash
18
+ npm install @mastra/memory@latest @mastra/libsql@latest
19
+ ```
20
+
21
+ **pnpm**:
22
+
23
+ ```bash
24
+ pnpm add @mastra/memory@latest @mastra/libsql@latest
25
+ ```
26
+
27
+ **Yarn**:
28
+
29
+ ```bash
30
+ yarn add @mastra/memory@latest @mastra/libsql@latest
31
+ ```
32
+
33
+ **Bun**:
34
+
35
+ ```bash
36
+ bun add @mastra/memory@latest @mastra/libsql@latest
37
+ ```
38
+
39
+ Then set `observationalMemory: true` in your Memory config to enable Observational Memory.
14
40
 
15
41
  ```typescript
16
42
  import { Memory } from '@mastra/memory'
@@ -6,7 +6,7 @@
6
6
 
7
7
  Tracing is the observability signal that records how a request moves through agents, workflows, tools, and model calls. Mastra represents each operation as a span and groups related spans into a trace so you can inspect the full execution path.
8
8
 
9
- This page focuses on trace-specific concepts: span hierarchy, sampling, metadata, filtering, trace IDs, and third-party trace context.
9
+ This page focuses on trace-specific concepts: execution outcomes, span hierarchy, sampling, metadata, filtering, trace IDs, and third-party trace context.
10
10
 
11
11
  **For AI agents:** Run `npx mastra api trace list '{"page":0,"perPage":20}'` to inspect recent traces directly instead of opening Studio or writing a temporary script. The command requires a running Mastra server with observability configured; start the local server with `npx mastra dev`, or pass the reachable server's base URL with `--url`. Run `npx mastra api trace list --schema` before constructing different filters. Install Mastra's skill with `npx skills add mastra-ai/skills --skill mastra` for complete API CLI discovery, targeting, schema, authentication, and error-handling guidance.
12
12
 
@@ -24,6 +24,46 @@ To get started with tracing, configure observability in your Mastra instance and
24
24
  - [Configuration](https://mastra.ai/docs/observability/overview): Base observability config and multiple configs, plus serverless flushing
25
25
  - [Storage](https://mastra.ai/docs/observability/overview): Storage routing for traces, logs, and metrics
26
26
 
27
+ ## Execution outcomes
28
+
29
+ Spans report the meaning of an individual execution through three native fields:
30
+
31
+ - `outcome`: The execution result, such as `success`, `error`, `abort`, `interrupted`, `suspend`, `limit`, `blocked`, or `unknown`.
32
+ - `stopReason`: An optional machine-readable cause, such as `max_steps`, `guardrail`, or `observer_failed`.
33
+ - `stopReasonContext`: Optional compact facts about that cause, such as a provider error code, processor ID, signal ID, or related span ID.
34
+
35
+ A `null` or absent outcome means no outcome has been recorded. Use `endTime` to determine whether a span has finished. Older observability versions can retain a `null` outcome on finished spans. Completing on the last allowed step is `success`. Needing another step after exhausting the allowance is `limit / max_steps`.
36
+
37
+ Configured completion through `stopWhen` or an iteration hook records `success` with `stop_condition` or `iteration_hook`. A successful delegation followed by a supervisor's `bail()` records `success / delegation_bail`. If the delegated worker fails and the hook bails, the worker retains its failure and the supervisor records `interrupted / delegation_bail` with `causeOutcome` and, when known, `causeStopReason` in `stopReasonContext`.
38
+
39
+ Caller cancellation records `abort / caller_cancelled` on the targeted run. Unfinished descendants stopped by that cancellation record `interrupted / caller_cancelled`. A run deadline records `limit / timeout` on the run; work interrupted by that deadline records `interrupted / timeout`. Completed spans retain their outcomes. Generic cleanup ends otherwise unclassified spans as `unknown`.
40
+
41
+ A [guardrail](https://mastra.ai/docs/agents/guardrails) that stops execution by firing a tripwire reports `blocked / guardrail`. Its context identifies the processor:
42
+
43
+ ```json
44
+ {
45
+ "outcome": "blocked",
46
+ "stopReason": "guardrail",
47
+ "stopReasonContext": { "processorId": "moderation" }
48
+ }
49
+ ```
50
+
51
+ For Mastra-generated outcomes, `stopReasonContext` is a flat tooltip summary with at most three scalar fields. It excludes raw error messages, signal contents, tripwire metadata, and nested causes. Strings are limited to 128 characters. Oversized values are omitted. Missing facts are omitted, and a context with no available facts is `null`.
52
+
53
+ Custom producers can supply their own outcome strings, stop reasons, and context objects. These values are preserved through span updates, exports, and rebuilds, with the same serialization limits used for span metadata. The framework allowlist applies to Mastra-generated context.
54
+
55
+ Model chunk spans capture content after output processors have accepted or redacted it. Provider timing and completion are recorded separately without capturing raw chunk content. A workflow waiting intentionally records `suspend`; a stopped executor handing off unfinished work records `interrupted`, even when the persisted workflow status is `waiting`.
56
+
57
+ When an observer fails and stops the main execution, the observer span records its own result and the main span reports `interrupted / observer_failed`. The context links to the observer memory operation through `observerSpanId` and summarizes its result with `causeOutcome` and `causeStopReason`. For example, context-window exhaustion remains `limit / context_window_exceeded` on the observer. Read that span for its diagnostics. Signal interruptions retain only `signalId` and `signalType`.
58
+
59
+ If the configured failure policy lets the main execution continue, it can still succeed. A guardrail retry that recovers also preserves the successful final outcome and the rejected attempt's separate result.
60
+
61
+ `MastraStorageExporter` and `MastraPlatformExporter` carry these fields in exported span records. Persisting them requires a storage implementation that supports the fields.
62
+
63
+ Model inference spans (`MODEL_INFERENCE`) measure provider execution and record usage. Model chunk spans (`MODEL_CHUNK`) capture content after output processors have accepted or transformed it. Chunks belong to the logical step (`MODEL_STEP`), so buffered output can arrive after provider execution ends without outliving its parent. In the agent streaming paths, inference spans no longer capture response output; use the processed chunk spans or the generation output instead.
64
+
65
+ When durable execution finishes on another worker, the original termination cause may be unavailable. Normal completion and step-limit exits can then report `unknown`. Separate resumed-segment tracing isn't supported on Inngest. A caller-side Inngest deadline may also be missing from worker-owned outcomes. Core durable resume tracing also requires the workers to share live tracing state. Span identity and finalization across workers aren't yet guaranteed.
66
+
27
67
  ## Sampling strategies
28
68
 
29
69
  Sampling allows you to control which traces are collected, helping you balance between observability needs and resource costs.
@@ -269,7 +269,7 @@ export const testWorkflow = createWorkflow({
269
269
 
270
270
  ### Route with a classifier
271
271
 
272
- A configured classifier can produce typed answers before `.branch()`. Route on the answer field that matches each question type: `choice`, `score`, or `probability`.
272
+ A configured [classifier](https://mastra.ai/docs/classifier) can produce typed answers before `.branch()`. Route on the answer field that matches each question type: `choice`, `score`, or `probability`.
273
273
 
274
274
  ```typescript
275
275
  import { Classifier } from '@mastra/core/classifier'
@@ -174,6 +174,37 @@ const storage = new PostgresStoreVNext({
174
174
 
175
175
  Lower `lookbackSeconds` if refreshes are slow, and raise `ttlSeconds` if they run more often than your filter values change. Only one process refreshes a given cache entry at a time, so adding server instances doesn't multiply the work.
176
176
 
177
+ #### Day partitions
178
+
179
+ `PostgresStoreVNext` stores observability events in tables partitioned by day. If TimescaleDB or pg_partman is installed, that extension creates partitions for you. Without an extension, `init()` creates the partitions for yesterday, today, and the next `futureDays` days (default 14), and a write that lands on a day inside that window with no partition creates it before it retries, so writes keep working after the pre-created window runs out. Rows dated outside the window are still rejected.
180
+
181
+ Creating a partition is DDL. If the role your app runs with cannot create tables, or does not own the observability tables, the write fails with an error that names the table and the missing day, and the exporter drops that batch after its retries. In that setup, call `ensurePartitions()` on a schedule, at least once every `futureDays` days, with a role that can create tables and owns the observability tables. It only extends the native day-partition window, and does nothing with TimescaleDB or pg_partman. You can also install TimescaleDB, or pg_partman with its background worker or a scheduled `run_maintenance()` call, so the database maintains the partitions itself.
182
+
183
+ A larger `futureDays` gives the scheduled job more time between runs:
184
+
185
+ ```typescript
186
+ import { PostgresStoreVNext } from '@mastra/pg'
187
+
188
+ const storage = new PostgresStoreVNext({
189
+ id: 'pg-storage',
190
+ connectionString: process.env.DATABASE_URL,
191
+ observability: {
192
+ connectionString: process.env.OBSERVABILITY_DATABASE_URL,
193
+ partitioning: {
194
+ futureDays: 60, // pre-create 60 days of partitions on init()
195
+ },
196
+ },
197
+ })
198
+ ```
199
+
200
+ Then call `ensurePartitions()` from the scheduled job:
201
+
202
+ ```typescript
203
+ // OBSERVABILITY_DATABASE_URL connects as a role that owns the observability tables
204
+ await storage.ensurePartitions()
205
+ await storage.close()
206
+ ```
207
+
177
208
  ### Initialization
178
209
 
179
210
  When you pass storage to the Mastra class, `init()` is called automatically before any storage operation:
@@ -96,6 +96,17 @@ Studio serves its own pages from the CDN, and every other path goes to your serv
96
96
 
97
97
  The Vercel deployer supports configuration options that are written to the Vercel Output API function config. See the [`VercelDeployer` reference](https://mastra.ai/reference/deployer/vercel) for available options like `maxDuration`, `memory`, and `regions`.
98
98
 
99
+ Request timeouts have two separate limits. `maxDuration` (seconds) caps how long Vercel lets the function run, while Mastra's `server.timeout` (milliseconds, default `180000`) caps how long Mastra waits before answering `504 Gateway Timeout`. Raising `maxDuration` alone doesn't extend the 180 second Mastra limit, so long-running requests such as workflow runs need both:
100
+
101
+ ```typescript
102
+ export const mastra = new Mastra({
103
+ deployer: new VercelDeployer({ maxDuration: 600 }),
104
+ server: { timeout: 600_000 },
105
+ })
106
+ ```
107
+
108
+ See [Request timeouts](https://mastra.ai/reference/deployer/vercel) for details.
109
+
99
110
  ## Observability
100
111
 
101
112
  Serverless functions can terminate immediately after returning a response. Any pending async work - like sending telemetry - may get killed before completing. Awaiting `flush()` ensures all traces are sent before the function exits.
@@ -245,6 +245,19 @@ This thread-to-session fallback is specific to Langfuse. Observational Memory do
245
245
 
246
246
  Internal observer and reflector execution threads remain separate. Multi-thread observation uses the invoking caller's session, not the first thread in the batch. This session behavior applies regardless of the `bufferOnIdle` setting and doesn't change buffering or span parentage.
247
247
 
248
+ ## Cost tracking
249
+
250
+ The exporter forwards provider-reported cost to Langfuse's `cost_details` field, but only when the generation's cost metadata meets every condition:
251
+
252
+ - The span is a model generation span.
253
+ - `costContext.costMetadata.source` is `'provider_reported'`.
254
+ - `costContext.costUnit` is `'USD'`.
255
+ - `costContext.estimatedCost` is a finite, non-negative number.
256
+
257
+ Estimated costs are deliberately not exported, so Langfuse can apply its own pricing model. If your generations show as missing cost in Langfuse, check whether your provider reports cost; otherwise configure model prices in Langfuse.
258
+
259
+ See the [`LangfuseExporter` reference](https://mastra.ai/reference/observability/tracing/exporters/langfuse) for the exact rules.
260
+
248
261
  ## Prompt linking
249
262
 
250
263
  You can link LLM generations to prompts stored in [Langfuse Prompt Management](https://langfuse.com/docs/prompt-management). It enables version tracking and metrics for your prompts.
@@ -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 286 models through Mastra's model router.
7
+ Netlify AI Gateway provides unified access to multiple providers with built-in caching and observability. Access 283 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
 
@@ -80,7 +80,6 @@ ANTHROPIC_API_KEY=ant-...
80
80
  | `openai/chat-latest` |
81
81
  | `openai/gpt-4.1` |
82
82
  | `openai/gpt-4.1-mini` |
83
- | `openai/gpt-4.1-nano` |
84
83
  | `openai/gpt-4o` |
85
84
  | `openai/gpt-4o-mini` |
86
85
  | `openai/gpt-5` |
@@ -116,7 +115,6 @@ ANTHROPIC_API_KEY=ant-...
116
115
  | `openai/gpt-6-sol` |
117
116
  | `openai/gpt-6.1-sol` |
118
117
  | `openai/gpt-6.1-terra` |
119
- | `openai/gpt-image-1` |
120
118
  | `openai/gpt-image-1.5` |
121
119
  | `openai/gpt-image-2` |
122
120
  | `openai/gpt-image-2-2026-04-21` |
@@ -125,8 +123,6 @@ ANTHROPIC_API_KEY=ant-...
125
123
  | `openai/gpt-image-2.5-sunburst` |
126
124
  | `openai/gpt-image-2.5-sunburst-2026-09-08` |
127
125
  | `openai/o3` |
128
- | `openai/o3-mini` |
129
- | `openai/o4-mini` |
130
126
  | `openrouter/~deepseek/deepseek-flash-latest` |
131
127
  | `openrouter/~deepseek/deepseek-pro-latest` |
132
128
  | `openrouter/~deepseek/deepseek-v4-flash-latest` |
@@ -240,6 +236,7 @@ ANTHROPIC_API_KEY=ant-...
240
236
  | `openrouter/openrouter/auto-beta` |
241
237
  | `openrouter/openrouter/free` |
242
238
  | `openrouter/openrouter/pareto-code` |
239
+ | `openrouter/particle-ai/particle-1` |
243
240
  | `openrouter/perceptron/perceptron-mk1` |
244
241
  | `openrouter/perceptron/perceptron-mk1.5` |
245
242
  | `openrouter/perplexity/sonar` |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![OpenRouter logo](https://models.dev/logos/openrouter.svg)OpenRouter
6
6
 
7
- OpenRouter aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 390 models through Mastra's model router.
7
+ OpenRouter aggregates models from multiple providers with enhanced features like rate limiting and failover. Access 381 models through Mastra's model router.
8
8
 
9
9
  Learn more in the [OpenRouter documentation](https://openrouter.ai/models).
10
10
 
@@ -239,7 +239,6 @@ ANTHROPIC_API_KEY=ant-...
239
239
  | `openai/gpt-3.5-turbo-0613` |
240
240
  | `openai/gpt-3.5-turbo-16k` |
241
241
  | `openai/gpt-4` |
242
- | `openai/gpt-4-turbo` |
243
242
  | `openai/gpt-4.1` |
244
243
  | `openai/gpt-4.1-mini` |
245
244
  | `openai/gpt-4.1-nano` |
@@ -260,7 +259,6 @@ ANTHROPIC_API_KEY=ant-...
260
259
  | `openai/gpt-5.1-codex-max` |
261
260
  | `openai/gpt-5.1-codex-mini` |
262
261
  | `openai/gpt-5.2` |
263
- | `openai/gpt-5.2-chat` |
264
262
  | `openai/gpt-5.2-codex` |
265
263
  | `openai/gpt-5.2-pro` |
266
264
  | `openai/gpt-5.3-codex` |
@@ -293,19 +291,14 @@ ANTHROPIC_API_KEY=ant-...
293
291
  | `openai/gpt-oss-120b` |
294
292
  | `openai/gpt-oss-20b` |
295
293
  | `openai/gpt-oss-safeguard-20b` |
296
- | `openai/o1` |
297
- | `openai/o1-pro` |
298
294
  | `openai/o3` |
299
- | `openai/o3-mini` |
300
- | `openai/o3-mini-high` |
301
295
  | `openai/o3-pro` |
302
- | `openai/o4-mini` |
303
- | `openai/o4-mini-high` |
304
296
  | `openrouter/auto` |
305
297
  | `openrouter/bodybuilder` |
306
298
  | `openrouter/free` |
307
299
  | `openrouter/fusion` |
308
300
  | `openrouter/pareto-code` |
301
+ | `particle-ai/particle-1` |
309
302
  | `perceptron/perceptron-mk1` |
310
303
  | `perceptron/perceptron-mk1.5` |
311
304
  | `perplexity/sonar` |
@@ -335,7 +328,6 @@ ANTHROPIC_API_KEY=ant-...
335
328
  | `qwen/qwen3-coder-flash` |
336
329
  | `qwen/qwen3-coder-next` |
337
330
  | `qwen/qwen3-next-80b-a3b-instruct` |
338
- | `qwen/qwen3-next-80b-a3b-thinking` |
339
331
  | `qwen/qwen3-vl-235b-a22b-instruct` |
340
332
  | `qwen/qwen3-vl-30b-a3b-instruct` |
341
333
  | `qwen/qwen3-vl-30b-a3b-thinking` |
@@ -396,7 +388,6 @@ ANTHROPIC_API_KEY=ant-...
396
388
  | `unbiased/pareto-26.9` |
397
389
  | `undi95/remm-slerp-l2-13b` |
398
390
  | `upstage/solar-mini4` |
399
- | `upstage/solar-pro-3` |
400
391
  | `upstage/solar-pro4` |
401
392
  | `writer/palmyra-x5` |
402
393
  | `x-ai/grok-4.20` |
@@ -363,12 +363,12 @@ ANTHROPIC_API_KEY=ant-...
363
363
  | `openai/tts-1` |
364
364
  | `openai/tts-1-hd` |
365
365
  | `openai/whisper-1` |
366
+ | `particle/particle-1` |
366
367
  | `perplexity/pplx-embed-v1-0.6b` |
367
368
  | `perplexity/pplx-embed-v1-4b` |
368
369
  | `perplexity/sonar` |
369
370
  | `poolside/laguna-s-2.1` |
370
371
  | `poolside/laguna-s-2.1-free` |
371
- | `prodia/flux-fast-schnell` |
372
372
  | `quiverai/arrow-2` |
373
373
  | `quiverai/arrow-2-telos` |
374
374
  | `recraft/recraft-v2` |
@@ -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 8242 models from 221 providers through a single API.
7
+ Mastra provides a unified interface for working with LLMs across multiple providers, giving you access to 8218 models from 221 providers through a single API.
8
8
 
9
9
  ## Features
10
10
 
@@ -56,7 +56,7 @@ for await (const chunk of stream) {
56
56
  | `cortecs/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.08 | $0.41 |
57
57
  | `cortecs/deepseek-v4-pro` | 1.0M | | | | | | $2 | $3 |
58
58
  | `cortecs/deepseek-v4-pro-0813` | 1.0M | | | | | | $2 | $4 |
59
- | `cortecs/deepseek-v4.1-flash` | 1.0M | | | | | | $0.20 | $0.60 |
59
+ | `cortecs/deepseek-v4.1-flash` | 1.0M | | | | | | $0.30 | $1 |
60
60
  | `cortecs/deepseek-v4.1-flash-1017` | 1.0M | | | | | | $0.20 | $0.61 |
61
61
  | `cortecs/devstral-2512` | 256K | | | | | | $0.48 | $2 |
62
62
  | `cortecs/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $2 |
@@ -82,7 +82,6 @@ for await (const chunk of stream) {
82
82
  | `deepinfra/Qwen/Qwen3.8-27B` | 262K | | | | | | $0.20 | $3 |
83
83
  | `deepinfra/Qwen/Qwen3.8-Flash` | 1.0M | | | | | | $0.11 | $0.38 |
84
84
  | `deepinfra/Qwen/Qwen3.8-Max` | 256K | | | | | | $2 | $5 |
85
- | `deepinfra/stepfun-ai/Step-5-Preview` | 1.0M | | | | | | $1 | $3 |
86
85
  | `deepinfra/tencent/Hy4-preview` | 1.0M | | | | | | $0.83 | $3 |
87
86
  | `deepinfra/thinkingmachines/Inkling-Small` | 524K | | | | | | $0.45 | $1 |
88
87
  | `deepinfra/XiaomiMiMo/MiMo-V2.6-Flash` | 1.0M | | | | | | $0.14 | $0.28 |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![Eden AI logo](https://models.dev/logos/edenai.svg)Eden AI
6
6
 
7
- Access 368 Eden AI models through Mastra's model router. Authentication is handled automatically using the `EDENAI_API_KEY` environment variable.
7
+ Access 389 Eden AI models through Mastra's model router. Authentication is handled automatically using the `EDENAI_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [Eden AI documentation](https://docs.edenai.co).
10
10
 
@@ -80,7 +80,9 @@ for await (const chunk of stream) {
80
80
  | `edenai/anthropic/claude-sonnet-5` | 1.0M | | | | | | $2 | $10 |
81
81
  | `edenai/anthropic/claude-sonnet-5-5` | 1.0M | | | | | | $2 | $10 |
82
82
  | `edenai/anthropic/claude-sonnet-latest` | 1.0M | | | | | | $2 | $10 |
83
+ | `edenai/arkanecloud/deepseek-ai/DeepSeek-V4-Flash-0731` | 1.0M | | | | | | $0.20 | $0.40 |
83
84
  | `edenai/arkanecloud/deepseek-ai/DeepSeek-V4.1-Flash` | 1.0M | | | | | | $0.30 | $1 |
85
+ | `edenai/arkanecloud/deepseek-ai/DeepSeek-V4.1-Flash-1017` | 1.0M | | | | | | $0.30 | $1 |
84
86
  | `edenai/arkanecloud/meta-llama/Llama-3.1-70B-Instruct` | 131K | | | | | | $0.80 | $0.80 |
85
87
  | `edenai/arkanecloud/meta-llama/Llama-3.1-8B-Instruct` | 131K | | | | | | $0.15 | $0.15 |
86
88
  | `edenai/arkanecloud/meta-llama/Llama-3.3-70B-Instruct` | 128K | | | | | | $0.70 | $0.70 |
@@ -185,7 +187,6 @@ for await (const chunk of stream) {
185
187
  | `edenai/fireworks_ai/gpt-oss-120b` | 131K | | | | | | $0.15 | $0.60 |
186
188
  | `edenai/flexai/DeepSeek-V4-Flash-0731` | 1.0M | | | | | | $0.12 | $0.24 |
187
189
  | `edenai/flexai/DeepSeek-V4-Flash-0731@eu` | 1.0M | | | | | | $0.12 | $0.24 |
188
- | `edenai/flexai/DeepSeek-V4.1-Flash` | 1.0M | | | | | | $0.10 | $0.71 |
189
190
  | `edenai/flexai/DeepSeek-V4.1-Flash-1017` | 1.0M | | | | | | $0.15 | $0.60 |
190
191
  | `edenai/flexai/gpt-oss-120b` | 131K | | | | | | $0.05 | $0.25 |
191
192
  | `edenai/flexai/gpt-oss-20b` | 131K | | | | | | $0.02 | $0.10 |
@@ -216,7 +217,7 @@ for await (const chunk of stream) {
216
217
  | `edenai/google/gemini-robotics-er-2-preview` | 131K | | | | | | $1 | $5 |
217
218
  | `edenai/greenference/gpt-oss-20b` | 131K | | | | | | $0.01 | $0.04 |
218
219
  | `edenai/greenpt/deepseek-v4-flash-0731` | 1.0M | | | | | | $0.16 | $0.39 |
219
- | `edenai/greenpt/deepseek-v4.1-flash` | 1.0M | | | | | | $0.25 | $1 |
220
+ | `edenai/greenpt/deepseek-v4.1-flash` | 1.0M | | | | | | $0.24 | $1 |
220
221
  | `edenai/greenpt/gpt-oss-120b` | 128K | | | | | | $0.22 | $0.78 |
221
222
  | `edenai/greenpt/llama-3.3-70b-instruct` | 128K | | | | | | $1 | $1 |
222
223
  | `edenai/greenpt/qwen3-235b-a22b-instruct-2507` | 250K | | | | | | $1 | $3 |
@@ -242,24 +243,44 @@ for await (const chunk of stream) {
242
243
  | `edenai/minimax/MiniMax-M3` | 524K | | | | | | $0.30 | $1 |
243
244
  | `edenai/minimax/MiniMax-M3.1-Flash` | 1.0M | | | | | | $0.15 | $0.60 |
244
245
  | `edenai/mistral/codestral-2508` | 256K | | | | | | $0.30 | $0.90 |
246
+ | `edenai/mistral/codestral-2508@eu` | 256K | | | | | | $0.33 | $0.99 |
245
247
  | `edenai/mistral/codestral-latest` | 256K | | | | | | $0.30 | $0.90 |
248
+ | `edenai/mistral/codestral-latest@eu` | 256K | | | | | | $0.33 | $0.99 |
246
249
  | `edenai/mistral/devstral-2512` | 262K | | | | | | $0.40 | $2 |
250
+ | `edenai/mistral/devstral-2512@eu` | 262K | | | | | | $0.44 | $2 |
247
251
  | `edenai/mistral/devstral-medium-latest` | 262K | | | | | | $0.40 | $2 |
252
+ | `edenai/mistral/devstral-medium-latest@eu` | 262K | | | | | | $0.44 | $2 |
248
253
  | `edenai/mistral/magistral-medium-latest` | 262K | | | | | | $2 | $8 |
254
+ | `edenai/mistral/magistral-medium-latest@eu` | 262K | | | | | | $2 | $8 |
249
255
  | `edenai/mistral/ministral-14b-2512` | 262K | | | | | | $0.20 | $0.20 |
256
+ | `edenai/mistral/ministral-14b-2512@eu` | 262K | | | | | | $0.22 | $0.22 |
250
257
  | `edenai/mistral/ministral-3b-2512` | 131K | | | | | | $0.10 | $0.10 |
258
+ | `edenai/mistral/ministral-3b-2512@eu` | 131K | | | | | | $0.11 | $0.11 |
251
259
  | `edenai/mistral/ministral-8b-2512` | 262K | | | | | | $0.15 | $0.15 |
260
+ | `edenai/mistral/ministral-8b-2512@eu` | 262K | | | | | | $0.17 | $0.17 |
252
261
  | `edenai/mistral/mistral-large-2407` | 131K | | | | | | $2 | $6 |
262
+ | `edenai/mistral/mistral-large-2407@eu` | 131K | | | | | | $2 | $7 |
253
263
  | `edenai/mistral/mistral-large-2512` | 262K | | | | | | $0.50 | $2 |
264
+ | `edenai/mistral/mistral-large-2512@eu` | 262K | | | | | | $0.55 | $2 |
265
+ | `edenai/mistral/mistral-large-4@eu` | 524K | | | | | | $0.75 | $2 |
254
266
  | `edenai/mistral/mistral-large-latest` | 262K | | | | | | $2 | $6 |
267
+ | `edenai/mistral/mistral-large-latest@eu` | 262K | | | | | | $2 | $7 |
255
268
  | `edenai/mistral/mistral-medium-2505` | 131K | | | | | | $0.40 | $2 |
269
+ | `edenai/mistral/mistral-medium-2505@eu` | 131K | | | | | | $0.44 | $2 |
256
270
  | `edenai/mistral/mistral-medium-2604` | 262K | | | | | | $2 | $8 |
271
+ | `edenai/mistral/mistral-medium-2604@eu` | 262K | | | | | | $2 | $8 |
257
272
  | `edenai/mistral/mistral-medium-3` | 262K | | | | | | $0.40 | $2 |
258
273
  | `edenai/mistral/mistral-medium-3-5` | 262K | | | | | | $2 | $8 |
274
+ | `edenai/mistral/mistral-medium-3-5@eu` | 262K | | | | | | $2 | $8 |
275
+ | `edenai/mistral/mistral-medium-3@eu` | 262K | | | | | | $0.44 | $2 |
259
276
  | `edenai/mistral/mistral-medium-latest` | 262K | | | | | | $2 | $8 |
277
+ | `edenai/mistral/mistral-medium-latest@eu` | 262K | | | | | | $2 | $8 |
260
278
  | `edenai/mistral/mistral-small-2603` | 262K | | | | | | $0.15 | $0.60 |
279
+ | `edenai/mistral/mistral-small-2603@eu` | 262K | | | | | | $0.17 | $0.66 |
261
280
  | `edenai/mistral/mistral-small-latest` | 262K | | | | | | $0.15 | $0.60 |
281
+ | `edenai/mistral/mistral-small-latest@eu` | 262K | | | | | | $0.17 | $0.66 |
262
282
  | `edenai/mistral/voxtral-small-latest` | 33K | | | | | | $0.10 | $0.40 |
283
+ | `edenai/mistral/voxtral-small-latest@eu` | 33K | | | | | | $0.11 | $0.44 |
263
284
  | `edenai/moonshot/kimi-k2.6` | 262K | | | | | | $0.95 | $4 |
264
285
  | `edenai/moonshot/kimi-k2.7-code` | 262K | | | | | | $0.95 | $4 |
265
286
  | `edenai/moonshot/kimi-k2.7-code-highspeed` | 262K | | | | | | $2 | $8 |
@@ -334,7 +355,7 @@ for await (const chunk of stream) {
334
355
  | `edenai/scaleway/gemma-3-27b-it` | 40K | | | | | | $0.29 | $0.57 |
335
356
  | `edenai/scaleway/gpt-oss-120b` | 128K | | | | | | $0.17 | $0.67 |
336
357
  | `edenai/scaleway/llama-3.3-70b-instruct` | 128K | | | | | | $1 | $1 |
337
- | `edenai/scaleway/qwen3-235b-a22b-instruct-2507` | 250K | | | | | | $0.84 | $3 |
358
+ | `edenai/scaleway/qwen3-235b-a22b-instruct-2507` | 250K | | | | | | $0.83 | $3 |
338
359
  | `edenai/scaleway/qwen3-coder-30b-a3b-instruct` | 128K | | | | | | $0.22 | $0.90 |
339
360
  | `edenai/sference/deepseek-ai/DeepSeek-V4-Flash-0731` | 1.0M | | | | | | $0.28 | $0.56 |
340
361
  | `edenai/sference/deepseek-ai/DeepSeek-V4.1-Flash-1017` | 1.0M | | | | | | $0.50 | $2 |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![EmpirioLabs AI logo](https://models.dev/logos/empiriolabs.svg)EmpirioLabs AI
6
6
 
7
- Access 62 EmpirioLabs AI models through Mastra's model router. Authentication is handled automatically using the `EMPIRIOLABS_API_KEY` environment variable.
7
+ Access 63 EmpirioLabs AI models through Mastra's model router. Authentication is handled automatically using the `EMPIRIOLABS_API_KEY` environment variable.
8
8
 
9
9
  Learn more in the [EmpirioLabs AI documentation](https://docs.empiriolabs.ai).
10
10
 
@@ -51,6 +51,7 @@ for await (const chunk of stream) {
51
51
  | `empiriolabs/glm-4-5-flash` | 200K | | | | | | — | — |
52
52
  | `empiriolabs/glm-4-6v-flash` | 128K | | | | | | — | — |
53
53
  | `empiriolabs/glm-4-7-flash` | 200K | | | | | | — | — |
54
+ | `empiriolabs/glm-4-7-flashx` | 200K | | | | | | $0.07 | $0.40 |
54
55
  | `empiriolabs/glm-5-1` | 202K | | | | | | $0.82 | $3 |
55
56
  | `empiriolabs/glm-5-2` | 1.0M | | | | | | $1 | $4 |
56
57
  | `empiriolabs/glm-5-3` | 1.0M | | | | | | $1 | $4 |
@@ -4,7 +4,7 @@
4
4
 
5
5
  # ![Google logo](https://models.dev/logos/google.svg)Google
6
6
 
7
- Access 38 Google models through Mastra's model router. Authentication is handled automatically using one of the following environment variables: `GOOGLE_API_KEY`, `GOOGLE_GENERATIVE_AI_API_KEY`.
7
+ Access 36 Google models through Mastra's model router. Authentication is handled automatically using one of the following environment variables: `GOOGLE_API_KEY`, `GOOGLE_GENERATIVE_AI_API_KEY`.
8
8
 
9
9
  Learn more in the [Google documentation](https://ai.google.dev/gemini-api/docs/models).
10
10
 
@@ -41,16 +41,13 @@ for await (const chunk of stream) {
41
41
  | `google/deep-research-preview-04-2026` | 131K | | | | | | $2 | $12 |
42
42
  | `google/gemini-2.5-computer-use-preview-10-2025` | 128K | | | | | | $1 | $10 |
43
43
  | `google/gemini-2.5-flash` | 1.0M | | | | | | $0.30 | $3 |
44
- | `google/gemini-2.5-flash-image` | 33K | | | | | | $0.30 | $30 |
45
44
  | `google/gemini-2.5-flash-lite` | 1.0M | | | | | | $0.10 | $0.40 |
46
45
  | `google/gemini-2.5-flash-preview-tts` | 8K | | | | | | $0.50 | $10 |
47
46
  | `google/gemini-2.5-pro` | 1.0M | | | | | | $1 | $10 |
48
47
  | `google/gemini-2.5-pro-preview-tts` | 8K | | | | | | $1 | $20 |
49
48
  | `google/gemini-3-flash-preview` | 1.0M | | | | | | $0.50 | $3 |
50
49
  | `google/gemini-3-pro-image` | 66K | | | | | | $2 | $120 |
51
- | `google/gemini-3-pro-image-preview` | 131K | | | | | | $2 | $120 |
52
50
  | `google/gemini-3.1-flash-image` | 131K | | | | | | $0.50 | $60 |
53
- | `google/gemini-3.1-flash-image-preview` | 66K | | | | | | $0.50 | $60 |
54
51
  | `google/gemini-3.1-flash-lite` | 1.0M | | | | | | $0.25 | $2 |
55
52
  | `google/gemini-3.1-flash-lite-image` | 66K | | | | | | $0.25 | $30 |
56
53
  | `google/gemini-3.1-flash-live-preview` | 131K | | | | | | $0.75 | $5 |