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

Access 13 Scaleway models through Mastra's model router. Authentication is handled automatically using the `SCALEWAY_API_KEY` environment variable.

Learn more in the [Scaleway documentation](https://www.scaleway.com/en/docs/generative-apis/).

```bash
SCALEWAY_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: "scaleway/bge-multilingual-gemma2"
});

// 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 [Scaleway documentation](https://www.scaleway.com/en/docs/generative-apis/) for details.

:::

## Models

<ProviderModelsTable
  models={[
  {
    "model": "scaleway/bge-multilingual-gemma2",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": false,
    "reasoning": false,
    "contextWindow": 8191,
    "maxOutput": 3072,
    "inputCost": 0.13,
    "outputCost": null
  },
  {
    "model": "scaleway/deepseek-r1-distill-llama-70b",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 32000,
    "maxOutput": 4096,
    "inputCost": 0.9,
    "outputCost": 0.9
  },
  {
    "model": "scaleway/gemma-3-27b-it",
    "imageInput": true,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": true,
    "contextWindow": 40000,
    "maxOutput": 8192,
    "inputCost": 0.25,
    "outputCost": 0.5
  },
  {
    "model": "scaleway/gpt-oss-120b",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 128000,
    "maxOutput": 8192,
    "inputCost": 0.15,
    "outputCost": 0.6
  },
  {
    "model": "scaleway/llama-3.1-8b-instruct",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 128000,
    "maxOutput": 16384,
    "inputCost": 0.2,
    "outputCost": 0.2
  },
  {
    "model": "scaleway/llama-3.3-70b-instruct",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 100000,
    "maxOutput": 4096,
    "inputCost": 0.9,
    "outputCost": 0.9
  },
  {
    "model": "scaleway/mistral-nemo-instruct-2407",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 128000,
    "maxOutput": 8192,
    "inputCost": 0.2,
    "outputCost": 0.2
  },
  {
    "model": "scaleway/mistral-small-3.2-24b-instruct-2506",
    "imageInput": true,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 128000,
    "maxOutput": 8192,
    "inputCost": 0.15,
    "outputCost": 0.35
  },
  {
    "model": "scaleway/pixtral-12b-2409",
    "imageInput": true,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 128000,
    "maxOutput": 4096,
    "inputCost": 0.2,
    "outputCost": 0.2
  },
  {
    "model": "scaleway/qwen3-235b-a22b-instruct-2507",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 260000,
    "maxOutput": 8192,
    "inputCost": 0.75,
    "outputCost": 2.25
  },
  {
    "model": "scaleway/qwen3-coder-30b-a3b-instruct",
    "imageInput": false,
    "audioInput": false,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 128000,
    "maxOutput": 8192,
    "inputCost": 0.2,
    "outputCost": 0.8
  },
  {
    "model": "scaleway/voxtral-small-24b-2507",
    "imageInput": false,
    "audioInput": true,
    "videoInput": false,
    "toolUsage": true,
    "reasoning": false,
    "contextWindow": 32000,
    "maxOutput": 8192,
    "inputCost": 0.15,
    "outputCost": 0.35
  },
  {
    "model": "scaleway/whisper-large-v3",
    "imageInput": false,
    "audioInput": true,
    "videoInput": false,
    "toolUsage": false,
    "reasoning": false,
    "contextWindow": null,
    "maxOutput": 4096,
    "inputCost": 0.003,
    "outputCost": null
  }
]}
/>

## Advanced Configuration

### Custom Headers

```typescript
const agent = new Agent({
  name: "custom-agent",
  model: {
    url: "https://api.scaleway.ai/v1",
    id: "scaleway/bge-multilingual-gemma2",
    apiKey: process.env.SCALEWAY_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
      ? "scaleway/whisper-large-v3"
      : "scaleway/bge-multilingual-gemma2";
  }
});
```




---
title: "submodel | Models | Mastra"
description: "Use submodel models with Mastra. 9 models available."
---

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