> Discover all available pages from the documentation index: https://mastra.zisheng.pro/zh-TW/llms.txt # ![evroc 標誌](https://models.dev/logos/evroc.svg)evroc 透過 Mastra 的模型路由器存取 16 個 evroc 模型。系統會自動使用 `EVROC_API_KEY` 環境變數完成身分驗證。 如需進一步了解,請參閱[evroc 文件](https://docs.evroc.com/products/think/overview.html)。 ```bash EVROC_API_KEY=your-api-key ``` ```typescript import { Agent } from '@mastra/core/agent' const agent = new Agent({ id: 'my-agent', name: 'My Agent', instructions: 'You are a helpful assistant', model: 'evroc/KBLab/kb-whisper-large', }) // Generate a response const response = await agent.generate('Hello!') // Stream a response const stream = await agent.stream('Tell me a story') for await (const chunk of stream) { console.log(chunk) } ``` > **資訊:** Mastra 使用與 OpenAI 相容的 `/chat/completions` endpoint。部分 Provider 特有功能可能無法使用,詳情請參閱[evroc 文件](https://docs.evroc.com/products/think/overview.html)。 ## 模型 | Model | Context | Tools | Reasoning | Image | Audio | Video | Input $/1M | Output $/1M | | ----------------------------------------------- | ------- | ----- | --------- | ----- | ----- | ----- | ---------- | ----------- | | `evroc/evroc/roc` | 262K | | | | | | $3 | $12 | | `evroc/google/gemma-4-26B-A4B-it` | 262K | | | | | | $0.14 | $0.57 | | `evroc/intfloat/multilingual-e5-large-instruct` | 512 | | | | | | $0.11 | $0.11 | | `evroc/KBLab/kb-whisper-large` | 448 | | | | | | $0.00 | $0.00 | | `evroc/mistralai/Mistral-Medium-3.5-128B` | 262K | | | | | | $2 | $7 | | `evroc/mistralai/Voxtral-Small-24B-2507` | 32K | | | | | | $0.00 | $0.00 | | `evroc/moonshotai/Kimi-K2.6` | 262K | | | | | | $1 | $6 | | `evroc/nvidia/Llama-3.3-70B-Instruct-FP8` | 128K | | | | | | $1 | $1 | | `evroc/openai/gpt-oss-120b` | 66K | | | | | | $0.23 | $0.92 | | `evroc/openai/whisper-large-v3` | 448 | | | | | | $0.00 | $0.00 | | `evroc/openai/whisper-large-v3-turbo` | 448 | | | | | | $0.00 | $0.00 | | `evroc/Qwen/Qwen3-Embedding-8B` | 41K | | | | | | $0.12 | $0.12 | | `evroc/Qwen/Qwen3-Reranker-4B` | 32K | | | | | | $0.06 | — | | `evroc/Qwen/Qwen3-VL-30B-A3B-Instruct` | 100K | | | | | | $0.23 | $0.92 | | `evroc/Qwen/Qwen3.6-35B-A3B-FP8` | 262K | | | | | | $0.34 | $1 | | `evroc/zai-org/GLM-5.2` | 1.0M | | | | | | $1 | $6 | ## 進階設定 ### 自訂標頭 ```typescript const agent = new Agent({ id: 'custom-agent', name: 'custom-agent', model: { url: 'https://models.think.evroc.com/v1', id: 'evroc/KBLab/kb-whisper-large', apiKey: process.env.EVROC_API_KEY, headers: { 'X-Custom-Header': 'value', }, }, }) ``` ### 動態選擇模型 ```typescript const agent = new Agent({ id: 'dynamic-agent', name: 'Dynamic Agent', model: ({ requestContext }) => { const useAdvanced = requestContext.task === 'complex' return useAdvanced ? 'evroc/zai-org/GLM-5.2' : 'evroc/KBLab/kb-whisper-large' }, }) ```