AI Gateway

Monitor, control, and optimize your AI applications

Cloudflare AI Gateway provides centralized visibility and control for your AI applications. Connect your apps with a single line of code to monitor usage, costs, and errors. Reduce risks and expenses through caching, rate limiting, request retries, and model fallbacks. Ensure reliability, scalability, and productivity with minimal effort.

Running AI workload illustration

Benefits of AI Gateway

Price Icon
Control costs for all your AI apps

Connect your AI apps to AI Gateway for a unified dashboard and control costs with usage stats, rate limiting, and caching.

AI Audit - Benefits - Better visibility - icon
Easy analytics & troubleshooting

Gain visibility into prompts, AI API requests, errors, token usage, costs, and more. Logs are available for auditing and troubleshooting.

Security bots
Support for the most popular AI providers

Unify the top AI providers including Hugging Face, OpenAI, Anthropic and Workers AI, for comprehensive visibility into your AI applications.

HOW IT WORKS

Make AI applications observable, reliable, and scalable

By shifting features such as rate limiting, caching, and error handling to the proxy layer, organizations can apply unified configurations across AI apps and inference service providers. AI Gateway sits between your application and the AI provider to give you multivendor AI observability and control.

AI gateway illustration

What our customers are saying

Gateway product - placeholder

"Without AI Gateway, it’s difficult to see which applications are driving the majority of the costs with the OpenAI API … We can choose to limit the number of requests used by certain tools to control costs."

Rightblogger

Top AI Gateway use cases

Analytics bot - Icon
Monitor

Real-time insights and reliability with logs, metrics, rate limiting, caching, and monitoring.

Security lock icon
Control

Effortlessly connect the most popular providers- Workers AI, Hugging Face, OpenAI, Anthropic, and more with just one line of code.

ABM - Woolworths - Elevating the Digital Customer Journey - Card 1 - Icon
Optimize

Optimize costs and reduce latency with custom caching. Control scaling and prevent excessive activity with rate limiting.

Helping organizations worldwide monitor, control, and scale their AI solutions

Resources

Report thumbnail

Documentation

Create an AI Gateway to monitor, control & optimize into your AI applications.
Learn more  
Video thumbnail

Video

Learn how to optimize your existing AI applications with Cloudflare AI Gateway & how to finetune OpenAI models using R2.
Watch video  
Insight thumbnail - rocket

Documentation

Gain an overview of AI Gateway and its benefits.
Learn more  
Thumbnail - Report - Template 3 Graphs

Solution brief

Learn how Cloudflare enables more effective, productive, and agile data protection.
Get solution brief  

AI Gateway FAQs

Security Shield Protection Icon

Get AI Gateway for your enterprise

Request an AI Gateway discussion

Select your job level... *
C-Level
VP
Director
Manager
Individual Contributor
Student
Other
Select your job function... *
IT
Security
Network
Infrastructure
Engineering
DevOps
Executive
Product
Finance/ Procurement
Sales / Marketing
Student
Press / Media
Other
Select your country...
Afghanistan
Aland Islands
Albania
Algeria
Andorra
Angola
Anguilla
Antarctica
Antigua and Barbuda
Argentina
Armenia
Aruba
Australia
Austria
Azerbaijan
Bahamas
Bahrain
Bangladesh
Barbados
Belarus
Belgium
Belize
Benin
Bermuda
Bhutan
Bolivia, Plurinational State of
Bonaire, Sint Eustatius and Saba
Bosnia and Herzegovina
Botswana
Bouvet Island
Brazil
British Indian Ocean Territory
Brunei Darussalam
Bulgaria
Burkina Faso
Burundi
Cambodia
Cameroon
Canada
Cape Verde
Cayman Islands
Central African Republic
Chad
Chile
China
Christmas Island
Cocos (Keeling) Islands
Colombia
Comoros
Congo, the Democratic Republic of the
Congo
Cook Islands
Costa Rica
Cote d'Ivoire
Croatia
Cuba
Curaçao
Cyprus
Czech Republic
Denmark
Djibouti
Dominica
Dominican Republic
Ecuador
Egypt
El Salvador
Equatorial Guinea
Eritrea
Estonia
Ethiopia
Falkland Islands (Malvinas)
Faroe Islands
Fiji
Finland
France
French Guiana
French Polynesia
French Southern Territories
Gabon
Gambia
Georgia
Germany
Ghana
Gibraltar
Greece
Greenland
Grenada
Guadeloupe
Guatemala
Guernsey
Guinea-Bissau
Guinea
Guyana
Haiti
Heard Island and McDonald Islands
Holy See (Vatican City State)
Honduras
Hong Kong
Hungary
Iceland
India
Indonesia
Iran
Iraq
Ireland
Isle of Man
Israel
Italy
Jamaica
Japan
Jersey
Jordan
Kazakhstan
Kenya
Kiribati
Kuwait
Kyrgyzstan
Lao People's Democratic Republic
Latvia
Lebanon
Lesotho
Liberia
Libya
Liechtenstein
Lithuania
Luxembourg
Macao
Macedonia, the former Yugoslav Republic of
Madagascar
Malawi
Malaysia
Maldives
Mali
Malta
Martinique
Mauritania
Mauritius
Mayotte
Mexico
Moldova, Republic of
Monaco
Mongolia
Montenegro
Montserrat
Morocco
Mozambique
Myanmar
Namibia
Nauru
Nepal
Netherlands
New Caledonia
New Zealand
Nicaragua
Niger
Nigeria
Niue
Norfolk Island
North Korea
Norway
Oman
Pakistan
Palestine
Panama
Papua New Guinea
Paraguay
Peru
Philippines
Pitcairn
Poland
Portugal
Puerto Rico
Qatar
Reunion
Romania
Russian Federation
Rwanda
Saint Barthélemy
Saint Helena, Ascension and Tristan da Cunha
Saint Kitts and Nevis
Saint Lucia
Saint Martin (French part)
Saint Pierre and Miquelon
Saint Vincent and the Grenadines
Samoa
San Marino
Sao Tome and Principe
Saudi Arabia
Senegal
Serbia
Seychelles
Sierra Leone
Singapore
Sint Maarten (Dutch part)
Slovakia
Slovenia
Solomon Islands
Somalia
South Africa
South Georgia and the South Sandwich Islands
South Korea
South Sudan
Spain
Sri Lanka
Sudan
Suriname
Svalbard and Jan Mayen
Swaziland
Sweden
Switzerland
Syria
Taiwan
Tajikistan
Tanzania, United Republic of
Thailand
Timor-Leste
Togo
Tokelau
Tonga
Trinidad and Tobago
Tunisia
Turkey
Turkmenistan
Turks and Caicos Islands
Tuvalu
Uganda
Ukraine
United Arab Emirates
United Kingdom
United States
Uruguay
Uzbekistan
Vanuatu
Venezuela, Bolivarian Republic of
Viet Nam
Virgin Islands, British
Wallis and Futuna
Western Sahara
Yemen
Zambia
Zimbabwe

 
In submitting this form, you agree to receive information from Cloudflare related to our products, events, and special offers. You can unsubscribe from such messages at any time. We never sell your data, and we value your privacy choices. Please see our Privacy Policy for information.