Cloudflare AI Gateway

[PROVIDER]
id: cloudflare-ai-gateway
npm: ai-gateway-provider
env: CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID, CLOUDFLARE_GATEWAY_ID

Models

Claude Fable 5

anthropic/claude-fable-5
in $10.00/M
out $50.00/M
cache read $1.00/M
cache write $12.50/M
ctx: 1,000,000 max out: 128,000 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

Claude Haiku 4.5 (latest)

anthropic/claude-haiku-4.5
in $1.00/M
out $5.00/M
cache read $0.10/M
cache write $1.25/M
ctx: 200,000 max out: 64,000 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

Claude Opus 4.5 (latest)

anthropic/claude-opus-4.5
in $5.00/M
out $25.00/M
cache read $0.50/M
cache write $6.25/M
ctx: 200,000 max out: 64,000 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

Claude Opus 4.6

anthropic/claude-opus-4.6
in $5.00/M
out $25.00/M
cache read $0.50/M
cache write $6.25/M
ctx: 1,000,000 max out: 128,000 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

Claude Opus 4.7

anthropic/claude-opus-4.7
in $5.00/M
out $25.00/M
cache read $0.50/M
cache write $6.25/M
ctx: 1,000,000 max out: 128,000 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

Claude Opus 4.8

anthropic/claude-opus-4.8
in $5.00/M
out $25.00/M
cache read $0.50/M
cache write $6.25/M
ctx: 1,000,000 max out: 128,000 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

Claude Opus 5

anthropic/claude-opus-5
in $5.00/M
out $25.00/M
cache read $0.50/M
cache write $6.25/M
ctx: 1,000,000 max out: 128,000 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

Claude Sonnet 4.5 (latest)

anthropic/claude-sonnet-4.5
in $3.00/M
out $15.00/M
cache read $0.30/M
cache write $3.75/M
ctx: 1,000,000 max out: 64,000 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

Claude Sonnet 4.6

anthropic/claude-sonnet-4.6
in $3.00/M
out $15.00/M
cache read $0.30/M
cache write $3.75/M
ctx: 1,000,000 max out: 128,000 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

Claude Sonnet 5

anthropic/claude-sonnet-5
in $2.00/M
out $10.00/M
cache read $0.20/M
cache write $2.50/M
ctx: 1,000,000 max out: 128,000 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

Deepseek R1 Distill Qwen 32B

workers-ai/@cf/deepseek-ai/deepseek-r1-distill-qwen-32b
in $0.50/M
out $4.88/M
ctx: 80,000 max out: 80,000 in: text out: text
reasoning tools vision structured temp open weights

Gemma 4 26B A4B IT

workers-ai/@cf/google/gemma-4-26b-a4b-it
in $0.10/M
out $0.30/M
ctx: 256,000 max out: 16,384 in: text, image out: text
reasoning tools vision structured temp open weights

Gemma Sea Lion V4 27B It

workers-ai/@cf/aisingapore/gemma-sea-lion-v4-27b-it
in $0.35/M
out $0.56/M
ctx: 128,000 max out: 128,000 in: text out: text
reasoning tools vision structured temp open weights

Glm 5.2

workers-ai/@cf/zai-org/glm-5.2
in $1.40/M
out $4.40/M
cache read $0.26/M
ctx: 262,144 max out: 256,000 in: text out: text
reasoning tools vision structured temp open weights

GLM-4.7-Flash

workers-ai/@cf/zai-org/glm-4.7-flash
in $0.06/M
out $0.40/M
ctx: 131,072 max out: 131,072 in: text out: text
reasoning tools vision structured temp open weights

GPT OSS 120B

workers-ai/@cf/openai/gpt-oss-120b
in $0.35/M
out $0.75/M
ctx: 128,000 max out: 16,384 in: text out: text
reasoning tools vision structured temp open weights

GPT OSS 20B

workers-ai/@cf/openai/gpt-oss-20b
in $0.20/M
out $0.30/M
ctx: 128,000 max out: 16,384 in: text out: text
reasoning tools vision structured temp open weights

GPT-3.5-turbo

openai/gpt-3.5-turbo
in $0.50/M
out $1.50/M
cache read $0.00/M
ctx: 16,385 max out: 4,096 in: text out: text
reasoning tools vision structured temp open weights deprecated

GPT-4

openai/gpt-4
in $30.00/M
out $60.00/M
ctx: 8,192 max out: 8,192 in: text out: text
reasoning tools vision structured temp open weights deprecated

GPT-4 Turbo

openai/gpt-4-turbo
in $10.00/M
out $30.00/M
ctx: 128,000 max out: 4,096 in: text, image out: text
reasoning tools vision structured temp open weights deprecated

GPT-4.1

openai/gpt-4.1
in $2.00/M
out $8.00/M
cache read $0.50/M
ctx: 1,047,576 max out: 32,768 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

GPT-4.1 mini

openai/gpt-4.1-mini
in $0.40/M
out $1.60/M
cache read $0.10/M
ctx: 1,047,576 max out: 32,768 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

