---
title: Cloudflare AI Gateway
---

<!-- THIS FILE IS AUTO-GENERATED BY website/scripts/generate-model-docs.js. DO NOT EDIT MANUALLY. -->

# Cloudflare AI Gateway

Use `cloudflare-ai-gateway/<model>` with VoltAgent's model router.

## Quick start

```ts
import { Agent } from "@voltagent/core";

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

## Environment variables

- `CLOUDFLARE_API_TOKEN`
- `CLOUDFLARE_ACCOUNT_ID`
- `CLOUDFLARE_GATEWAY_ID`

## Provider package

`@ai-sdk/openai-compatible`

This provider uses the OpenAI-compatible adapter.

## Default base URL

`https://gateway.ai.cloudflare.com/v1/${CLOUDFLARE_ACCOUNT_ID}/${CLOUDFLARE_GATEWAY_ID}/compat/`

You can override the base URL by setting `CLOUDFLARE_AI_GATEWAY_BASE_URL`.

## Provider docs

- https://developers.cloudflare.com/ai-gateway/

## Models

<details>
  <summary>Show models (64)</summary>

- anthropic/claude-3-5-haiku
- anthropic/claude-3-haiku
- anthropic/claude-3-opus
- anthropic/claude-3-sonnet
- anthropic/claude-3.5-haiku
- anthropic/claude-3.5-sonnet
- anthropic/claude-haiku-4-5
- anthropic/claude-opus-4
- anthropic/claude-opus-4-1
- anthropic/claude-opus-4-5
- anthropic/claude-sonnet-4
- anthropic/claude-sonnet-4-5
- openai/gpt-3.5-turbo
- openai/gpt-4
- openai/gpt-4-turbo
- openai/gpt-4o
- openai/gpt-4o-mini
- openai/gpt-5.1
- openai/gpt-5.1-codex
- openai/gpt-5.2
- openai/o1
- openai/o3
- openai/o3-mini
- openai/o3-pro
- openai/o4-mini
- workers-ai/@cf/ai4bharat/indictrans2-en-indic-1B
- workers-ai/@cf/aisingapore/gemma-sea-lion-v4-27b-it
- workers-ai/@cf/baai/bge-base-en-v1.5
- workers-ai/@cf/baai/bge-large-en-v1.5
- workers-ai/@cf/baai/bge-m3
- workers-ai/@cf/baai/bge-reranker-base
- workers-ai/@cf/baai/bge-small-en-v1.5
- workers-ai/@cf/deepgram/aura-2-en
- workers-ai/@cf/deepgram/aura-2-es
- workers-ai/@cf/deepgram/nova-3
- workers-ai/@cf/deepseek-ai/deepseek-r1-distill-qwen-32b
- workers-ai/@cf/facebook/bart-large-cnn
- workers-ai/@cf/google/gemma-3-12b-it
- workers-ai/@cf/huggingface/distilbert-sst-2-int8
- workers-ai/@cf/ibm-granite/granite-4.0-h-micro
- workers-ai/@cf/meta/llama-2-7b-chat-fp16
- workers-ai/@cf/meta/llama-3-8b-instruct
- workers-ai/@cf/meta/llama-3-8b-instruct-awq
- workers-ai/@cf/meta/llama-3.1-8b-instruct
- workers-ai/@cf/meta/llama-3.1-8b-instruct-awq
- workers-ai/@cf/meta/llama-3.1-8b-instruct-fp8
- workers-ai/@cf/meta/llama-3.2-11b-vision-instruct
- workers-ai/@cf/meta/llama-3.2-1b-instruct
- workers-ai/@cf/meta/llama-3.2-3b-instruct
- workers-ai/@cf/meta/llama-3.3-70b-instruct-fp8-fast
- workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct
- workers-ai/@cf/meta/llama-guard-3-8b
- workers-ai/@cf/meta/m2m100-1.2b
- workers-ai/@cf/mistral/mistral-7b-instruct-v0.1
- workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct
- workers-ai/@cf/myshell-ai/melotts
- workers-ai/@cf/openai/gpt-oss-120b
- workers-ai/@cf/openai/gpt-oss-20b
- workers-ai/@cf/pfnet/plamo-embedding-1b
- workers-ai/@cf/pipecat-ai/smart-turn-v2
- workers-ai/@cf/qwen/qwen2.5-coder-32b-instruct
- workers-ai/@cf/qwen/qwen3-30b-a3b-fp8
- workers-ai/@cf/qwen/qwen3-embedding-0.6b
- workers-ai/@cf/qwen/qwq-32b

</details>
