# <NetlifyLogo className="inline w-8 h-8 mr-2 align-middle" />Netlify
[EN] Source: https://mastra.ai/models/gateways/netlify

Netlify AI Gateway provides unified access to multiple providers with built-in caching and observability. Access 34 models through Mastra's model router.

Learn more in the [Netlify documentation](https://docs.netlify.com/build/ai-gateway/overview/).

## Usage

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

const agent = new Agent({
  name: "my-agent",
  instructions: "You are a helpful assistant",
  model: "netlify/anthropic/claude-3-5-haiku-20241022"
});
```

:::info

Mastra uses the OpenAI-compatible `/chat/completions` endpoint. Some provider-specific features may not be available. Check the [Netlify documentation](https://docs.netlify.com/build/ai-gateway/overview/) for details.

:::

## Configuration

```bash