# <img src="https://models.dev/logos/chutes.svg" alt="Chutes logo" className="inline w-8 h-8 mr-2 align-middle dark:invert dark:brightness-0 dark:contrast-200" />Chutes
[EN] Source: https://mastra.ai/models/providers/chutes

Access 33 Chutes models through Mastra's model router. Authentication is handled automatically using the `CHUTES_API_KEY` environment variable.

Learn more in the [Chutes documentation](https://llm.chutes.ai).

```bash
CHUTES_API_KEY=your-api-key
```

```typescript
import { Agent } from "@mastra/core";

const agent = new Agent({
  name: "my-agent",
  instructions: "You are a helpful assistant",
  model: "chutes/Qwen/Qwen3-235B-A22B-Instruct-2507"
});

// 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 [Chutes documentation](https://llm.chutes.ai) for details.

:::

## Models

<ProviderModelsTable
  models={[
  {
    "model": "chutes/Alibaba-NLP/Tongyi-DeepResearch-30B-A3B",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 131072,
    "maxOutput": 131072,
    "inputCost": null,
    "outputCost": null
  },
  {
    "model": "chutes/ArliAI/QwQ-32B-ArliAI-RpR-v1",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": false,
    "reasoning": true,
    "contextWindow": 32768,
    "maxOutput": 32768,
    "inputCost": 0.03,
    "outputCost": 0.11
  },
  {
    "model": "chutes/chutesai/Mistral-Small-3.1-24B-Instruct-2503",
    "imageInput": true,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 131072,
    "maxOutput": 131072,
    "inputCost": 0.05,
    "outputCost": 0.22
  },
  {
    "model": "chutes/chutesai/Mistral-Small-3.2-24B-Instruct-2506",
    "imageInput": true,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 131072,
    "maxOutput": 131072,
    "inputCost": 0.06,
    "outputCost": 0.18
  },
  {
    "model": "chutes/deepseek-ai/DeepSeek-R1",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": false,
    "reasoning": true,
    "contextWindow": 163840,
    "maxOutput": 163840,
    "inputCost": 0.3,
    "outputCost": 1.2
  },
  {
    "model": "chutes/deepseek-ai/DeepSeek-R1-0528",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 163840,
    "maxOutput": 163840,
    "inputCost": 0.4,
    "outputCost": 1.75
  },
  {
    "model": "chutes/deepseek-ai/DeepSeek-R1-0528-Qwen3-8B",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": false,
    "reasoning": true,
    "contextWindow": 32768,
    "maxOutput": 32768,
    "inputCost": 0.02,
    "outputCost": 0.1
  },
  {
    "model": "chutes/deepseek-ai/DeepSeek-R1-Distill-Llama-70B",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 131072,
    "maxOutput": 131072,
    "inputCost": 0.03,
    "outputCost": 0.13
  },
  {
    "model": "chutes/deepseek-ai/DeepSeek-V3",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": false,
    "reasoning": false,
    "contextWindow": 163840,
    "maxOutput": 163840,
    "inputCost": 0.3,
    "outputCost": 1.2
  },
  {
    "model": "chutes/deepseek-ai/DeepSeek-V3-0324",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": false,
    "reasoning": false,
    "contextWindow": 163840,
    "maxOutput": 163840,
    "inputCost": 0.24,
    "outputCost": 0.84
  },
  {
    "model": "chutes/deepseek-ai/DeepSeek-V3.1",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 163840,
    "maxOutput": 163840,
    "inputCost": 0.2,
    "outputCost": 0.8
  },
  {
    "model": "chutes/deepseek-ai/DeepSeek-V3.1-Terminus",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 163840,
    "maxOutput": 163840,
    "inputCost": 0.23,
    "outputCost": 0.9
  },
  {
    "model": "chutes/deepseek-ai/DeepSeek-V3.2-Exp",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 163840,
    "maxOutput": 163840,
    "inputCost": 0.25,
    "outputCost": 0.35
  },
  {
    "model": "chutes/meituan-longcat/LongCat-Flash-Chat-FP8",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 131072,
    "maxOutput": 131072,
    "inputCost": null,
    "outputCost": null
  },
  {
    "model": "chutes/microsoft/MAI-DS-R1-FP8",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": false,
    "reasoning": true,
    "contextWindow": 163840,
    "maxOutput": 163840,
    "inputCost": 0.3,
    "outputCost": 1.2
  },
  {
    "model": "chutes/MiniMaxAI/MiniMax-M2",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 196608,
    "maxOutput": 196608,
    "inputCost": 0.26,
    "outputCost": 1.02
  },
  {
    "model": "chutes/moonshotai/Kimi-K2-Instruct-0905",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 262144,
    "maxOutput": 262144,
    "inputCost": 0.39,
    "outputCost": 1.9
  },
  {
    "model": "chutes/moonshotai/Kimi-K2-Thinking",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 262144,
    "maxOutput": 16384,
    "inputCost": 0.3,
    "outputCost": 1.2
  },
  {
    "model": "chutes/NousResearch/DeepHermes-3-Mistral-24B-Preview",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 32768,
    "maxOutput": 32768,
    "inputCost": 0.15,
    "outputCost": 0.59
  },
  {
    "model": "chutes/NousResearch/Hermes-4-14B",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 40960,
    "maxOutput": 40960,
    "inputCost": 0.03,
    "outputCost": 0.11
  },
  {
    "model": "chutes/NousResearch/Hermes-4-405B-FP8",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 131072,
    "maxOutput": 131072,
    "inputCost": 0.3,
    "outputCost": 1.2
  },
  {
    "model": "chutes/NousResearch/Hermes-4-70B",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 131072,
    "maxOutput": 131072,
    "inputCost": 0.11,
    "outputCost": 0.38
  },
  {
    "model": "chutes/openai/gpt-oss-120b",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 131072,
    "maxOutput": 131072,
    "inputCost": 0.04,
    "outputCost": 0.4
  },
  {
    "model": "chutes/openai/gpt-oss-20b",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 131072,
    "maxOutput": 131072,
    "inputCost": null,
    "outputCost": null
  },
  {
    "model": "chutes/OpenGVLab/InternVL3-78B",
    "imageInput": true,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": false,
    "reasoning": false,
    "contextWindow": 32768,
    "maxOutput": 32768,
    "inputCost": 0.07,
    "outputCost": 0.26
  },
  {
    "model": "chutes/Qwen/Qwen2.5-72B-Instruct",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 32768,
    "maxOutput": 32768,
    "inputCost": 0.07,
    "outputCost": 0.26
  },
  {
    "model": "chutes/Qwen/Qwen2.5-Coder-32B-Instruct",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": false,
    "reasoning": false,
    "contextWindow": 32768,
    "maxOutput": 32768,
    "inputCost": 0.04,
    "outputCost": 0.16
  },
  {
    "model": "chutes/Qwen/Qwen2.5-VL-32B-Instruct",
    "imageInput": true,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": false,
    "reasoning": false,
    "contextWindow": 16384,
    "maxOutput": 16384,
    "inputCost": 0.05,
    "outputCost": 0.22
  },
  {
    "model": "chutes/Qwen/Qwen2.5-VL-72B-Instruct",
    "imageInput": true,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": false,
    "reasoning": false,
    "contextWindow": 32768,
    "maxOutput": 32768,
    "inputCost": 0.08,
    "outputCost": 0.33
  },
  {
    "model": "chutes/Qwen/Qwen3-14B",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 40960,
    "maxOutput": 40960,
    "inputCost": 0.05,
    "outputCost": 0.22
  },
  {
    "model": "chutes/Qwen/Qwen3-235B-A22B",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 40960,
    "maxOutput": 40960,
    "inputCost": 0.3,
    "outputCost": 1.2
  },
  {
    "model": "chutes/Qwen/Qwen3-235B-A22B-Instruct-2507",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 262144,
    "maxOutput": 262144,
    "inputCost": 0.08,
    "outputCost": 0.55
  },
  {
    "model": "chutes/Qwen/Qwen3-235B-A22B-Thinking-2507",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 262144,
    "maxOutput": 262144,
    "inputCost": 0.11,
    "outputCost": 0.6
  },
  {
    "model": "chutes/Qwen/Qwen3-30B-A3B",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 40960,
    "maxOutput": 40960,
    "inputCost": 0.06,
    "outputCost": 0.22
  },
  {
    "model": "chutes/Qwen/Qwen3-30B-A3B-Instruct-2507",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 262144,
    "maxOutput": 262144,
    "inputCost": 0.08,
    "outputCost": 0.33
  },
  {
    "model": "chutes/Qwen/Qwen3-32B",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 40960,
    "maxOutput": 40960,
    "inputCost": 0.05,
    "outputCost": 0.2
  },
  {
    "model": "chutes/Qwen/Qwen3-Coder-30B-A3B-Instruct",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 262144,
    "maxOutput": 262144,
    "inputCost": 0.06,
    "outputCost": 0.25
  },
  {
    "model": "chutes/Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 262144,
    "maxOutput": 262144,
    "inputCost": 0.22,
    "outputCost": 0.95
  },
  {
    "model": "chutes/Qwen/Qwen3-Next-80B-A3B-Instruct",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 262144,
    "maxOutput": 262144,
    "inputCost": 0.1,
    "outputCost": 0.8
  },
  {
    "model": "chutes/Qwen/Qwen3-VL-235B-A22B-Instruct",
    "imageInput": true,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 262144,
    "maxOutput": 262144,
    "inputCost": 0.3,
    "outputCost": 1.2
  },
  {
    "model": "chutes/Qwen/Qwen3-VL-235B-A22B-Thinking",
    "imageInput": true,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 262144,
    "maxOutput": 262144,
    "inputCost": 0.3,
    "outputCost": 1.2
  },
  {
    "model": "chutes/rednote-hilab/dots.ocr",
    "imageInput": true,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": false,
    "reasoning": false,
    "contextWindow": 131072,
    "maxOutput": 131072,
    "inputCost": 0.01,
    "outputCost": 0.01
  },
  {
    "model": "chutes/tngtech/DeepSeek-R1T-Chimera",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": false,
    "reasoning": true,
    "contextWindow": 163840,
    "maxOutput": 163840,
    "inputCost": 0.3,
    "outputCost": 1.2
  },
  {
    "model": "chutes/tngtech/DeepSeek-TNG-R1T2-Chimera",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 163840,
    "maxOutput": 163840,
    "inputCost": 0.3,
    "outputCost": 1.2
  },
  {
    "model": "chutes/unsloth/gemma-3-12b-it",
    "imageInput": true,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": false,
    "reasoning": false,
    "contextWindow": 131072,
    "maxOutput": 131072,
    "inputCost": 0.03,
    "outputCost": 0.1
  },
  {
    "model": "chutes/unsloth/gemma-3-27b-it",
    "imageInput": true,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 96000,
    "maxOutput": 96000,
    "inputCost": 0.13,
    "outputCost": 0.52
  },
  {
    "model": "chutes/unsloth/gemma-3-4b-it",
    "imageInput": true,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": false,
    "reasoning": false,
    "contextWindow": 96000,
    "maxOutput": 96000,
    "inputCost": null,
    "outputCost": null
  },
  {
    "model": "chutes/unsloth/Mistral-Nemo-Instruct-2407",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": false,
    "reasoning": false,
    "contextWindow": 131072,
    "maxOutput": 131072,
    "inputCost": 0.03,
    "outputCost": 0.11
  },
  {
    "model": "chutes/unsloth/Mistral-Small-24B-Instruct-2501",
    "imageInput": true,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 32768,
    "maxOutput": 32768,
    "inputCost": 0.05,
    "outputCost": 0.22
  },
  {
    "model": "chutes/zai-org/GLM-4.5",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 131072,
    "maxOutput": 131072,
    "inputCost": 0.35,
    "outputCost": 1.55
  },
  {
    "model": "chutes/zai-org/GLM-4.5-Air",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 131072,
    "maxOutput": 131072,
    "inputCost": null,
    "outputCost": null
  },
  {
    "model": "chutes/zai-org/GLM-4.6",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 202752,
    "maxOutput": 202752,
    "inputCost": 0.4,
    "outputCost": 1.75
  }
]}
/>

## Advanced Configuration

### Custom Headers

```typescript
const agent = new Agent({
  name: "custom-agent",
  model: {
    url: "https://llm.chutes.ai/v1",
    id: "chutes/Qwen/Qwen3-235B-A22B-Instruct-2507",
    apiKey: process.env.CHUTES_API_KEY,
    headers: {
      "X-Custom-Header": "value"
    }
  }
});
```

### Dynamic Model Selection

```typescript
const agent = new Agent({
  name: "dynamic-agent",
  model: ({ runtimeContext }) => {
    const useAdvanced = runtimeContext.task === "complex";
    return useAdvanced
      ? "chutes/zai-org/GLM-4.6-turbo"
      : "chutes/Qwen/Qwen3-235B-A22B-Instruct-2507";
  }
});
```




---
title: "Cloudflare Workers AI"
description: "Use Cloudflare Workers AI models via the AI SDK."
---

{/* This file is auto-generated by generate-model-docs.ts - DO NOT EDIT MANUALLY */}