GPT-4.1 nano

openai/gpt-4.1-nano
in $0.10/M
out $0.40/M
cache read $0.03/M
ctx: 1,047,576 max out: 32,768 in: text, image out: text
reasoning tools vision structured temp open weights deprecated

GPT-4o

openai/gpt-4o
in $1.25/M
out $5.00/M
cache read $0.63/M
ctx: 128,000 max out: 16,384 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

GPT-4o mini

openai/gpt-4o-mini
in $0.07/M
out $0.30/M
cache read $0.04/M
ctx: 128,000 max out: 16,384 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

GPT-5

openai/gpt-5
in $1.25/M
out $10.00/M
cache read $0.13/M
ctx: 400,000 max out: 128,000 in: text, image out: text
reasoning tools vision structured temp open weights

GPT-5 Mini

openai/gpt-5-mini
in $0.25/M
out $2.00/M
cache read $0.03/M
ctx: 400,000 max out: 128,000 in: text, image out: text
reasoning tools vision structured temp open weights

GPT-5 Nano

openai/gpt-5-nano
in $0.05/M
out $0.40/M
cache read $0.01/M
ctx: 400,000 max out: 128,000 in: text, image out: text
reasoning tools vision structured temp open weights

GPT-5 Pro

openai/gpt-5-pro
in $15.00/M
out $120.00/M
ctx: 400,000 max out: 272,000 in: text, image out: text
reasoning tools vision structured temp open weights

GPT-5.1

openai/gpt-5.1
in $1.25/M
out $10.00/M
cache read $0.13/M
ctx: 400,000 max out: 128,000 in: text, image out: text
reasoning tools vision structured temp open weights

GPT-5.2

openai/gpt-5.2
in $1.75/M
out $14.00/M
cache read $0.17/M
ctx: 400,000 max out: 128,000 in: text, image out: text
reasoning tools vision structured temp open weights

GPT-5.2 Chat

openai/gpt-5.2-chat-latest
in $1.75/M
out $14.00/M
cache read $0.17/M
ctx: 128,000 max out: 16,384 in: text, image out: text
reasoning tools vision structured temp open weights

GPT-5.2 Pro

openai/gpt-5.2-pro
in $21.00/M
out $168.00/M
ctx: 400,000 max out: 128,000 in: text, image out: text
reasoning tools vision structured temp open weights

GPT-5.3 Chat (latest)

openai/gpt-5.3-chat-latest
in $1.75/M
out $14.00/M
cache read $0.17/M
ctx: 128,000 max out: 16,384 in: text, image out: text
reasoning tools vision structured temp open weights

GPT-5.3 Codex

openai/gpt-5.3-codex
in $1.75/M
out $14.00/M
cache read $0.17/M
ctx: 400,000 max out: 128,000 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

GPT-5.3 Codex Spark

openai/gpt-5.3-codex-spark
in $1.75/M
out $14.00/M
cache read $0.17/M
ctx: 128,000 max out: 32,000 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

GPT-5.4

openai/gpt-5.4
in $2.50/M
out $15.00/M
cache read $0.25/M
ctx: 1,050,000 max out: 128,000 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

GPT-5.4 mini

openai/gpt-5.4-mini
in $0.75/M
out $4.50/M
cache read $0.07/M
ctx: 400,000 max out: 128,000 in: text, image out: text
reasoning tools vision structured temp open weights

GPT-5.4 nano

openai/gpt-5.4-nano
in $0.20/M
out $1.25/M
cache read $0.02/M
ctx: 400,000 max out: 128,000 in: text, image out: text
reasoning tools vision structured temp open weights

GPT-5.4 Pro

openai/gpt-5.4-pro
in $30.00/M
out $180.00/M
ctx: 1,050,000 max out: 128,000 in: text, image out: text
reasoning tools vision structured temp open weights

GPT-5.5

openai/gpt-5.5
in $5.00/M
out $30.00/M
cache read $0.50/M
ctx: 1,050,000 max out: 128,000 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

GPT-5.5 Pro

openai/gpt-5.5-pro
in $30.00/M
out $180.00/M
ctx: 1,050,000 max out: 128,000 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

GPT-5.6

openai/gpt-5.6
in $5.00/M
out $30.00/M
cache read $0.50/M
cache write $6.25/M
ctx: 1,050,000 max out: 128,000 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

GPT-5.6 Luna

openai/gpt-5.6-luna
in $0.20/M
out $1.20/M
cache read $0.02/M
cache write $0.25/M
ctx: 1,050,000 max out: 128,000 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

GPT-5.6 Sol

openai/gpt-5.6-sol
in $5.00/M
out $30.00/M
cache read $0.50/M
cache write $6.25/M
ctx: 1,050,000 max out: 128,000 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

GPT-5.6 Terra

openai/gpt-5.6-terra
in $2.00/M
out $12.00/M
cache read $0.20/M
cache write $2.50/M
ctx: 1,050,000 max out: 128,000 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

Granite 4.0 H Micro

