Skip to content

Laravel Cloud Model Gateway replaces per-provider API keys

One key covers every AI provider, with a per-key budget that rejects requests once it runs out, and native support in Laravel AI SDK 1.5 and Vercel AI SDK.

Source: Laravel

Laravel announced early access for Cloud Model Gateway on 1 December: one API key that works across AI providers, issued and managed from Laravel Cloud instead of each vendor’s own dashboard. Laravel’s AI SDK 1.5 and later supports it as a provider out of the box, and any library with gateway support works with a config change, including Vercel’s AI SDK.

The gateway is billed through a dedicated wallet with optional automatic top-up, and you can set a budget on each key that resets every billing cycle. Once a key’s budget is spent, it rejects further requests until the next cycle, unless you raise the limit yourself. Keys can also be locked to run only on Cloud, so a leaked key can’t be used locally or on another host. Every request’s timestamp, cost and duration are visible in the dashboard. You can mint a key from the Cloud CLI, the Cloud MCP server, or the dashboard itself.

cloud model-gateway:key

Why it matters: the usual AI integration friction is foraging for separate keys per provider, then worrying about a runaway agent loop generating an unexpected bill. A single key with a hard per-key budget and host-locking removes both problems for anyone building on Laravel Cloud.

The caveat: it’s early access, tied to Laravel Cloud rather than a self-hosted option, and Laravel hasn’t published which providers or models it covers.

Share

Related reading

More from The Wire

All briefs

node-tar patches a Windows RCE bug triggered by npm install

A newline-injection flaw in node-tar let a crafted archive forge its own file paths and run code during npm install on Windows. The fix landed in a string of releases up to 8.1.0 on 2 December.

via GitHub Security Advisories (isaacs/node-tar)