---
title: "One-shot AI apps with Netlify AI Gateway"
description: "AI Gateway lets agents ship real AI apps in one step. No API keys, no extra accounts; model access, billing, and guardrails built into Netlify."
source: "https://www.netlify.com/blog/ai-gateway-is-now-generally-available/"
last_updated: "2026-07-14T23:51:16.000Z"
---
The best AI agents don’t just write code, they ship applications. But most infrastructure wasn’t built for that. The agent scaffolds your app, then stops. One shot becomes ten errands: create an OpenAI account; add these env vars; set up a database; add more variables, and so it goes.

We’ve been building Netlify to be the platform where agents can one-shot real applications. Today, [AI Gateway](https://docs.netlify.com/build/ai-gateway/overview/) makes that more complete. AI model access is now built into the platform, generally available for all Netlify users on credit-based plans.

## The platform to one-shot

Think about what a real application actually needs: backend logic, scheduled tasks, background processing, file storage, a database, user input handling, and increasingly, AI.

With Netlify, an agent can build all of that without creating a single external account:

-   **Functions** for backend logic—serverless, scheduled, long-running, or edge
-   **Blobs** for files, images, and assets
-   **DB** for persistent database storage
-   **Forms** for collecting user input without writing backend code
-   **AI Gateway** for calling OpenAI, Anthropic, and Gemini models

That’s a complete, ready-to-scale stack on one platform. All from one prompt. No stopping to set up external services, no credentials across providers, no stitching together infrastructure that wasn’t made to work together.

## What AI Gateway does

AI Gateway handles the infrastructure side of AI model access so you can focus on building. Here’s what it looks like in practice:

```
import Anthropic from '@anthropic-ai/sdk';
const anthropic = new Anthropic();/// No API keys or base URL configuration needed.// Netlify AI Gateway injects credentials automatically.
async function callAnthropic() {  const message = await anthropic.messages.create({    model: 'claude-opus-4.5',    max_tokens: 1024,    messages: [{ role: 'user', content: 'Happy holidays.' }]  });  return message;}
```

That’s it. No API key configuration, no environment variables to set up, no account to create with Anthropic. Deploy this function to Netlify and it works.

Here’s what’s happening behind the scenes:

**Automatic key management.** Credentials for OpenAI, Anthropic, and Gemini are injected automatically. The official client libraries pick them up without any configuration.

**Simplified billing.** AI usage shows up on your Netlify bill alongside everything else. One vendor relationship, one invoice.

**Fast experimentation.** Access to new providers without creating new accounts. When you want to test a different model, the infrastructure is already there.

**Built-in governance.** Rate limiting and credit controls protect against runaway costs. For teams, this means developers can experiment with AI features without anyone worrying about surprise bills or uncontrolled access. The guardrails are all in the right place.

If you’d rather use your own API keys, just set your own environment variables and Netlify won’t override them. You can opt out per provider or entirely – whatever’s best for you.

## Built for one-shot apps

AI tools aren’t just autocompleting code anymore, but generating entire apps. The bottleneck isn’t writing code, but everything that goes after it.

AI Gateway removes one of the new friction points. Getting AI capabilities into production without creating external accounts or managing separate credentials and billing. Your agent generates a function that calls the model and you just deploy it. Netlify handles the rest.

## Get started

AI Gateway is available now on all credit-based plans. Free plans include 300 credits to use across the platform including AI inference. Check out the [quickstart](https://docs.netlify.com/build/ai-gateway/quickstart-for-ai-gateway/) or a [TanStack Start demo](https://github.com/netlify-templates/tanstack-template) to get running quickly.

The best agent experience isn’t just about what the agent can write. Every primitive we add to Netlify from storage and compute to inference serves the same goal, providing a platform where “build me an app” results in a real app.

### Share

-   [X (fka Twitter)](https://twitter.com/intent/tweet?text=AI Gateway is now generally available&url=https://www.netlify.com/blog/ai-gateway-is-now-generally-available/)
-   [LinkedIn](https://www.linkedin.com/shareArticle?mini=true&url=https%3A%2F%2Fwww.netlify.com%2Fblog%2Fai-gateway-is-now-generally-available%2F)
-   [Facebook](https://www.facebook.com/sharer.php?u=https://www.netlify.com/blog/ai-gateway-is-now-generally-available/)
-   [Bluesky](https://bsky.app/intent/compose?text=AI Gateway is now generally available+https://www.netlify.com/blog/ai-gateway-is-now-generally-available/)

## Keep reading

![](/_astro/d0354fe52c160a3abdfdeff297a1baf090302a3d-1600x900_Z1eDdJG.webp)

News & Announcements July 14, 2026

[

### More headroom, a lower per-credit rate, and a bill you can predict: introducing new Pro plan tiers

](/blog/new-pro-plan-tiers)

-   ![Profile picture of Gehrig Kunz](/_astro/b4e9f58d914d1334ea70d53ea55a1f26b26f1445-512x512_17SwOI.webp)
    
    Gehrig Kunz
    

![](/_astro/8cc710924ebf8880283553465808eac2611fd379-1600x900_Z2eTTQe.webp)

News & Announcements July 13, 2026

[

### Netlify inside of Claude Design

](/blog/netlify-inside-of-claude-design)

-   ![Profile picture of Sean Roberts](/_astro/bbf2243f8171dbddd80ab2103622106cef84d125-512x512_Z1d2LKE.webp)
    
    Sean Roberts
    

## Recent posts

News & Announcements July 14, 2026

[

### More headroom, a lower per-credit rate, and a bill you can predict: introducing new Pro plan tiers

](/blog/new-pro-plan-tiers)

-   ![Profile picture of Gehrig Kunz](/_astro/b4e9f58d914d1334ea70d53ea55a1f26b26f1445-512x512_17SwOI.webp)
    
    Gehrig Kunz
    

News & Announcements July 13, 2026

[

### Netlify inside of Claude Design

](/blog/netlify-inside-of-claude-design)

-   ![Profile picture of Sean Roberts](/_astro/bbf2243f8171dbddd80ab2103622106cef84d125-512x512_Z1d2LKE.webp)
    
    Sean Roberts
    

News & Announcements June 25, 2026

[

### Netlify Functions, designed for Agent Experience

](/blog/netlify-functions-designed-for-agent-experience)

-   ![Profile picture of Eduardo Bouças](/_astro/52958f21e8450baf6d8e60302341a984e220c0cd-512x512_13VDlu.webp)
    
    Eduardo Bouças
    

![](/_astro/3f255b372fa958df35802666ee33b4609b2d71bd-1200x1586_1VtE2D.webp)

### How do the best dev and marketing teams work together?

[Access the report](https://www.netlify.com/reports/2024-leadership-trend-report/access/)