workers-ai/@cf/ibm-granite/granite-4.0-h-micro
in $0.02/M
out $0.11/M
ctx: 131,000 max out: 131,000 in: text out: text
reasoning tools vision structured temp open weights

Kimi K2.6

workers-ai/@cf/moonshotai/kimi-k2.6
in $0.95/M
out $4.00/M
cache read $0.16/M
ctx: 262,144 max out: 256,000 in: text, image out: text
reasoning tools vision structured temp open weights

Kimi K2.7 Code

workers-ai/@cf/moonshotai/kimi-k2.7-code
in $0.95/M
out $4.00/M
cache read $0.19/M
ctx: 262,144 max out: 262,144 in: text, image out: text
reasoning tools vision structured temp open weights

Llama 3.1 8B Instruct fp8

workers-ai/@cf/meta/llama-3.1-8b-instruct-fp8
in $0.15/M
out $0.29/M
ctx: 32,000 max out: 32,000 in: text out: text
reasoning tools vision structured temp open weights

Llama 3.2 11B Vision Instruct

workers-ai/@cf/meta/llama-3.2-11b-vision-instruct
in $0.05/M
out $0.68/M
ctx: 128,000 max out: 128,000 in: text, image out: text
reasoning tools vision structured temp open weights

Llama 3.2 1B Instruct

workers-ai/@cf/meta/llama-3.2-1b-instruct
in $0.03/M
out $0.20/M
ctx: 60,000 max out: 60,000 in: text out: text
reasoning tools vision structured temp open weights

Llama 3.2 3B Instruct

workers-ai/@cf/meta/llama-3.2-3b-instruct
in $0.05/M
out $0.34/M
ctx: 80,000 max out: 80,000 in: text out: text
reasoning tools vision structured temp open weights

Llama 3.3 70B Instruct fp8 Fast

workers-ai/@cf/meta/llama-3.3-70b-instruct-fp8-fast
in $0.29/M
out $2.25/M
ctx: 24,000 max out: 24,000 in: text out: text
reasoning tools vision structured temp open weights

Llama 4 Scout 17B 16E Instruct

workers-ai/@cf/meta/llama-4-scout-17b-16e-instruct
in $0.27/M
out $0.85/M
ctx: 131,000 max out: 16,384 in: text, image out: text
reasoning tools vision structured temp open weights

Llama Guard 3 8B

workers-ai/@cf/meta/llama-guard-3-8b
in $0.48/M
out $0.03/M
ctx: 131,072 max out: 131,072 in: text out: text
reasoning tools vision structured temp open weights

Mistral Small 3.1 24B Instruct

workers-ai/@cf/mistralai/mistral-small-3.1-24b-instruct
in $0.35/M
out $0.56/M
ctx: 128,000 max out: 128,000 in: text out: text
reasoning tools vision structured temp open weights

Nemotron 3 Super 120B

workers-ai/@cf/nvidia/nemotron-3-120b-a12b
in $0.50/M
out $1.50/M
ctx: 256,000 max out: 256,000 in: text out: text
reasoning tools vision structured temp open weights

o1

openai/o1
in $15.00/M
out $60.00/M
cache read $7.50/M
ctx: 200,000 max out: 100,000 in: text, image, pdf out: text
reasoning tools vision structured temp open weights deprecated

o1-pro

openai/o1-pro
in $150.00/M
out $600.00/M
ctx: 200,000 max out: 100,000 in: text, image out: text
reasoning tools vision structured temp open weights deprecated

o3

openai/o3
in $2.00/M
out $8.00/M
cache read $0.50/M
ctx: 200,000 max out: 100,000 in: text, image, pdf out: text
reasoning tools vision structured temp open weights

o3-mini

openai/o3-mini
in $1.10/M
out $4.40/M
cache read $0.55/M
ctx: 200,000 max out: 100,000 in: text out: text
reasoning tools vision structured temp open weights deprecated

o3-pro

openai/o3-pro
in $20.00/M
out $80.00/M
ctx: 200,000 max out: 100,000 in: text, image out: text
reasoning tools vision structured temp open weights

o4-mini

openai/o4-mini
in $1.10/M
out $4.40/M
cache read $0.28/M
ctx: 200,000 max out: 100,000 in: text, image out: text
reasoning tools vision structured temp open weights deprecated

Qwen2.5 Coder 32B Instruct

workers-ai/@cf/qwen/qwen2.5-coder-32b-instruct
in $0.66/M
out $1.00/M
ctx: 32,768 max out: 32,768 in: text out: text
reasoning tools vision structured temp open weights

Qwen3 30B A3b fp8

workers-ai/@cf/qwen/qwen3-30b-a3b-fp8
in $0.05/M
out $0.34/M
ctx: 32,768 max out: 32,768 in: text out: text
reasoning tools vision structured temp open weights

Qwq 32B

workers-ai/@cf/qwen/qwq-32b
in $0.66/M
out $1.00/M
ctx: 24,000 max out: 24,000 in: text out: text
reasoning tools vision structured temp open weights