Sulat.com / Writing on AIWednesday, December 2, 2026
Enter →
Developer Tools/2 December 2026

Laravel Cloud adds a Model Gateway for AI models

Laravel Cloud's new Model Gateway gives an app one key for models from Anthropic, OpenAI, xAI, DeepSeek and Kimi, with a budget on every key. I ran the Cloud CLI that controls it.

Red glass Laravel logo with a glowing key and cable leading to a glass arch holding five coloured orbs
Illustration: Sulat, featuring the Laravel logo

At a glance

  • Laravel Cloud's new Model Gateway gives an app one key for models from Anthropic, OpenAI, xAI, DeepSeek, Moonshot and other providers.
  • Every key can carry its own budget, which Laravel calls a hard cap, and spend comes out of AI credits on your Cloud account.
  • You can't bring your own provider key, and the product page doesn't publish per-token prices.
  • Access is by early-access request. I installed the Cloud CLI and ran its gateway commands, but I haven't called the gateway itself.
  • Vercel, Cloudflare and OpenRouter sell the same idea with different fees and different rules on your own keys.

Laravel Cloud now has a Model Gateway. It’s one key that lets an app call models from Anthropic, OpenAI, xAI, DeepSeek, Moonshot’s Kimi and other providers, with its own budget on every key and the spend on your Cloud bill. Laravel’s launch post names Opus, Sol, Grok, DeepSeek and Kimi, and the product page asks you to request early access.

I installed the Cloud CLI, which already carries the gateway’s commands, and read what it exposes. I didn’t call the gateway itself, because access is by request. Here’s what Laravel has published, what the CLI and API add, and how it stacks up against Vercel, Cloudflare and OpenRouter.

What’s new

Laravel announced the gateway during its Laravel Presents event on 1 December, US time. Until now, calling Claude or GPT from a Cloud app meant an account and an API key at every provider, plus your own way to cap spend. The gateway swaps that for a single key created in Cloud, and the usage lands on the same bill as the rest of your infrastructure.

16

providers the CLI can filter models by

4

Cloud plans that include it

0

provider keys of your own allowed

PieceWhat it does
One keyCreate a key, attach it to an environment, and Cloud injects it as a variable on the next deploy
Request formatsCall each model in its provider’s own format or in OpenResponses. The REST API takes OpenAI Chat Completions and Anthropic Messages
Laravel AI SDKPoint the SDK at the gateway and call any model from your Laravel app
BudgetsA cap on every key, so production, staging and previews each spend within their own limit
One walletAI credits on your Cloud account with a central spending limit and optional auto top-up
Request logsModel, tokens in and out, duration and status for every call, without the prompt or the reply
PlansEvery Cloud plan, from Starter to Enterprise
Source: Laravel Cloud Model Gateway page.

How it works

You add the gateway from the app canvas, and Cloud creates a key and injects it into the environment as a variable on the next deploy. From there you call a model in its provider’s own request format, or in OpenResponses if you want wider compatibility. Laravel says the AI SDK needs nothing else configured, and its page shows an agent call tagged as going via the gateway.

Diagram: an app with three provider keys versus an app with one Model Gateway key reaching many providers
One gateway key stands in for a key at every provider.

The CLI gives you the same controls from a terminal. Creating a key takes a name, an access level and a budget in dollars, and a flag saves the key to your project’s env file as LARAVEL_CLOUD_MODEL_GATEWAY_API_KEY. The model list filters by provider and by API format, and the CLI names sixteen providers: AI21, Amazon, Anthropic, Cohere, DeepSeek, Google, Meta, MiniMax, Mistral, Moonshot, Nvidia, OpenAI, Qwen, Writer, xAI and Z.ai. A model’s detail view returns its ID and the endpoint to call it with.

Budgets and credits

Every key can carry its own budget, and Laravel calls the budgets hard caps. In the API a budget is the most a key can spend in a billing period, in cents. Once a key reaches it, the gateway rejects that key until the next billing period or until you raise or remove the budget. Your other keys keep working, which is the reason to give production, staging and each preview environment a key of its own.

