Skip to main content

evroc logoevroc

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.

.env
EVROC_API_KEY=your-api-key
src/mastra/agents/my-agent.ts
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
Direct link to Models

ModelContextToolsReasoningImageAudioVideoInput $/1MOutput $/1M
evroc/intfloat/multilingual-e5-large-instruct512$0.12$0.12
evroc/KBLab/kb-whisper-large448$0.00$0.00
evroc/microsoft/Phi-4-multimodal-instruct32K$0.24$0.47
evroc/mistralai/devstral-small-2-24b-instruct-251233K$0.12$0.47
evroc/mistralai/Magistral-Small-2509131K$0.59$2
evroc/mistralai/Voxtral-Small-24B-250732K$0.00$0.00
evroc/moonshotai/Kimi-K2.5262K$1$6
evroc/nvidia/Llama-3.3-70B-Instruct-FP8131K$1$1
evroc/openai/gpt-oss-120b66K$0.24$0.94
evroc/openai/whisper-large-v3448$0.00$0.00
evroc/Qwen/Qwen3-30B-A3B-Instruct-2507-FP864K$0.35$1
evroc/Qwen/Qwen3-Embedding-8B41K$0.12$0.12
evroc/Qwen/Qwen3-VL-30B-A3B-Instruct100K$0.24$0.94
13 available models

Advanced Configuration
Direct link to Advanced Configuration

Custom Headers
Direct link to Custom Headers

src/mastra/agents/my-agent.ts
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
Direct link to Dynamic Model Selection

src/mastra/agents/my-agent.ts
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";
}
});
On this page