docs/src/content/en/models/providers/cloudferro-sherlock.mdx
Access 5 CloudFerro Sherlock models through Mastra's model router. Authentication is handled automatically using the CLOUDFERRO_SHERLOCK_API_KEY environment variable.
Learn more in the CloudFerro Sherlock documentation.
CLOUDFERRO_SHERLOCK_API_KEY=your-api-key
import { Agent } from "@mastra/core/agent";
const agent = new Agent({
id: "my-agent",
name: "My Agent",
instructions: "You are a helpful assistant",
model: "cloudferro-sherlock/MiniMaxAI/MiniMax-M2.5"
});
// 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 CloudFerro Sherlock documentation for details.
:::
<ProviderModelsTable models={[ { "model": "cloudferro-sherlock/meta-llama/Llama-3.3-70B-Instruct", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 70000, "maxOutput": 70000, "inputCost": 2.92, "outputCost": 2.92 }, { "model": "cloudferro-sherlock/MiniMaxAI/MiniMax-M2.5", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 196000, "maxOutput": 196000, "inputCost": 0.3, "outputCost": 1.2 }, { "model": "cloudferro-sherlock/openai/gpt-oss-120b", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": true, "contextWindow": 131000, "maxOutput": 131000, "inputCost": 2.92, "outputCost": 2.92 }, { "model": "cloudferro-sherlock/speakleash/Bielik-11B-v2.6-Instruct", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 32000, "maxOutput": 32000, "inputCost": 0.67, "outputCost": 0.67 }, { "model": "cloudferro-sherlock/speakleash/Bielik-11B-v3.0-Instruct", "imageInput": false, "audioInput": false, "videoInput": false, "toolUsage": true, "reasoning": false, "contextWindow": 32000, "maxOutput": 32000, "inputCost": 0.67, "outputCost": 0.67 } ]} />
const agent = new Agent({
id: "custom-agent",
name: "custom-agent",
model: {
url: "https://api-sherlock.cloudferro.com/openai/v1/",
id: "cloudferro-sherlock/MiniMaxAI/MiniMax-M2.5",
apiKey: process.env.CLOUDFERRO_SHERLOCK_API_KEY,
headers: {
"X-Custom-Header": "value"
}
}
});
const agent = new Agent({
id: "dynamic-agent",
name: "Dynamic Agent",
model: ({ requestContext }) => {
const useAdvanced = requestContext.task === "complex";
return useAdvanced
? "cloudferro-sherlock/speakleash/Bielik-11B-v3.0-Instruct"
: "cloudferro-sherlock/MiniMaxAI/MiniMax-M2.5";
}
});