Diagram: production and staging keys keep working while a preview key that hit its budget is refused
A key that hits its budget stops. Your other keys carry on.

Spend comes out of AI credits on your Cloud account. That wallet only pays for the gateway. It has one central spending limit that covers every key, and you can set it to top up automatically or let requests stop when the credits run out. New accounts start with smaller limits that grow with their history, and verifying your identity raises them sooner.

Keys

A key is either internal, accepted only from environments on Laravel Cloud, or external, accepted from anywhere. The CLI defaults to external. You can rotate a key or revoke it, and revoking detaches it from every environment and can’t be undone.

Diagram: internal keys work only from Laravel Cloud environments, external keys work from anywhere
Internal keys stay inside Cloud. External keys work from anywhere.

You can’t bring your own provider key. The gateway runs on Laravel’s provider accounts, which is why you don’t need any of your own. On data, Laravel says it doesn’t store prompts or completions and requests zero data retention from providers. The request log keeps the model, tokens in and out, duration and status for each call, and leaves out the prompt and the reply.

What I ran

I installed version 0.8.3 of the Cloud CLI from npm and listed its commands. The gateway has three groups: credits, logs, metrics and top-up for the wallet; create, get, list, revoke and update for keys; and get and list for models. With no account attached, the model list answers with an authentication error that points at the LARAVEL_CLOUD_TOKEN variable. The Composer package for the CLI is marked abandoned in favour of the npm one.

Terminal listing the cloud CLI model-gateway commands and an auth_required error from model-gateway-model:list
The Cloud CLI already ships the gateway commands. Without an account the model list answers auth_required.
Check it yourself

These show the same command surface on any machine with Node.

Code
npm install @laravel/cloud-cli
npx cloud --help
npx cloud model-gateway-key:create --help
npx cloud model-gateway-model:list --json -n

The peers

One key in front of many model providers isn’t new. Vercel, Cloudflare and OpenRouter all sell a version of it, and they differ mostly in what they charge and what they let you bring. I’ve covered Cloudflare’s gateway before.

GatewayWhat it chargesYour own provider keys
Laravel Model GatewayAI credits. The page publishes no per-token ratesNot supported
Vercel AI GatewayProvider list price, no markup and no platform fee on tokensSupported on the paid tier, no gateway fee
Cloudflare AI GatewayNo markup on inference, and a 5% fee on credits bought through Unified BillingSupported
OpenRouterNo markup on inference, and a 5.5% fee on credits on the Standard plan or 8% on BusinessFree up to a monthly allowance, then a 5% fee
Sources: Laravel, Vercel, Cloudflare and OpenRouter pricing pages.

Budgets are where the comparison gets interesting. Laravel calls its caps hard. Vercel’s own comparison page says its budgets are checked at the start of a request, so a request that crosses the limit can finish. I haven’t been able to test how Laravel enforces its caps, so that difference is worth checking once you have access.

What it means

The Laravel AI SDK reached version 1.0 in September and has since gained runtime providers, so an app can build one from a tenant’s own key, along with support for any OpenAI-compatible provider. The gateway is the hosting half of that. The SDK picks the model, and Cloud supplies the key and the cap. I built a set of small Laravel AI SDK apps in my piece on free ChatGPT API credits, and that’s the kind of app a per-environment key suits.

For a team already on Cloud, this removes a chore: one place to create keys, one credit balance, one bill, and a limit per environment so a runaway preview can’t eat into production’s budget. The limits are just as plain. You can only use Laravel’s provider accounts, so any discount or commitment you hold with a provider doesn’t carry over. The product page doesn’t publish per-token prices, so you can’t compare the cost with going direct until you have access. And access today is a request form.

It’s also one of several Cloud announcements this week. Cloud now runs Rails, Django, Go and Rust apps, and Taylor Otwell’s Laravel for Rust arrived the same day. Coding agents get an MCP server for coding agents.


Sources