@mastra/mcp-docs-server 1.2.7-alpha.1 → 1.2.7-alpha.12
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/agent-builder/integrations.md +45 -3
- package/.docs/docs/agent-builder/overview.md +4 -3
- package/.docs/docs/agent-builder/skill-registries.md +1 -3
- package/.docs/docs/agent-controller/modes.md +1 -1
- package/.docs/docs/agent-controller/overview.md +4 -3
- package/.docs/docs/agent-controller/session.md +3 -5
- package/.docs/docs/agents/a2a.md +2 -1
- package/.docs/docs/agents/agent-approval.md +2 -2
- package/.docs/docs/agents/code-mode.md +1 -1
- package/.docs/docs/agents/guardrails.md +10 -9
- package/.docs/docs/agents/networks.md +1 -1
- package/.docs/docs/agents/overview.md +5 -5
- package/.docs/docs/agents/skills.md +3 -5
- package/.docs/docs/agents/structured-output.md +1 -1
- package/.docs/docs/agents/supervisor-agents.md +3 -4
- package/.docs/docs/agents/using-tools.md +2 -4
- package/.docs/docs/browser/agent-browser.md +1 -3
- package/.docs/docs/browser/browser-viewer.md +1 -3
- package/.docs/docs/browser/overview.md +2 -1
- package/.docs/docs/browser/recording.md +1 -1
- package/.docs/docs/browser/stagehand.md +1 -1
- package/.docs/docs/capabilities/channels/discord.md +98 -0
- package/.docs/docs/capabilities/channels/other-adapters.md +68 -0
- package/.docs/docs/capabilities/channels/overview.md +255 -0
- package/.docs/docs/capabilities/channels/slack.md +225 -0
- package/.docs/docs/capabilities/channels/teams.md +100 -0
- package/.docs/docs/capabilities/channels/telegram.md +98 -0
- package/.docs/docs/capabilities/channels/whatsapp.md +99 -0
- package/.docs/docs/deployment/mastra-server.md +2 -4
- package/.docs/docs/editor/overview.md +2 -6
- package/.docs/docs/editor/prompts.md +1 -1
- package/.docs/docs/editor/tools.md +3 -5
- package/.docs/docs/evals/built-in-scorers.md +2 -2
- package/.docs/docs/evals/custom-scorers.md +1 -3
- package/.docs/docs/evals/datasets/overview.md +4 -5
- package/.docs/docs/evals/datasets/running-experiments.md +10 -8
- package/.docs/docs/evals/evals-with-memory.md +1 -3
- package/.docs/docs/evals/gates-and-verdicts.md +2 -4
- package/.docs/docs/evals/overview.md +4 -1
- package/.docs/docs/evals/quick-checks.md +3 -5
- package/.docs/docs/getting-started/file-based-agents.md +116 -0
- package/.docs/docs/getting-started/manual-install.md +17 -4
- package/.docs/docs/index.md +1 -1
- package/.docs/docs/long-running-agents/background-tasks.md +3 -3
- package/.docs/docs/long-running-agents/durable-agents.md +5 -7
- package/.docs/docs/long-running-agents/goals.md +5 -7
- package/.docs/docs/long-running-agents/schedules.md +1 -1
- package/.docs/docs/long-running-agents/signal-providers.md +1 -3
- package/.docs/docs/long-running-agents/signals.md +12 -23
- package/.docs/docs/mastra-platform/database.md +2 -2
- package/.docs/docs/mastra-platform/github.md +1 -1
- package/.docs/docs/mastra-platform/observability.md +5 -1
- package/.docs/docs/mcp/mcp-apps.md +3 -3
- package/.docs/docs/mcp/overview.md +6 -10
- package/.docs/docs/memory/memory-processors.md +67 -0
- package/.docs/docs/memory/message-history.md +56 -2
- package/.docs/docs/memory/observational-memory.md +5 -4
- package/.docs/docs/memory/overview.md +8 -6
- package/.docs/docs/memory/semantic-recall.md +36 -2
- package/.docs/docs/memory/working-memory.md +3 -3
- package/.docs/docs/observability/integrations/exporters/mastra-platform.md +1 -3
- package/.docs/docs/observability/integrations/exporters/mastra-storage.md +1 -1
- package/.docs/docs/observability/logging.md +1 -1
- package/.docs/docs/observability/tracing/overview.md +1 -1
- package/.docs/docs/rag/vector-databases.md +7 -2
- package/.docs/docs/server/auth/auth0.md +1 -1
- package/.docs/docs/server/auth/better-auth.md +2 -2
- package/.docs/docs/server/auth/clerk.md +1 -1
- package/.docs/docs/server/auth/firebase.md +1 -1
- package/.docs/docs/server/auth/google.md +3 -3
- package/.docs/docs/server/auth/jwt.md +2 -2
- package/.docs/docs/server/auth/okta.md +2 -2
- package/.docs/docs/server/auth/workos.md +1 -1
- package/.docs/docs/server/mastra-client.md +1 -1
- package/.docs/docs/server/mastra-server.md +1 -1
- package/.docs/docs/server/pubsub.md +1 -1
- package/.docs/docs/server/request-context.md +4 -4
- package/.docs/docs/server/server-adapters.md +8 -8
- package/.docs/docs/storage/overview.md +214 -0
- package/.docs/docs/studio/auth.md +1 -3
- package/.docs/docs/studio/overview.md +1 -1
- package/.docs/docs/voice/livekit.md +101 -4
- package/.docs/docs/workflows/agents-and-tools.md +3 -5
- package/.docs/docs/workflows/control-flow.md +1 -3
- package/.docs/docs/workflows/overview.md +6 -7
- package/.docs/docs/workflows/snapshots.md +1 -1
- package/.docs/docs/workspace/overview.md +2 -1
- package/.docs/docs/workspace/sandbox.md +2 -0
- package/.docs/guides/build-your-ui/assistant-ui.md +1 -1
- package/.docs/guides/build-your-ui/copilotkit/channels.md +1 -1
- package/.docs/guides/build-your-ui/copilotkit/generative-ui.md +2 -2
- package/.docs/guides/build-your-ui/copilotkit/overview.md +1 -1
- package/.docs/guides/concepts/streaming.md +3 -3
- package/.docs/guides/getting-started/quickstart.md +4 -2
- package/.docs/guides/guide/chef-michel.md +0 -2
- package/.docs/guides/guide/slack-assistant.md +2 -2
- package/.docs/guides/guide/stock-agent.md +0 -2
- package/.docs/models/embeddings.md +119 -0
- package/.docs/models/environment-variables.md +7 -0
- package/.docs/models/gateways/netlify.md +4 -1
- package/.docs/models/gateways/openrouter.md +10 -7
- package/.docs/models/gateways/vercel.md +8 -1
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/abacus.md +44 -14
- package/.docs/models/providers/crossmodel.md +109 -0
- package/.docs/models/providers/empiriolabs.md +106 -0
- package/.docs/models/providers/google.md +2 -1
- package/.docs/models/providers/llmgateway.md +185 -181
- package/.docs/models/providers/meta.md +101 -0
- package/.docs/models/providers/model-oracle-ai.md +87 -0
- package/.docs/models/providers/nano-gpt.md +2 -2
- package/.docs/models/providers/neon.md +40 -29
- package/.docs/models/providers/nvidia.md +1 -3
- package/.docs/models/providers/openai.md +6 -1
- package/.docs/models/providers/opencode.md +6 -2
- package/.docs/models/providers/pioneer.md +148 -0
- package/.docs/models/providers/poolside.md +6 -5
- package/.docs/models/providers/routing-run.md +23 -34
- package/.docs/models/providers/the-grid-ai.md +3 -3
- package/.docs/models/providers/unorouter.md +95 -0
- package/.docs/models/providers/wandb.md +21 -14
- package/.docs/models/providers/xai.md +2 -1
- package/.docs/models/providers/zenifra.md +73 -0
- package/.docs/models/providers.md +7 -0
- package/.docs/reference/agent-controller/agent-controller-class.md +3 -3
- package/.docs/reference/agent-controller/session.md +4 -4
- package/.docs/reference/agents/agent.md +1 -1
- package/.docs/reference/agents/channels.md +2 -2
- package/.docs/reference/agents/inngest-agent.md +1 -1
- package/.docs/reference/agents/listSkills.md +1 -1
- package/.docs/reference/agents/listSuspendedRuns.md +3 -3
- package/.docs/reference/auth/google.md +5 -5
- package/.docs/reference/channels/channel-provider.md +1 -1
- package/.docs/reference/channels/slack-provider.md +3 -3
- package/.docs/reference/cli/mastra.md +119 -12
- package/.docs/reference/code-sdk/mount-agent-controller.md +76 -0
- package/.docs/reference/coding-agent/create-coding-agent.md +1 -1
- package/.docs/reference/configuration.md +1 -1
- package/.docs/reference/evals/checks.md +4 -4
- package/.docs/reference/evals/create-scorer.md +8 -0
- package/.docs/reference/file-based-agents/config.md +97 -0
- package/.docs/reference/file-based-agents/instructions.md +54 -0
- package/.docs/reference/file-based-agents/logger.md +26 -0
- package/.docs/reference/file-based-agents/memory.md +58 -0
- package/.docs/reference/file-based-agents/observability.md +32 -0
- package/.docs/reference/file-based-agents/processors.md +56 -0
- package/.docs/reference/file-based-agents/scorers.md +54 -0
- package/.docs/reference/file-based-agents/server.md +37 -0
- package/.docs/reference/file-based-agents/skills.md +56 -0
- package/.docs/reference/file-based-agents/storage.md +30 -0
- package/.docs/reference/file-based-agents/studio.md +56 -0
- package/.docs/reference/file-based-agents/subagents.md +123 -0
- package/.docs/reference/file-based-agents/tools.md +63 -0
- package/.docs/reference/file-based-agents/workflows.md +52 -0
- package/.docs/reference/file-based-agents/workspace.md +74 -0
- package/.docs/reference/index.md +18 -0
- package/.docs/reference/memory/memory-class.md +1 -1
- package/.docs/reference/memory/observational-memory.md +1 -1
- package/.docs/reference/memory/serialized-memory-config.md +1 -1
- package/.docs/reference/memory/summarizeConversation.md +99 -0
- package/.docs/reference/memory/summarizeThread.md +93 -0
- package/.docs/{docs/getting-started → reference}/project-structure.md +3 -10
- package/.docs/reference/pubsub/lease-provider.md +5 -5
- package/.docs/reference/server/express-adapter.md +1 -3
- package/.docs/reference/server/fastify-adapter.md +1 -3
- package/.docs/reference/server/hono-adapter.md +1 -3
- package/.docs/reference/server/koa-adapter.md +1 -3
- package/.docs/reference/server/nestjs-adapter.md +1 -3
- package/.docs/reference/signals/task-signal-provider.md +1 -1
- package/.docs/reference/storage/clickhouse.md +34 -2
- package/.docs/reference/storage/cloudflare-d1.md +1 -1
- package/.docs/reference/storage/composite.md +64 -6
- package/.docs/reference/storage/convex.md +1 -1
- package/.docs/reference/storage/dynamodb.md +1 -1
- package/.docs/reference/storage/mongodb.md +46 -46
- package/.docs/reference/storage/retention.md +74 -6
- package/.docs/reference/tools/create-tool.md +2 -2
- package/.docs/reference/tools/mcp-client.md +22 -0
- package/.docs/reference/tools/mcp-server.md +161 -4
- package/.docs/reference/vectors/mongodb.md +93 -4
- package/.docs/reference/voice/livekit.md +272 -8
- package/.docs/reference/workspace/agentcore-runtime-sandbox.md +1 -3
- package/.docs/reference/workspace/agentfs-filesystem.md +1 -3
- package/.docs/reference/workspace/apple-container-sandbox.md +6 -8
- package/.docs/reference/workspace/archil-filesystem.md +1 -3
- package/.docs/reference/workspace/azure-blob-filesystem.md +1 -3
- package/.docs/reference/workspace/blaxel-sandbox.md +1 -3
- package/.docs/reference/workspace/daytona-sandbox.md +1 -3
- package/.docs/reference/workspace/docker-sandbox.md +1 -3
- package/.docs/reference/workspace/e2b-sandbox.md +1 -3
- package/.docs/reference/workspace/files-sdk-filesystem.md +1 -3
- package/.docs/reference/workspace/gcs-filesystem.md +1 -3
- package/.docs/reference/workspace/google-drive-filesystem.md +1 -3
- package/.docs/reference/workspace/local-filesystem.md +1 -3
- package/.docs/reference/workspace/local-sandbox.md +1 -3
- package/.docs/reference/workspace/mesa-filesystem.md +4 -4
- package/.docs/reference/workspace/modal-sandbox.md +1 -3
- package/.docs/reference/workspace/railway-sandbox.md +2 -4
- package/.docs/reference/workspace/s3-filesystem.md +1 -3
- package/.docs/reference/workspace/vercel-sandbox.md +5 -7
- package/.docs/reference/workspace/vercel-serverless.md +2 -4
- package/CHANGELOG.md +36 -0
- package/package.json +5 -5
- package/.docs/docs/agents/channels.md +0 -225
- package/.docs/docs/agents/file-based-agents.md +0 -297
- package/.docs/docs/memory/storage.md +0 -267
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# Model Oracle AI
|
|
4
|
+
|
|
5
|
+
Access 15 Model Oracle AI models through Mastra's model router. Authentication is handled automatically using the `MODEL_ORACLE_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [Model Oracle AI documentation](https://modeloracle.com/setup/).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
MODEL_ORACLE_API_KEY=your-api-key
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Agent } from "@mastra/core/agent";
|
|
15
|
+
|
|
16
|
+
const agent = new Agent({
|
|
17
|
+
id: "my-agent",
|
|
18
|
+
name: "My Agent",
|
|
19
|
+
instructions: "You are a helpful assistant",
|
|
20
|
+
model: "model-oracle-ai/auto"
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// Generate a response
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
|
+
|
|
26
|
+
// Stream a response
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
|
+
for await (const chunk of stream) {
|
|
29
|
+
console.log(chunk);
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [Model Oracle AI documentation](https://modeloracle.com/setup/) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ---------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `model-oracle-ai/auto` | 1.0M | | | | | | — | — |
|
|
40
|
+
| `model-oracle-ai/claude-fable-5` | 1.0M | | | | | | — | — |
|
|
41
|
+
| `model-oracle-ai/claude-haiku-4.5` | 200K | | | | | | — | — |
|
|
42
|
+
| `model-oracle-ai/claude-opus-4.8` | 1.0M | | | | | | — | — |
|
|
43
|
+
| `model-oracle-ai/claude-sonnet-5` | 1.0M | | | | | | — | — |
|
|
44
|
+
| `model-oracle-ai/deepseek-v4-pro` | 1.0M | | | | | | — | — |
|
|
45
|
+
| `model-oracle-ai/glm-5.2` | 1.0M | | | | | | — | — |
|
|
46
|
+
| `model-oracle-ai/gpt-4.1` | 1.0M | | | | | | — | — |
|
|
47
|
+
| `model-oracle-ai/gpt-4.1-mini` | 1.0M | | | | | | — | — |
|
|
48
|
+
| `model-oracle-ai/gpt-5` | 400K | | | | | | — | — |
|
|
49
|
+
| `model-oracle-ai/gpt-5.4` | 1.1M | | | | | | — | — |
|
|
50
|
+
| `model-oracle-ai/gpt-5.4-mini` | 400K | | | | | | — | — |
|
|
51
|
+
| `model-oracle-ai/gpt-5.4-nano` | 400K | | | | | | — | — |
|
|
52
|
+
| `model-oracle-ai/gpt-5.5` | 1.1M | | | | | | — | — |
|
|
53
|
+
| `model-oracle-ai/o4-mini` | 200K | | | | | | — | — |
|
|
54
|
+
|
|
55
|
+
## Advanced configuration
|
|
56
|
+
|
|
57
|
+
### Custom headers
|
|
58
|
+
|
|
59
|
+
```typescript
|
|
60
|
+
const agent = new Agent({
|
|
61
|
+
id: "custom-agent",
|
|
62
|
+
name: "custom-agent",
|
|
63
|
+
model: {
|
|
64
|
+
url: "https://api.modeloracle.com/api/v1",
|
|
65
|
+
id: "model-oracle-ai/auto",
|
|
66
|
+
apiKey: process.env.MODEL_ORACLE_API_KEY,
|
|
67
|
+
headers: {
|
|
68
|
+
"X-Custom-Header": "value"
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
});
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
### Dynamic model selection
|
|
75
|
+
|
|
76
|
+
```typescript
|
|
77
|
+
const agent = new Agent({
|
|
78
|
+
id: "dynamic-agent",
|
|
79
|
+
name: "Dynamic Agent",
|
|
80
|
+
model: ({ requestContext }) => {
|
|
81
|
+
const useAdvanced = requestContext.task === "complex";
|
|
82
|
+
return useAdvanced
|
|
83
|
+
? "model-oracle-ai/o4-mini"
|
|
84
|
+
: "model-oracle-ai/auto";
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
```
|
|
@@ -430,8 +430,8 @@ for await (const chunk of stream) {
|
|
|
430
430
|
| `nano-gpt/perceptron/perceptron-mk1` | 33K | | | | | | $0.15 | $2 |
|
|
431
431
|
| `nano-gpt/phi-4-mini-instruct` | 128K | | | | | | $0.17 | $0.68 |
|
|
432
432
|
| `nano-gpt/phi-4-multimodal-instruct` | 128K | | | | | | $0.07 | $0.11 |
|
|
433
|
-
| `nano-gpt/poolside/laguna-m.1` |
|
|
434
|
-
| `nano-gpt/poolside/laguna-xs.2` |
|
|
433
|
+
| `nano-gpt/poolside/laguna-m.1` | 262K | | | | | | $0.20 | $0.40 |
|
|
434
|
+
| `nano-gpt/poolside/laguna-xs.2` | 262K | | | | | | $0.20 | $0.40 |
|
|
435
435
|
| `nano-gpt/qvq-max` | 128K | | | | | | $1 | $5 |
|
|
436
436
|
| `nano-gpt/qwen-3.6-plus` | 992K | | | | | | $0.45 | $3 |
|
|
437
437
|
| `nano-gpt/qwen-long` | 10.0M | | | | | | $0.10 | $0.41 |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Neon
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 36 Neon models through Mastra's model router. Authentication is handled automatically using the `NEON_AI_GATEWAY_TOKEN` environment variable. Configure `NEON_AI_GATEWAY_BASE_URL` as well.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Neon documentation](https://neon.com/docs).
|
|
8
8
|
|
|
@@ -35,33 +35,44 @@ for await (const chunk of stream) {
|
|
|
35
35
|
|
|
36
36
|
## Models
|
|
37
37
|
|
|
38
|
-
| Model
|
|
39
|
-
|
|
|
40
|
-
| `neon/claude-haiku-4-5`
|
|
41
|
-
| `neon/claude-opus-4-1`
|
|
42
|
-
| `neon/claude-opus-4-5`
|
|
43
|
-
| `neon/claude-opus-4-6`
|
|
44
|
-
| `neon/claude-opus-4-7`
|
|
45
|
-
| `neon/claude-
|
|
46
|
-
| `neon/claude-sonnet-4
|
|
47
|
-
| `neon/claude-sonnet-4-
|
|
48
|
-
| `neon/
|
|
49
|
-
| `neon/gemini-2-5-
|
|
50
|
-
| `neon/gemini-
|
|
51
|
-
| `neon/gemini-3-1-
|
|
52
|
-
| `neon/gemini-3-
|
|
53
|
-
| `neon/gemini-3-
|
|
54
|
-
| `neon/
|
|
55
|
-
| `neon/
|
|
56
|
-
| `neon/
|
|
57
|
-
| `neon/gpt-5
|
|
58
|
-
| `neon/gpt-5-
|
|
59
|
-
| `neon/gpt-5-
|
|
60
|
-
| `neon/gpt-5-
|
|
61
|
-
| `neon/gpt-5-
|
|
62
|
-
| `neon/gpt-5-
|
|
63
|
-
| `neon/gpt-
|
|
64
|
-
| `neon/gpt-
|
|
38
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
39
|
+
| ---------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
40
|
+
| `neon/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
41
|
+
| `neon/claude-opus-4-1` | 200K | | | | | | $15 | $75 |
|
|
42
|
+
| `neon/claude-opus-4-5` | 200K | | | | | | $5 | $25 |
|
|
43
|
+
| `neon/claude-opus-4-6` | 1.0M | | | | | | $5 | $25 |
|
|
44
|
+
| `neon/claude-opus-4-7` | 1.0M | | | | | | $5 | $25 |
|
|
45
|
+
| `neon/claude-opus-4-8` | 1.0M | | | | | | $5 | $25 |
|
|
46
|
+
| `neon/claude-sonnet-4` | 200K | | | | | | $3 | $15 |
|
|
47
|
+
| `neon/claude-sonnet-4-5` | 200K | | | | | | $3 | $15 |
|
|
48
|
+
| `neon/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
49
|
+
| `neon/gemini-2-5-flash` | 1.0M | | | | | | $0.30 | $3 |
|
|
50
|
+
| `neon/gemini-2-5-pro` | 1.0M | | | | | | $1 | $10 |
|
|
51
|
+
| `neon/gemini-3-1-flash-lite` | 1.0M | | | | | | $0.25 | $2 |
|
|
52
|
+
| `neon/gemini-3-1-pro` | 1.0M | | | | | | $2 | $12 |
|
|
53
|
+
| `neon/gemini-3-5-flash` | 1.0M | | | | | | $2 | $9 |
|
|
54
|
+
| `neon/gemini-3-flash` | 1.0M | | | | | | $0.50 | $3 |
|
|
55
|
+
| `neon/gemini-3-pro` | 1.0M | | | | | | $2 | $12 |
|
|
56
|
+
| `neon/gemma-3-12b` | 131K | | | | | | $0.15 | $0.50 |
|
|
57
|
+
| `neon/gpt-5` | 400K | | | | | | $1 | $10 |
|
|
58
|
+
| `neon/gpt-5-1` | 400K | | | | | | $1 | $10 |
|
|
59
|
+
| `neon/gpt-5-1-codex-max` | 400K | | | | | | $1 | $10 |
|
|
60
|
+
| `neon/gpt-5-1-codex-mini` | 400K | | | | | | $0.25 | $2 |
|
|
61
|
+
| `neon/gpt-5-2` | 400K | | | | | | $2 | $14 |
|
|
62
|
+
| `neon/gpt-5-2-codex` | 400K | | | | | | $2 | $14 |
|
|
63
|
+
| `neon/gpt-5-3-codex` | 400K | | | | | | $2 | $14 |
|
|
64
|
+
| `neon/gpt-5-4` | 1.1M | | | | | | $3 | $15 |
|
|
65
|
+
| `neon/gpt-5-4-mini` | 400K | | | | | | $0.75 | $5 |
|
|
66
|
+
| `neon/gpt-5-4-nano` | 400K | | | | | | $0.20 | $1 |
|
|
67
|
+
| `neon/gpt-5-mini` | 400K | | | | | | $0.25 | $2 |
|
|
68
|
+
| `neon/gpt-5-nano` | 400K | | | | | | $0.05 | $0.40 |
|
|
69
|
+
| `neon/gpt-oss-120b` | 131K | | | | | | $0.07 | $0.28 |
|
|
70
|
+
| `neon/gpt-oss-20b` | 131K | | | | | | $0.05 | $0.20 |
|
|
71
|
+
| `neon/llama-4-maverick` | 1.0M | | | | | | $0.50 | $2 |
|
|
72
|
+
| `neon/meta-llama-3-1-8b-instruct` | 131K | | | | | | $0.15 | $0.45 |
|
|
73
|
+
| `neon/meta-llama-3-3-70b-instruct` | 128K | | | | | | $0.50 | $2 |
|
|
74
|
+
| `neon/qwen3-next-80b-a3b-instruct` | 131K | | | | | | $0.15 | $1 |
|
|
75
|
+
| `neon/qwen35-122b-a10b` | 262K | | | | | | $0.22 | $2 |
|
|
65
76
|
|
|
66
77
|
## Advanced configuration
|
|
67
78
|
|
|
@@ -91,7 +102,7 @@ const agent = new Agent({
|
|
|
91
102
|
model: ({ requestContext }) => {
|
|
92
103
|
const useAdvanced = requestContext.task === "complex";
|
|
93
104
|
return useAdvanced
|
|
94
|
-
? "neon/
|
|
105
|
+
? "neon/qwen35-122b-a10b"
|
|
95
106
|
: "neon/claude-haiku-4-5";
|
|
96
107
|
}
|
|
97
108
|
});
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Nvidia
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 82 Nvidia models through Mastra's model router. Authentication is handled automatically using the `NVIDIA_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Nvidia documentation](https://docs.api.nvidia.com/nim/).
|
|
8
8
|
|
|
@@ -73,8 +73,6 @@ for await (const chunk of stream) {
|
|
|
73
73
|
| `nvidia/mistralai/mistral-small-4-119b-2603` | 128K | | | | | | — | — |
|
|
74
74
|
| `nvidia/mistralai/mixtral-8x22b-instruct` | 66K | | | | | | — | — |
|
|
75
75
|
| `nvidia/mistralai/mixtral-8x7b-instruct` | 33K | | | | | | — | — |
|
|
76
|
-
| `nvidia/moonshotai/kimi-k2-instruct-0905` | 262K | | | | | | — | — |
|
|
77
|
-
| `nvidia/moonshotai/kimi-k2.6` | 262K | | | | | | — | — |
|
|
78
76
|
| `nvidia/nvidia/active-speaker-detection` | — | | | | | | — | — |
|
|
79
77
|
| `nvidia/nvidia/bevformer` | 128K | | | | | | — | — |
|
|
80
78
|
| `nvidia/nvidia/cosmos-predict1-5b` | — | | | | | | — | — |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# OpenAI
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 56 OpenAI models through Mastra's model router. Authentication is handled automatically using the `OPENAI_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [OpenAI documentation](https://platform.openai.com/docs/models).
|
|
8
8
|
|
|
@@ -70,10 +70,15 @@ for await (const chunk of stream) {
|
|
|
70
70
|
| `openai/gpt-5.4-pro` | 1.1M | | | | | | $30 | $180 |
|
|
71
71
|
| `openai/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
72
72
|
| `openai/gpt-5.5-pro` | 1.1M | | | | | | $30 | $180 |
|
|
73
|
+
| `openai/gpt-5.6` | 1.1M | | | | | | $5 | $30 |
|
|
74
|
+
| `openai/gpt-5.6-luna` | 1.1M | | | | | | $1 | $6 |
|
|
75
|
+
| `openai/gpt-5.6-sol` | 1.1M | | | | | | $5 | $30 |
|
|
76
|
+
| `openai/gpt-5.6-terra` | 1.1M | | | | | | $3 | $15 |
|
|
73
77
|
| `openai/gpt-image-1` | — | | | | | | — | — |
|
|
74
78
|
| `openai/gpt-image-1-mini` | — | | | | | | — | — |
|
|
75
79
|
| `openai/gpt-image-1.5` | — | | | | | | — | — |
|
|
76
80
|
| `openai/gpt-image-2` | — | | | | | | $5 | $30 |
|
|
81
|
+
| `openai/gpt-realtime-2.1` | 128K | | | | | | $4 | $24 |
|
|
77
82
|
| `openai/o1` | 200K | | | | | | $15 | $60 |
|
|
78
83
|
| `openai/o1-pro` | 200K | | | | | | $150 | $600 |
|
|
79
84
|
| `openai/o3` | 200K | | | | | | $2 | $8 |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# OpenCode Zen
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 55 OpenCode Zen models through Mastra's model router. Authentication is handled automatically using the `OPENCODE_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [OpenCode Zen documentation](https://opencode.ai/docs/zen).
|
|
8
8
|
|
|
@@ -74,8 +74,12 @@ for await (const chunk of stream) {
|
|
|
74
74
|
| `opencode/gpt-5.4-pro` | 1.1M | | | | | | $30 | $180 |
|
|
75
75
|
| `opencode/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
76
76
|
| `opencode/gpt-5.5-pro` | 1.1M | | | | | | $30 | $180 |
|
|
77
|
+
| `opencode/gpt-5.6-luna` | 1.1M | | | | | | $1 | $6 |
|
|
78
|
+
| `opencode/gpt-5.6-sol` | 1.1M | | | | | | $5 | $30 |
|
|
79
|
+
| `opencode/gpt-5.6-terra` | 1.1M | | | | | | $3 | $15 |
|
|
80
|
+
| `opencode/grok-4.5` | 500K | | | | | | $2 | $6 |
|
|
77
81
|
| `opencode/grok-build-0.1` | 256K | | | | | | $1 | $2 |
|
|
78
|
-
| `opencode/hy3-free` |
|
|
82
|
+
| `opencode/hy3-free` | 190K | | | | | | — | — |
|
|
79
83
|
| `opencode/kimi-k2.5` | 262K | | | | | | $0.60 | $3 |
|
|
80
84
|
| `opencode/kimi-k2.6` | 262K | | | | | | $0.95 | $4 |
|
|
81
85
|
| `opencode/kimi-k2.7-code` | 262K | | | | | | $0.95 | $4 |
|
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# Pioneer
|
|
4
|
+
|
|
5
|
+
Access 76 Pioneer models through Mastra's model router. Authentication is handled automatically using the `PIONEER_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [Pioneer documentation](https://agent.pioneer.ai/llms.txt).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
PIONEER_API_KEY=your-api-key
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import { Agent } from "@mastra/core/agent";
|
|
15
|
+
|
|
16
|
+
const agent = new Agent({
|
|
17
|
+
id: "my-agent",
|
|
18
|
+
name: "My Agent",
|
|
19
|
+
instructions: "You are a helpful assistant",
|
|
20
|
+
model: "pioneer/HuggingFaceTB/SmolLM3-3B-Base"
|
|
21
|
+
});
|
|
22
|
+
|
|
23
|
+
// Generate a response
|
|
24
|
+
const response = await agent.generate("Hello!");
|
|
25
|
+
|
|
26
|
+
// Stream a response
|
|
27
|
+
const stream = await agent.stream("Tell me a story");
|
|
28
|
+
for await (const chunk of stream) {
|
|
29
|
+
console.log(chunk);
|
|
30
|
+
}
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [Pioneer documentation](https://agent.pioneer.ai/llms.txt) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ------------------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `pioneer/claude-haiku-4-5` | 200K | | | | | | $1 | $5 |
|
|
40
|
+
| `pioneer/claude-opus-4-1` | 200K | | | | | | $15 | $75 |
|
|
41
|
+
| `pioneer/claude-opus-4-5` | 200K | | | | | | $5 | $25 |
|
|
42
|
+
| `pioneer/claude-opus-4-6` | 1.0M | | | | | | $5 | $25 |
|
|
43
|
+
| `pioneer/claude-opus-4-7` | 1.0M | | | | | | $5 | $25 |
|
|
44
|
+
| `pioneer/claude-opus-4-8` | 1.0M | | | | | | $5 | $25 |
|
|
45
|
+
| `pioneer/claude-sonnet-4-5` | 1.0M | | | | | | $3 | $15 |
|
|
46
|
+
| `pioneer/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
47
|
+
| `pioneer/deepseek-ai/DeepSeek-V4-Flash` | 1.0M | | | | | | $0.10 | $0.20 |
|
|
48
|
+
| `pioneer/deepseek-ai/DeepSeek-V4-Pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
49
|
+
| `pioneer/fastino/gliguard-LLMGuardrails-300M` | 8K | | | | | | $0.15 | $0.15 |
|
|
50
|
+
| `pioneer/fastino/gliner2-base-v1` | 8K | | | | | | $0.15 | $0.15 |
|
|
51
|
+
| `pioneer/fastino/gliner2-large-v1` | 8K | | | | | | $0.15 | $0.15 |
|
|
52
|
+
| `pioneer/fastino/gliner2-multi-large-v1` | 8K | | | | | | $0.15 | $0.15 |
|
|
53
|
+
| `pioneer/fastino/gliner2-multi-v1` | 8K | | | | | | $0.15 | $0.15 |
|
|
54
|
+
| `pioneer/fastino/gliner2-privacy-filter-PII-multi` | 8K | | | | | | $0.15 | $0.15 |
|
|
55
|
+
| `pioneer/gemini-3-flash` | 1.0M | | | | | | $0.50 | $3 |
|
|
56
|
+
| `pioneer/gemini-3.1-pro` | 1.0M | | | | | | $2 | $12 |
|
|
57
|
+
| `pioneer/gemini-3.5-flash` | 1.0M | | | | | | $2 | $9 |
|
|
58
|
+
| `pioneer/google/diffusiongemma-26B-A4B-it` | 262K | | | | | | $0.50 | $0.50 |
|
|
59
|
+
| `pioneer/google/gemma-3-4b-pt` | 33K | | | | | | $0.15 | $0.15 |
|
|
60
|
+
| `pioneer/google/gemma-4-12B-it` | 33K | | | | | | $0.25 | $0.25 |
|
|
61
|
+
| `pioneer/google/gemma-4-31B-it` | 33K | | | | | | $0.50 | $0.50 |
|
|
62
|
+
| `pioneer/google/gemma-4-E2B-it` | 33K | | | | | | $0.10 | $0.10 |
|
|
63
|
+
| `pioneer/google/gemma-4-E4B-it` | 33K | | | | | | $0.20 | $0.20 |
|
|
64
|
+
| `pioneer/gpt-4.1` | 1.0M | | | | | | $2 | $8 |
|
|
65
|
+
| `pioneer/gpt-4.1-mini` | 1.0M | | | | | | $0.40 | $2 |
|
|
66
|
+
| `pioneer/gpt-4.1-nano` | 1.0M | | | | | | $0.10 | $0.40 |
|
|
67
|
+
| `pioneer/gpt-4o` | 128K | | | | | | $3 | $10 |
|
|
68
|
+
| `pioneer/gpt-4o-mini` | 128K | | | | | | $0.15 | $0.60 |
|
|
69
|
+
| `pioneer/gpt-5-mini` | 400K | | | | | | $0.25 | $2 |
|
|
70
|
+
| `pioneer/gpt-5-nano` | 400K | | | | | | $0.05 | $0.40 |
|
|
71
|
+
| `pioneer/gpt-5.1` | 400K | | | | | | $1 | $10 |
|
|
72
|
+
| `pioneer/gpt-5.3-codex` | 400K | | | | | | $2 | $14 |
|
|
73
|
+
| `pioneer/gpt-5.4` | 1.1M | | | | | | $3 | $15 |
|
|
74
|
+
| `pioneer/gpt-5.4-mini` | 400K | | | | | | $0.75 | $5 |
|
|
75
|
+
| `pioneer/gpt-5.4-nano` | 1.0M | | | | | | $0.20 | $1 |
|
|
76
|
+
| `pioneer/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
77
|
+
| `pioneer/HuggingFaceTB/SmolLM3-3B-Base` | 33K | | | | | | $0.15 | $0.15 |
|
|
78
|
+
| `pioneer/LiquidAI/LFM2-24B-A2B` | 33K | | | | | | $0.03 | $0.12 |
|
|
79
|
+
| `pioneer/meta-llama/Llama-3.1-8B-Instruct` | 131K | | | | | | $0.20 | $0.20 |
|
|
80
|
+
| `pioneer/meta-llama/Llama-3.2-1B-Instruct` | 131K | | | | | | $0.10 | $0.20 |
|
|
81
|
+
| `pioneer/meta-llama/Llama-3.2-3B-Instruct` | 131K | | | | | | $0.10 | $0.34 |
|
|
82
|
+
| `pioneer/meta-llama/Llama-3.3-70B-Instruct` | 131K | | | | | | $0.90 | $0.90 |
|
|
83
|
+
| `pioneer/MiniMaxAI/MiniMax-M2.7` | 205K | | | | | | $0.28 | $1 |
|
|
84
|
+
| `pioneer/MiniMaxAI/MiniMax-M3` | 1.0M | | | | | | $0.30 | $1 |
|
|
85
|
+
| `pioneer/mistral-medium-3.5` | 262K | | | | | | $2 | $8 |
|
|
86
|
+
| `pioneer/mistralai/Mistral-7B-Instruct-v0.3` | 33K | | | | | | $0.20 | $0.20 |
|
|
87
|
+
| `pioneer/mistralai/Mistral-Nemo-Instruct-2407` | 131K | | | | | | $0.02 | $0.03 |
|
|
88
|
+
| `pioneer/mistralai/Mistral-Small-4-119B-2603` | 262K | | | | | | $0.15 | $0.60 |
|
|
89
|
+
| `pioneer/moonshotai/Kimi-K2.6` | 262K | | | | | | $0.95 | $4 |
|
|
90
|
+
| `pioneer/moonshotai/Kimi-K2.7-Code` | 262K | | | | | | $0.95 | $4 |
|
|
91
|
+
| `pioneer/nvidia/NVIDIA-Nemotron-3-Nano-30B-A3B-BF16` | 262K | | | | | | $0.05 | $0.20 |
|
|
92
|
+
| `pioneer/nvidia/NVIDIA-Nemotron-3-Super-120B-A12B-FP8` | 1.0M | | | | | | $0.09 | $0.45 |
|
|
93
|
+
| `pioneer/nvidia/NVIDIA-Nemotron-3-Ultra-550B-A55B-BF16` | 1.0M | | | | | | $0.50 | $3 |
|
|
94
|
+
| `pioneer/openai/gpt-oss-120b` | 131K | | | | | | $0.15 | $0.60 |
|
|
95
|
+
| `pioneer/openai/gpt-oss-20b` | 131K | | | | | | $0.07 | $0.30 |
|
|
96
|
+
| `pioneer/pioneer/auto` | 1.0M | | | | | | — | — |
|
|
97
|
+
| `pioneer/Qwen/Qwen3-1.7B-Base` | 33K | | | | | | $0.10 | $0.10 |
|
|
98
|
+
| `pioneer/Qwen/Qwen3-32B` | 131K | | | | | | $0.90 | $0.90 |
|
|
99
|
+
| `pioneer/Qwen/Qwen3-4B-Base` | 33K | | | | | | $0.15 | $0.15 |
|
|
100
|
+
| `pioneer/Qwen/Qwen3-4B-Instruct-2507` | 262K | | | | | | $0.20 | $0.20 |
|
|
101
|
+
| `pioneer/Qwen/Qwen3-8B` | 131K | | | | | | $0.20 | $0.20 |
|
|
102
|
+
| `pioneer/Qwen/Qwen3.5-9B` | 33K | | | | | | $0.30 | $0.30 |
|
|
103
|
+
| `pioneer/Qwen/Qwen3.6-27B` | 33K | | | | | | $0.60 | $0.60 |
|
|
104
|
+
| `pioneer/Qwen/Qwen3.6-35B-A3B` | 262K | | | | | | $0.14 | $1 |
|
|
105
|
+
| `pioneer/qwen3.6-flash` | 1.0M | | | | | | $0.19 | $1 |
|
|
106
|
+
| `pioneer/qwen3.6-max-preview` | 262K | | | | | | $1 | $6 |
|
|
107
|
+
| `pioneer/qwen3.6-plus` | 1.0M | | | | | | $0.33 | $2 |
|
|
108
|
+
| `pioneer/qwen3.7-max` | 1.0M | | | | | | $1 | $4 |
|
|
109
|
+
| `pioneer/qwen3.7-plus` | 1.0M | | | | | | $0.32 | $1 |
|
|
110
|
+
| `pioneer/sakana/fugu-ultra` | 1.0M | | | | | | $5 | $30 |
|
|
111
|
+
| `pioneer/XiaomiMiMo/MiMo-V2.5` | 1.1M | | | | | | $0.14 | $0.28 |
|
|
112
|
+
| `pioneer/XiaomiMiMo/MiMo-V2.5-Pro` | 1.1M | | | | | | $0.43 | $0.87 |
|
|
113
|
+
| `pioneer/zai-org/GLM-5.1` | 203K | | | | | | $0.98 | $3 |
|
|
114
|
+
| `pioneer/zai-org/GLM-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
115
|
+
|
|
116
|
+
## Advanced configuration
|
|
117
|
+
|
|
118
|
+
### Custom headers
|
|
119
|
+
|
|
120
|
+
```typescript
|
|
121
|
+
const agent = new Agent({
|
|
122
|
+
id: "custom-agent",
|
|
123
|
+
name: "custom-agent",
|
|
124
|
+
model: {
|
|
125
|
+
url: "https://api.pioneer.ai/v1",
|
|
126
|
+
id: "pioneer/HuggingFaceTB/SmolLM3-3B-Base",
|
|
127
|
+
apiKey: process.env.PIONEER_API_KEY,
|
|
128
|
+
headers: {
|
|
129
|
+
"X-Custom-Header": "value"
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
});
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
### Dynamic model selection
|
|
136
|
+
|
|
137
|
+
```typescript
|
|
138
|
+
const agent = new Agent({
|
|
139
|
+
id: "dynamic-agent",
|
|
140
|
+
name: "Dynamic Agent",
|
|
141
|
+
model: ({ requestContext }) => {
|
|
142
|
+
const useAdvanced = requestContext.task === "complex";
|
|
143
|
+
return useAdvanced
|
|
144
|
+
? "pioneer/zai-org/GLM-5.2"
|
|
145
|
+
: "pioneer/HuggingFaceTB/SmolLM3-3B-Base";
|
|
146
|
+
}
|
|
147
|
+
});
|
|
148
|
+
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Poolside
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 3 Poolside models through Mastra's model router. Authentication is handled automatically using the `POOLSIDE_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Poolside documentation](https://platform.poolside.ai).
|
|
8
8
|
|
|
@@ -34,10 +34,11 @@ for await (const chunk of stream) {
|
|
|
34
34
|
|
|
35
35
|
## Models
|
|
36
36
|
|
|
37
|
-
| Model
|
|
38
|
-
|
|
|
39
|
-
| `poolside/poolside/laguna-m.1`
|
|
40
|
-
| `poolside/poolside/laguna-xs.
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| --------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `poolside/poolside/laguna-m.1` | 262K | | | | | | — | — |
|
|
40
|
+
| `poolside/poolside/laguna-xs-2.1` | 262K | | | | | | — | — |
|
|
41
|
+
| `poolside/poolside/laguna-xs.2` | 262K | | | | | | — | — |
|
|
41
42
|
|
|
42
43
|
## Advanced configuration
|
|
43
44
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# routing.run
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 15 routing.run models through Mastra's model router. Authentication is handled automatically using the `ROUTING_RUN_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [routing.run documentation](https://docs.routing.run).
|
|
8
8
|
|
|
@@ -17,7 +17,7 @@ const agent = new Agent({
|
|
|
17
17
|
id: "my-agent",
|
|
18
18
|
name: "My Agent",
|
|
19
19
|
instructions: "You are a helpful assistant",
|
|
20
|
-
model: "routing-run/
|
|
20
|
+
model: "routing-run/claude-opus-4-8"
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
// Generate a response
|
|
@@ -34,34 +34,23 @@ for await (const chunk of stream) {
|
|
|
34
34
|
|
|
35
35
|
## Models
|
|
36
36
|
|
|
37
|
-
| Model
|
|
38
|
-
|
|
|
39
|
-
| `routing-run/
|
|
40
|
-
| `routing-run/
|
|
41
|
-
| `routing-run/
|
|
42
|
-
| `routing-run/
|
|
43
|
-
| `routing-run/
|
|
44
|
-
| `routing-run/
|
|
45
|
-
| `routing-run/
|
|
46
|
-
| `routing-run/
|
|
47
|
-
| `routing-run/
|
|
48
|
-
| `routing-run/
|
|
49
|
-
| `routing-run/
|
|
50
|
-
| `routing-run/
|
|
51
|
-
| `routing-run/
|
|
52
|
-
| `routing-run/
|
|
53
|
-
| `routing-run/
|
|
54
|
-
| `routing-run/route/minimax-m2.5-highspeed` | 100K | | | | | | $0.19 | $1 |
|
|
55
|
-
| `routing-run/route/minimax-m2.7` | 100K | | | | | | $0.33 | $1 |
|
|
56
|
-
| `routing-run/route/minimax-m2.7-highspeed` | 100K | | | | | | $0.33 | $1 |
|
|
57
|
-
| `routing-run/route/mistral-large-3` | 128K | | | | | | $0.50 | $2 |
|
|
58
|
-
| `routing-run/route/mistral-medium-2505` | 128K | | | | | | $0.40 | $2 |
|
|
59
|
-
| `routing-run/route/mistral-small-2503` | 128K | | | | | | $0.15 | $0.60 |
|
|
60
|
-
| `routing-run/route/qwen3.6-27b` | 202K | | | | | | $1 | $3 |
|
|
61
|
-
| `routing-run/route/qwen3.6-27b-202k` | 202K | | | | | | $1 | $3 |
|
|
62
|
-
| `routing-run/route/step-3.5-flash` | 262K | | | | | | $0.10 | $0.29 |
|
|
63
|
-
| `routing-run/route/step-3.5-flash-2603` | 262K | | | | | | $0.10 | $0.30 |
|
|
64
|
-
| `routing-run/route/stepfun-3.5-flash` | 262K | | | | | | $0.10 | $0.29 |
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ---------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `routing-run/claude-opus-4-8` | 1.0M | | | | | | $5 | $25 |
|
|
40
|
+
| `routing-run/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
41
|
+
| `routing-run/deepseek-v4-flash` | 1.0M | | | | | | $0.11 | $0.22 |
|
|
42
|
+
| `routing-run/deepseek-v4-pro` | 1.0M | | | | | | $0.35 | $0.70 |
|
|
43
|
+
| `routing-run/glm-5.2` | 200K | | | | | | $0.80 | $2 |
|
|
44
|
+
| `routing-run/glm-5.2-nitro` | 200K | | | | | | $0.80 | $2 |
|
|
45
|
+
| `routing-run/gpt-5.6-luna` | 1.0M | | | | | | $0.70 | $4 |
|
|
46
|
+
| `routing-run/gpt-5.6-sol` | 1.0M | | | | | | $3 | $15 |
|
|
47
|
+
| `routing-run/gpt-5.6-terra` | 1.0M | | | | | | $2 | $9 |
|
|
48
|
+
| `routing-run/kimi-k2.6` | 200K | | | | | | $0.28 | $1 |
|
|
49
|
+
| `routing-run/kimi-k2.6-nitro` | 200K | | | | | | $0.28 | $1 |
|
|
50
|
+
| `routing-run/kimi-k2.7-code` | 200K | | | | | | $0.28 | $1 |
|
|
51
|
+
| `routing-run/kimi-k2.7-code-nitro` | 200K | | | | | | $0.28 | $1 |
|
|
52
|
+
| `routing-run/nemotron-3-ultra` | 131K | | | | | | $0.10 | $0.10 |
|
|
53
|
+
| `routing-run/qwen3.5-9b` | 262K | | | | | | $0.16 | $0.48 |
|
|
65
54
|
|
|
66
55
|
## Advanced configuration
|
|
67
56
|
|
|
@@ -72,8 +61,8 @@ const agent = new Agent({
|
|
|
72
61
|
id: "custom-agent",
|
|
73
62
|
name: "custom-agent",
|
|
74
63
|
model: {
|
|
75
|
-
url: "https://
|
|
76
|
-
id: "routing-run/
|
|
64
|
+
url: "https://api.routing.run/v1",
|
|
65
|
+
id: "routing-run/claude-opus-4-8",
|
|
77
66
|
apiKey: process.env.ROUTING_RUN_API_KEY,
|
|
78
67
|
headers: {
|
|
79
68
|
"X-Custom-Header": "value"
|
|
@@ -91,8 +80,8 @@ const agent = new Agent({
|
|
|
91
80
|
model: ({ requestContext }) => {
|
|
92
81
|
const useAdvanced = requestContext.task === "complex";
|
|
93
82
|
return useAdvanced
|
|
94
|
-
? "routing-run/
|
|
95
|
-
: "routing-run/
|
|
83
|
+
? "routing-run/qwen3.5-9b"
|
|
84
|
+
: "routing-run/claude-opus-4-8";
|
|
96
85
|
}
|
|
97
86
|
});
|
|
98
87
|
```
|
|
@@ -37,13 +37,13 @@ for await (const chunk of stream) {
|
|
|
37
37
|
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
38
|
| ---------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
39
|
| `the-grid-ai/agent-max` | 1.0M | | | | | | — | — |
|
|
40
|
-
| `the-grid-ai/agent-prime` |
|
|
40
|
+
| `the-grid-ai/agent-prime` | 197K | | | | | | — | — |
|
|
41
41
|
| `the-grid-ai/agent-standard` | 128K | | | | | | — | — |
|
|
42
42
|
| `the-grid-ai/code-max` | 1.0M | | | | | | — | — |
|
|
43
|
-
| `the-grid-ai/code-prime` |
|
|
43
|
+
| `the-grid-ai/code-prime` | 197K | | | | | | — | — |
|
|
44
44
|
| `the-grid-ai/code-standard` | 128K | | | | | | — | — |
|
|
45
45
|
| `the-grid-ai/text-max` | 1.0M | | | | | | — | — |
|
|
46
|
-
| `the-grid-ai/text-prime` |
|
|
46
|
+
| `the-grid-ai/text-prime` | 197K | | | | | | — | — |
|
|
47
47
|
| `the-grid-ai/text-standard` | 128K | | | | | | — | — |
|
|
48
48
|
|
|
49
49
|
## Advanced configuration
|