Back to Mastra

evroc | Models

docs/src/content/en/models/providers/evroc.mdx

2025-12-185.5 KB
Original Source

evroc

Access 13 evroc models through Mastra's model router. Authentication is handled automatically using the EVROC_API_KEY environment variable.

Learn more in the evroc documentation.

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);
}

:::info

Mastra uses the OpenAI-compatible /chat/completions endpoint. Some provider-specific features may not be available. Check the evroc documentation for details.

:::

Models

<ProviderModelsTable models={[ { "model": "evroc/intfloat/multilingual-e5-large-instruct", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": false, "reasoning": false, "contextWindow": 512, "maxOutput": 512, "inputCost": 0.12, "outputCost": 0.12 }, { "model": "evroc/KBLab/kb-whisper-large", "imageInput": false, "audioInput": true, "videoInput": false, "toolUsage": false, "reasoning": false, "contextWindow": 448, "maxOutput": 448, "inputCost": 0.00236, "outputCost": 0.00236 }, { "model": "evroc/microsoft/Phi-4-multimodal-instruct", "imageInput": true, "audioInput": false, "videoInput": false, "toolUsage": false, "reasoning": false, "contextWindow": 32000, "maxOutput": 32000, "inputCost": 0.24, "outputCost": 0.47 }, { "model": "evroc/mistralai/devstral-small-2-24b-instruct-2512", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 32768, "maxOutput": 32768, "inputCost": 0.12, "outputCost": 0.47 }, { "model": "evroc/mistralai/Magistral-Small-2509", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": false, "reasoning": false, "contextWindow": 131072, "maxOutput": 131072, "inputCost": 0.59, "outputCost": 2.36 }, { "model": "evroc/mistralai/Voxtral-Small-24B-2507", "imageInput": false, "audioInput": true, "videoInput": false, "toolUsage": false, "reasoning": false, "contextWindow": 32000, "maxOutput": 32000, "inputCost": 0.00236, "outputCost": 0.00236 }, { "model": "evroc/moonshotai/Kimi-K2.5", "imageInput": true, "audioInput": false, "videoInput": true, "toolUsage": true, "reasoning": true, "contextWindow": 262144, "maxOutput": 262144, "inputCost": 1.47, "outputCost": 5.9 }, { "model": "evroc/nvidia/Llama-3.3-70B-Instruct-FP8", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": false, "reasoning": false, "contextWindow": 131072, "maxOutput": 32768, "inputCost": 1.18, "outputCost": 1.18 }, { "model": "evroc/openai/gpt-oss-120b", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 65536, "maxOutput": 65536, "inputCost": 0.24, "outputCost": 0.94 }, { "model": "evroc/openai/whisper-large-v3", "imageInput": false, "audioInput": true, "videoInput": false, "toolUsage": false, "reasoning": false, "contextWindow": 448, "maxOutput": 4096, "inputCost": 0.00236, "outputCost": 0.00236 }, { "model": "evroc/Qwen/Qwen3-30B-A3B-Instruct-2507-FP8", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 64000, "maxOutput": 64000, "inputCost": 0.35, "outputCost": 1.42 }, { "model": "evroc/Qwen/Qwen3-Embedding-8B", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": false, "reasoning": false, "contextWindow": 40960, "maxOutput": 40960, "inputCost": 0.12, "outputCost": 0.12 }, { "model": "evroc/Qwen/Qwen3-VL-30B-A3B-Instruct", "imageInput": true, "audioInput": false, "videoInput": true, "toolUsage": true, "reasoning": false, "contextWindow": 100000, "maxOutput": 100000, "inputCost": 0.24, "outputCost": 0.94 } ]} />

Advanced configuration

Custom headers

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"
    }
  }
});

Dynamic model selection

typescript
const agent = new Agent({
  id: "dynamic-agent",
  name: "Dynamic Agent",
  model: ({ requestContext }) => {
    const useAdvanced = requestContext.task === "complex";
    return useAdvanced
      ? "evroc/openai/whisper-large-v3"
      : "evroc/KBLab/kb-whisper-large";
  }
});