@mastra/mcp-docs-server 1.2.7-alpha.12 → 1.2.7-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.docs/docs/agents/using-tools.md +2 -0
- package/.docs/docs/evals/datasets/overview.md +2 -0
- package/.docs/docs/evals/datasets/running-experiments.md +2 -0
- package/.docs/docs/evals/gates-and-verdicts.md +17 -0
- package/.docs/docs/getting-started/file-based-agents.md +7 -4
- package/.docs/docs/mastra-platform/github.md +2 -2
- package/.docs/docs/observability/logging.md +2 -0
- package/.docs/docs/observability/metrics/querying.md +2 -0
- package/.docs/docs/observability/tracing/overview.md +2 -0
- package/.docs/docs/workflows/overview.md +1 -1
- package/.docs/models/environment-variables.md +10 -2
- package/.docs/models/gateways/azure-openai.md +15 -15
- package/.docs/models/gateways/mastra.md +2 -2
- package/.docs/models/gateways/openrouter.md +1 -2
- package/.docs/models/gateways/vercel.md +4 -1
- package/.docs/models/index.md +1 -1
- package/.docs/models/providers/ai-router.md +77 -0
- package/.docs/models/providers/ambient.md +4 -3
- package/.docs/models/providers/blueclaw.md +74 -0
- package/.docs/models/providers/crossmodel.md +4 -1
- package/.docs/models/providers/daoxe.md +81 -0
- package/.docs/models/providers/databricks.md +4 -2
- package/.docs/models/providers/deepinfra.md +2 -2
- package/.docs/models/providers/ebcloud.md +76 -0
- package/.docs/models/providers/hpc-ai.md +16 -10
- package/.docs/models/providers/inferx.md +78 -0
- package/.docs/models/providers/llmgateway.md +1 -3
- package/.docs/models/providers/lynkr.md +73 -0
- package/.docs/models/providers/neon.md +1 -1
- package/.docs/models/providers/stepfun-ai-step-plan.md +75 -0
- package/.docs/models/providers/stepfun-ai.md +6 -6
- package/.docs/models/providers/stepfun-step-plan.md +76 -0
- package/.docs/models/providers/stepfun.md +5 -5
- package/.docs/models/providers/vivgrid.md +5 -2
- package/.docs/models/providers/wafer.ai.md +9 -12
- package/.docs/models/providers/zenmux.md +5 -1
- package/.docs/models/providers.md +10 -2
- package/.docs/reference/coding-agent/create-coding-agent.md +5 -4
- package/.docs/reference/evals/run-evals.md +2 -2
- package/.docs/reference/mastra-platform/api.md +1 -1
- package/.docs/reference/observability/metrics/automatic-metrics.md +8 -8
- package/.docs/reference/observability/tracing/exporters/braintrust.md +1 -0
- package/.docs/reference/observability/tracing/exporters/datadog.md +10 -9
- package/.docs/reference/observability/tracing/exporters/langsmith.md +8 -7
- package/.docs/reference/observability/tracing/exporters/posthog.md +13 -12
- package/.docs/reference/observability/tracing/exporters/sentry.md +1 -0
- package/.docs/reference/observability/tracing/interfaces.md +9 -0
- package/.docs/reference/processors/stream-error-retry-processor.md +25 -0
- package/.docs/reference/server/register-api-route.md +5 -4
- package/.docs/reference/templates/overview.md +1 -1
- package/CHANGELOG.md +14 -0
- package/package.json +5 -5
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# DaoXE
|
|
4
|
+
|
|
5
|
+
Access 9 DaoXE models through Mastra's model router. Authentication is handled automatically using the `DAOXE_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [DaoXE documentation](https://daoxe.com/pricing).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
DAOXE_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: "daoxe/claude-haiku-4-5-20251001"
|
|
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 [DaoXE documentation](https://daoxe.com/pricing) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| --------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `daoxe/claude-haiku-4-5-20251001` | 200K | | | | | | $1 | $5 |
|
|
40
|
+
| `daoxe/claude-opus-4-8` | 1.0M | | | | | | $5 | $25 |
|
|
41
|
+
| `daoxe/claude-sonnet-4-6` | 1.0M | | | | | | $3 | $15 |
|
|
42
|
+
| `daoxe/gemini-3.1-pro-preview` | 1.0M | | | | | | $2 | $12 |
|
|
43
|
+
| `daoxe/gpt-5.4` | 1.1M | | | | | | $3 | $15 |
|
|
44
|
+
| `daoxe/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
45
|
+
| `daoxe/grok-4.3` | 1.0M | | | | | | $1 | $3 |
|
|
46
|
+
| `daoxe/grok-4.5` | 500K | | | | | | $2 | $6 |
|
|
47
|
+
| `daoxe/kimi-k2.5` | 262K | | | | | | $0.60 | $3 |
|
|
48
|
+
|
|
49
|
+
## Advanced configuration
|
|
50
|
+
|
|
51
|
+
### Custom headers
|
|
52
|
+
|
|
53
|
+
```typescript
|
|
54
|
+
const agent = new Agent({
|
|
55
|
+
id: "custom-agent",
|
|
56
|
+
name: "custom-agent",
|
|
57
|
+
model: {
|
|
58
|
+
url: "https://daoxe.com/v1",
|
|
59
|
+
id: "daoxe/claude-haiku-4-5-20251001",
|
|
60
|
+
apiKey: process.env.DAOXE_API_KEY,
|
|
61
|
+
headers: {
|
|
62
|
+
"X-Custom-Header": "value"
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
});
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### Dynamic model selection
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
const agent = new Agent({
|
|
72
|
+
id: "dynamic-agent",
|
|
73
|
+
name: "Dynamic Agent",
|
|
74
|
+
model: ({ requestContext }) => {
|
|
75
|
+
const useAdvanced = requestContext.task === "complex";
|
|
76
|
+
return useAdvanced
|
|
77
|
+
? "daoxe/kimi-k2.5"
|
|
78
|
+
: "daoxe/claude-haiku-4-5-20251001";
|
|
79
|
+
}
|
|
80
|
+
});
|
|
81
|
+
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Databricks
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 27 Databricks models through Mastra's model router. Authentication is handled automatically using the `DATABRICKS_TOKEN` environment variable. Configure `DATABRICKS_HOST` as well.
|
|
6
6
|
|
|
7
7
|
Learn more in the [Databricks documentation](https://docs.databricks.com/aws/en/machine-learning/foundation-models/).
|
|
8
8
|
|
|
@@ -51,6 +51,7 @@ for await (const chunk of stream) {
|
|
|
51
51
|
| `databricks/databricks-gemini-3-1-pro` | 1.0M | | | | | | $2 | $12 |
|
|
52
52
|
| `databricks/databricks-gemini-3-flash` | 1.0M | | | | | | $0.50 | $3 |
|
|
53
53
|
| `databricks/databricks-gemini-3-pro` | 1.0M | | | | | | $2 | $12 |
|
|
54
|
+
| `databricks/databricks-glm-5-2` | 1.0M | | | | | | $1 | $4 |
|
|
54
55
|
| `databricks/databricks-gpt-5` | 400K | | | | | | $1 | $10 |
|
|
55
56
|
| `databricks/databricks-gpt-5-1` | 400K | | | | | | $1 | $10 |
|
|
56
57
|
| `databricks/databricks-gpt-5-2` | 400K | | | | | | $2 | $14 |
|
|
@@ -62,6 +63,7 @@ for await (const chunk of stream) {
|
|
|
62
63
|
| `databricks/databricks-gpt-5-nano` | 400K | | | | | | $0.05 | $0.40 |
|
|
63
64
|
| `databricks/databricks-gpt-oss-120b` | 131K | | | | | | $0.07 | $0.28 |
|
|
64
65
|
| `databricks/databricks-gpt-oss-20b` | 131K | | | | | | $0.05 | $0.20 |
|
|
66
|
+
| `databricks/databricks-kimi-k2-7-code` | 262K | | | | | | $0.95 | $4 |
|
|
65
67
|
|
|
66
68
|
## Advanced configuration
|
|
67
69
|
|
|
@@ -91,7 +93,7 @@ const agent = new Agent({
|
|
|
91
93
|
model: ({ requestContext }) => {
|
|
92
94
|
const useAdvanced = requestContext.task === "complex";
|
|
93
95
|
return useAdvanced
|
|
94
|
-
? "databricks/databricks-
|
|
96
|
+
? "databricks/databricks-kimi-k2-7-code"
|
|
95
97
|
: "databricks/databricks-claude-haiku-4-5";
|
|
96
98
|
}
|
|
97
99
|
});
|
|
@@ -41,7 +41,7 @@ for await (const chunk of stream) {
|
|
|
41
41
|
| `deepinfra/google/gemma-4-26B-A4B-it` | 262K | | | | | | $0.07 | $0.34 |
|
|
42
42
|
| `deepinfra/google/gemma-4-31B-it` | 262K | | | | | | $0.13 | $0.38 |
|
|
43
43
|
| `deepinfra/meta-llama/Llama-3.3-70B-Instruct-Turbo` | 131K | | | | | | $0.10 | $0.32 |
|
|
44
|
-
| `deepinfra/meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8` | 1.0M | | | | | | $0.
|
|
44
|
+
| `deepinfra/meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8` | 1.0M | | | | | | $0.20 | $0.80 |
|
|
45
45
|
| `deepinfra/meta-llama/Llama-4-Scout-17B-16E-Instruct` | 328K | | | | | | $0.10 | $0.30 |
|
|
46
46
|
| `deepinfra/MiniMaxAI/MiniMax-M2.5` | 197K | | | | | | $0.15 | $1 |
|
|
47
47
|
| `deepinfra/MiniMaxAI/MiniMax-M2.7` | 197K | | | | | | $0.25 | $1 |
|
|
@@ -68,7 +68,7 @@ for await (const chunk of stream) {
|
|
|
68
68
|
| `deepinfra/Qwen/Qwen3.7-Max` | 256K | | | | | | $3 | $8 |
|
|
69
69
|
| `deepinfra/XiaomiMiMo/MiMo-V2.5` | 262K | | | | | | $0.40 | $2 |
|
|
70
70
|
| `deepinfra/XiaomiMiMo/MiMo-V2.5-Pro` | 1.0M | | | | | | $1 | $3 |
|
|
71
|
-
| `deepinfra/zai-org/GLM-4.6` | 203K | | | | | | $0.
|
|
71
|
+
| `deepinfra/zai-org/GLM-4.6` | 203K | | | | | | $0.50 | $2 |
|
|
72
72
|
| `deepinfra/zai-org/GLM-4.7` | 203K | | | | | | $0.40 | $2 |
|
|
73
73
|
| `deepinfra/zai-org/GLM-4.7-Flash` | 203K | | | | | | $0.06 | $0.40 |
|
|
74
74
|
| `deepinfra/zai-org/GLM-5` | 203K | | | | | | $0.60 | $2 |
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# EBCloud
|
|
4
|
+
|
|
5
|
+
Access 4 EBCloud models through Mastra's model router. Authentication is handled automatically using the `EBCLOUD_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [EBCloud documentation](https://docs.ebtech.com/ai/model-api.html).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
EBCLOUD_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: "ebcloud/DeepSeek-V4-Flash"
|
|
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 [EBCloud documentation](https://docs.ebtech.com/ai/model-api.html) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| --------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `ebcloud/DeepSeek-V4-Flash` | 1.0M | | | | | | $0.14 | $0.29 |
|
|
40
|
+
| `ebcloud/DeepSeek-V4-Pro` | 1.0M | | | | | | $0.43 | $0.86 |
|
|
41
|
+
| `ebcloud/GLM-5.1` | 200K | | | | | | $0.86 | $3 |
|
|
42
|
+
| `ebcloud/Kimi-K2.6` | 262K | | | | | | $0.93 | $4 |
|
|
43
|
+
|
|
44
|
+
## Advanced configuration
|
|
45
|
+
|
|
46
|
+
### Custom headers
|
|
47
|
+
|
|
48
|
+
```typescript
|
|
49
|
+
const agent = new Agent({
|
|
50
|
+
id: "custom-agent",
|
|
51
|
+
name: "custom-agent",
|
|
52
|
+
model: {
|
|
53
|
+
url: "https://maas-api.ebcloud.com/v1",
|
|
54
|
+
id: "ebcloud/DeepSeek-V4-Flash",
|
|
55
|
+
apiKey: process.env.EBCLOUD_API_KEY,
|
|
56
|
+
headers: {
|
|
57
|
+
"X-Custom-Header": "value"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Dynamic model selection
|
|
64
|
+
|
|
65
|
+
```typescript
|
|
66
|
+
const agent = new Agent({
|
|
67
|
+
id: "dynamic-agent",
|
|
68
|
+
name: "Dynamic Agent",
|
|
69
|
+
model: ({ requestContext }) => {
|
|
70
|
+
const useAdvanced = requestContext.task === "complex";
|
|
71
|
+
return useAdvanced
|
|
72
|
+
? "ebcloud/Kimi-K2.6"
|
|
73
|
+
: "ebcloud/DeepSeek-V4-Flash";
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# HPC-AI
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 9 HPC-AI models through Mastra's model router. Authentication is handled automatically using the `HPC_AI_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [HPC-AI documentation](https://www.hpc-ai.com/doc/docs/quickstart/).
|
|
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: "hpc-ai/
|
|
20
|
+
model: "hpc-ai/anthropic/claude-opus-4.7"
|
|
21
21
|
});
|
|
22
22
|
|
|
23
23
|
// Generate a response
|
|
@@ -34,11 +34,17 @@ for await (const chunk of stream) {
|
|
|
34
34
|
|
|
35
35
|
## Models
|
|
36
36
|
|
|
37
|
-
| Model
|
|
38
|
-
|
|
|
39
|
-
| `hpc-ai/
|
|
40
|
-
| `hpc-ai/
|
|
41
|
-
| `hpc-ai/
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ----------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `hpc-ai/anthropic/claude-opus-4.7` | 1.0M | | | | | | $5 | $25 |
|
|
40
|
+
| `hpc-ai/deepseek/deepseek-v4-flash` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
41
|
+
| `hpc-ai/deepseek/deepseek-v4-pro` | 1.0M | | | | | | $2 | $3 |
|
|
42
|
+
| `hpc-ai/minimax/minimax-m2.5` | 196K | | | | | | $0.30 | $1 |
|
|
43
|
+
| `hpc-ai/moonshotai/kimi-k2.5` | 256K | | | | | | $0.60 | $3 |
|
|
44
|
+
| `hpc-ai/moonshotai/kimi-k2.7-code` | 256K | | | | | | $0.95 | $4 |
|
|
45
|
+
| `hpc-ai/openai/gpt-5.5` | 1.1M | | | | | | $5 | $30 |
|
|
46
|
+
| `hpc-ai/zai-org/glm-5.1` | 202K | | | | | | $0.61 | $2 |
|
|
47
|
+
| `hpc-ai/zai-org/glm-5.2` | 1.0M | | | | | | $1 | $4 |
|
|
42
48
|
|
|
43
49
|
## Advanced configuration
|
|
44
50
|
|
|
@@ -50,7 +56,7 @@ const agent = new Agent({
|
|
|
50
56
|
name: "custom-agent",
|
|
51
57
|
model: {
|
|
52
58
|
url: "https://api.hpc-ai.com/inference/v1",
|
|
53
|
-
id: "hpc-ai/
|
|
59
|
+
id: "hpc-ai/anthropic/claude-opus-4.7",
|
|
54
60
|
apiKey: process.env.HPC_AI_API_KEY,
|
|
55
61
|
headers: {
|
|
56
62
|
"X-Custom-Header": "value"
|
|
@@ -68,8 +74,8 @@ const agent = new Agent({
|
|
|
68
74
|
model: ({ requestContext }) => {
|
|
69
75
|
const useAdvanced = requestContext.task === "complex";
|
|
70
76
|
return useAdvanced
|
|
71
|
-
? "hpc-ai/zai-org/glm-5.
|
|
72
|
-
: "hpc-ai/
|
|
77
|
+
? "hpc-ai/zai-org/glm-5.2"
|
|
78
|
+
: "hpc-ai/anthropic/claude-opus-4.7";
|
|
73
79
|
}
|
|
74
80
|
});
|
|
75
81
|
```
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# InferX
|
|
4
|
+
|
|
5
|
+
Access 6 InferX models through Mastra's model router. Authentication is handled automatically using the `INFERX_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [InferX documentation](https://model.inferx.net/endpoints).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
INFERX_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: "inferx/google/gemma-4-31b-it-fp8"
|
|
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 [InferX documentation](https://model.inferx.net/endpoints) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `inferx/google/gemma-4-31b-it-fp8` | 262K | | | | | | — | — |
|
|
40
|
+
| `inferx/qwen/qwen3-coder-next-fp8` | 256K | | | | | | — | — |
|
|
41
|
+
| `inferx/qwen/qwen3-coder-next-fp8-1m` | 1.0M | | | | | | — | — |
|
|
42
|
+
| `inferx/qwen/qwen3.5-122b-a10b-nvfp4` | 256K | | | | | | — | — |
|
|
43
|
+
| `inferx/qwen/qwen3.6-27b-fp8` | 262K | | | | | | — | — |
|
|
44
|
+
| `inferx/qwen/qwen3.6-35b-a3b-fp8` | 262K | | | | | | — | — |
|
|
45
|
+
|
|
46
|
+
## Advanced configuration
|
|
47
|
+
|
|
48
|
+
### Custom headers
|
|
49
|
+
|
|
50
|
+
```typescript
|
|
51
|
+
const agent = new Agent({
|
|
52
|
+
id: "custom-agent",
|
|
53
|
+
name: "custom-agent",
|
|
54
|
+
model: {
|
|
55
|
+
url: "https://model.inferx.net/v1",
|
|
56
|
+
id: "inferx/google/gemma-4-31b-it-fp8",
|
|
57
|
+
apiKey: process.env.INFERX_API_KEY,
|
|
58
|
+
headers: {
|
|
59
|
+
"X-Custom-Header": "value"
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
});
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### Dynamic model selection
|
|
66
|
+
|
|
67
|
+
```typescript
|
|
68
|
+
const agent = new Agent({
|
|
69
|
+
id: "dynamic-agent",
|
|
70
|
+
name: "Dynamic Agent",
|
|
71
|
+
model: ({ requestContext }) => {
|
|
72
|
+
const useAdvanced = requestContext.task === "complex";
|
|
73
|
+
return useAdvanced
|
|
74
|
+
? "inferx/qwen/qwen3.6-35b-a3b-fp8"
|
|
75
|
+
: "inferx/google/gemma-4-31b-it-fp8";
|
|
76
|
+
}
|
|
77
|
+
});
|
|
78
|
+
```
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# LLM Gateway
|
|
4
4
|
|
|
5
|
-
Access
|
|
5
|
+
Access 180 LLM Gateway models through Mastra's model router. Authentication is handled automatically using the `LLMGATEWAY_API_KEY` environment variable.
|
|
6
6
|
|
|
7
7
|
Learn more in the [LLM Gateway documentation](https://llmgateway.io/docs).
|
|
8
8
|
|
|
@@ -143,8 +143,6 @@ for await (const chunk of stream) {
|
|
|
143
143
|
| `llmgateway/llama-3.3-70b-instruct` | 131K | | | | | | $0.13 | $0.40 |
|
|
144
144
|
| `llmgateway/llama-4-maverick-17b-instruct` | 1.0M | | | | | | $0.27 | $0.85 |
|
|
145
145
|
| `llmgateway/llama-4-scout-17b-instruct` | 131K | | | | | | $0.18 | $0.59 |
|
|
146
|
-
| `llmgateway/mimo-v2-omni` | 256K | | | | | | $0.40 | $2 |
|
|
147
|
-
| `llmgateway/mimo-v2-pro` | 1.0M | | | | | | $1 | $3 |
|
|
148
146
|
| `llmgateway/mimo-v2.5` | 1.0M | | | | | | $0.14 | $0.28 |
|
|
149
147
|
| `llmgateway/mimo-v2.5-pro` | 1.0M | | | | | | $0.43 | $0.87 |
|
|
150
148
|
| `llmgateway/minimax-m2` | 197K | | | | | | $0.20 | $1 |
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# Lynkr
|
|
4
|
+
|
|
5
|
+
Access 1 Lynkr model through Mastra's model router. Authentication is handled automatically using the `LYNKR_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [Lynkr documentation](https://github.com/Fast-Editor/Lynkr).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
LYNKR_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: "lynkr/lynkr-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 [Lynkr documentation](https://github.com/Fast-Editor/Lynkr) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `lynkr/lynkr-auto` | 128K | | | | | | — | — |
|
|
40
|
+
|
|
41
|
+
## Advanced configuration
|
|
42
|
+
|
|
43
|
+
### Custom headers
|
|
44
|
+
|
|
45
|
+
```typescript
|
|
46
|
+
const agent = new Agent({
|
|
47
|
+
id: "custom-agent",
|
|
48
|
+
name: "custom-agent",
|
|
49
|
+
model: {
|
|
50
|
+
url: "http://127.0.0.1:8081/v1",
|
|
51
|
+
id: "lynkr/lynkr-auto",
|
|
52
|
+
apiKey: process.env.LYNKR_API_KEY,
|
|
53
|
+
headers: {
|
|
54
|
+
"X-Custom-Header": "value"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
### Dynamic model selection
|
|
61
|
+
|
|
62
|
+
```typescript
|
|
63
|
+
const agent = new Agent({
|
|
64
|
+
id: "dynamic-agent",
|
|
65
|
+
name: "Dynamic Agent",
|
|
66
|
+
model: ({ requestContext }) => {
|
|
67
|
+
const useAdvanced = requestContext.task === "complex";
|
|
68
|
+
return useAdvanced
|
|
69
|
+
? "lynkr/lynkr-auto"
|
|
70
|
+
: "lynkr/lynkr-auto";
|
|
71
|
+
}
|
|
72
|
+
});
|
|
73
|
+
```
|
|
@@ -83,7 +83,7 @@ const agent = new Agent({
|
|
|
83
83
|
id: "custom-agent",
|
|
84
84
|
name: "custom-agent",
|
|
85
85
|
model: {
|
|
86
|
-
url: "${NEON_AI_GATEWAY_BASE_URL}/
|
|
86
|
+
url: "${NEON_AI_GATEWAY_BASE_URL}/v1",
|
|
87
87
|
id: "neon/claude-haiku-4-5",
|
|
88
88
|
apiKey: process.env.NEON_AI_GATEWAY_TOKEN,
|
|
89
89
|
headers: {
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# StepFun Step Plan (Global)
|
|
4
|
+
|
|
5
|
+
Access 3 StepFun Step Plan (Global) models through Mastra's model router. Authentication is handled automatically using the `STEPFUN_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [StepFun Step Plan (Global) documentation](https://platform.stepfun.ai/docs/en/step-plan/integrations/reasoning-api).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
STEPFUN_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: "stepfun-ai-step-plan/step-3.5-flash"
|
|
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 [StepFun Step Plan (Global) documentation](https://platform.stepfun.ai/docs/en/step-plan/integrations/reasoning-api) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| ------------------------------------------ | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `stepfun-ai-step-plan/step-3.5-flash` | 256K | | | | | | — | — |
|
|
40
|
+
| `stepfun-ai-step-plan/step-3.5-flash-2603` | 256K | | | | | | — | — |
|
|
41
|
+
| `stepfun-ai-step-plan/step-3.7-flash` | 256K | | | | | | — | — |
|
|
42
|
+
|
|
43
|
+
## Advanced configuration
|
|
44
|
+
|
|
45
|
+
### Custom headers
|
|
46
|
+
|
|
47
|
+
```typescript
|
|
48
|
+
const agent = new Agent({
|
|
49
|
+
id: "custom-agent",
|
|
50
|
+
name: "custom-agent",
|
|
51
|
+
model: {
|
|
52
|
+
url: "https://api.stepfun.ai/step_plan/v1",
|
|
53
|
+
id: "stepfun-ai-step-plan/step-3.5-flash",
|
|
54
|
+
apiKey: process.env.STEPFUN_API_KEY,
|
|
55
|
+
headers: {
|
|
56
|
+
"X-Custom-Header": "value"
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
### Dynamic model selection
|
|
63
|
+
|
|
64
|
+
```typescript
|
|
65
|
+
const agent = new Agent({
|
|
66
|
+
id: "dynamic-agent",
|
|
67
|
+
name: "Dynamic Agent",
|
|
68
|
+
model: ({ requestContext }) => {
|
|
69
|
+
const useAdvanced = requestContext.task === "complex";
|
|
70
|
+
return useAdvanced
|
|
71
|
+
? "stepfun-ai-step-plan/step-3.7-flash"
|
|
72
|
+
: "stepfun-ai-step-plan/step-3.5-flash";
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
```
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
2
|
|
|
3
|
-
# StepFun (Global)
|
|
4
4
|
|
|
5
|
-
Access 8 StepFun
|
|
5
|
+
Access 8 StepFun (Global) models through Mastra's model router. Authentication is handled automatically using the `STEPFUN_API_KEY` environment variable.
|
|
6
6
|
|
|
7
|
-
Learn more in the [StepFun
|
|
7
|
+
Learn more in the [StepFun (Global) documentation](https://platform.stepfun.ai/docs/en/overview/concept).
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
10
|
STEPFUN_API_KEY=your-api-key
|
|
@@ -30,7 +30,7 @@ for await (const chunk of stream) {
|
|
|
30
30
|
}
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [StepFun
|
|
33
|
+
> **Info:** Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [StepFun (Global) documentation](https://platform.stepfun.ai/docs/en/overview/concept) for details.
|
|
34
34
|
|
|
35
35
|
## Models
|
|
36
36
|
|
|
@@ -40,7 +40,7 @@ for await (const chunk of stream) {
|
|
|
40
40
|
| `stepfun-ai/step-2-16k` | 16K | | | | | | $5 | $16 |
|
|
41
41
|
| `stepfun-ai/step-3.5-flash` | 256K | | | | | | $0.10 | $0.30 |
|
|
42
42
|
| `stepfun-ai/step-3.5-flash-2603` | 256K | | | | | | $0.10 | $0.30 |
|
|
43
|
-
| `stepfun-ai/step-3.7-flash` | 256K | | | | | | $0.
|
|
43
|
+
| `stepfun-ai/step-3.7-flash` | 256K | | | | | | $0.18 | $1 |
|
|
44
44
|
| `stepfun-ai/step-tts-2` | — | | | | | | — | — |
|
|
45
45
|
| `stepfun-ai/stepaudio-2.5-asr` | — | | | | | | — | — |
|
|
46
46
|
| `stepfun-ai/stepaudio-2.5-tts` | — | | | | | | — | — |
|
|
@@ -54,7 +54,7 @@ const agent = new Agent({
|
|
|
54
54
|
id: "custom-agent",
|
|
55
55
|
name: "custom-agent",
|
|
56
56
|
model: {
|
|
57
|
-
url: "https://api.stepfun.ai/
|
|
57
|
+
url: "https://api.stepfun.ai/v1",
|
|
58
58
|
id: "stepfun-ai/step-1-32k",
|
|
59
59
|
apiKey: process.env.STEPFUN_API_KEY,
|
|
60
60
|
headers: {
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
> Discover all available pages from the documentation index: https://mastra.ai/llms.txt
|
|
2
|
+
|
|
3
|
+
# StepFun Step Plan (China)
|
|
4
|
+
|
|
5
|
+
Access 4 StepFun Step Plan (China) models through Mastra's model router. Authentication is handled automatically using the `STEPFUN_API_KEY` environment variable.
|
|
6
|
+
|
|
7
|
+
Learn more in the [StepFun Step Plan (China) documentation](https://platform.stepfun.com/docs/zh/step-plan/integrations/reasoning-api).
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
STEPFUN_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: "stepfun-step-plan/step-3.5-flash"
|
|
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 [StepFun Step Plan (China) documentation](https://platform.stepfun.com/docs/zh/step-plan/integrations/reasoning-api) for details.
|
|
34
|
+
|
|
35
|
+
## Models
|
|
36
|
+
|
|
37
|
+
| Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M |
|
|
38
|
+
| --------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- |
|
|
39
|
+
| `stepfun-step-plan/step-3.5-flash` | 256K | | | | | | — | — |
|
|
40
|
+
| `stepfun-step-plan/step-3.5-flash-2603` | 256K | | | | | | — | — |
|
|
41
|
+
| `stepfun-step-plan/step-3.7-flash` | 256K | | | | | | — | — |
|
|
42
|
+
| `stepfun-step-plan/step-router-v1` | 256K | | | | | | — | — |
|
|
43
|
+
|
|
44
|
+
## Advanced configuration
|
|
45
|
+
|
|
46
|
+
### Custom headers
|
|
47
|
+
|
|
48
|
+
```typescript
|
|
49
|
+
const agent = new Agent({
|
|
50
|
+
id: "custom-agent",
|
|
51
|
+
name: "custom-agent",
|
|
52
|
+
model: {
|
|
53
|
+
url: "https://api.stepfun.com/step_plan/v1",
|
|
54
|
+
id: "stepfun-step-plan/step-3.5-flash",
|
|
55
|
+
apiKey: process.env.STEPFUN_API_KEY,
|
|
56
|
+
headers: {
|
|
57
|
+
"X-Custom-Header": "value"
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
### Dynamic model selection
|
|
64
|
+
|
|
65
|
+
```typescript
|
|
66
|
+
const agent = new Agent({
|
|
67
|
+
id: "dynamic-agent",
|
|
68
|
+
name: "Dynamic Agent",
|
|
69
|
+
model: ({ requestContext }) => {
|
|
70
|
+
const useAdvanced = requestContext.task === "complex";
|
|
71
|
+
return useAdvanced
|
|
72
|
+
? "stepfun-step-plan/step-router-v1"
|
|
73
|
+
: "stepfun-step-plan/step-3.5-flash";
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
```
|