Laravel Cloud Model Gateway: One Key for All AI Models | Mohamed Said       [Skip to content](#main)  [ ![](https://cdn.msaied.com/01KT78WE565VEMM3PSNQAAB0MH.png) Mohamed SaidLaravel Backend Engineer ](https://msaied.com) - [Home](https://msaied.com)
- [Projects](https://msaied.com/projects)
- [Articles](https://msaied.com/articles)
- [Certificates](https://msaied.com/certificates)
- [About](https://msaied.com#about)

           [  Contact](https://msaied.com#contact) Menu 

Menu
----

Close 

 - [HomeStart here](https://msaied.com)
- [ProjectsCase studies](https://msaied.com/projects)
- [ArticlesEngineering notes](https://msaied.com/articles)
- [CertificatesCredentials](https://msaied.com/certificates)
- [AboutHow I work](https://msaied.com#about)
- [ContactGet in touch](https://msaied.com#contact)

  [Start a conversation](https://msaied.com#contact) [WhatsApp](https://wa.me/201094619204) [Email](mailto:hello@msaied.com) 

 1. [Home](https://msaied.com)
2. /
3. [Articles](https://msaied.com/articles)
4. /
5. [Laravel](https://msaied.com/articles?category=laravel)
6. /
7. Introducing Laravel Cloud Model Gateway: One Key for Every AI Model

   [Laravel](https://msaied.com/articles?category=laravel) [AI](https://msaied.com/articles?category=ai) 

 Introducing Laravel Cloud Model Gateway: One Key for Every AI Model
====================================================================

 Laravel Cloud Model Gateway is now in early access. Mint a single key, access every supported AI model, and set per-key budgets — all from the Cloud CLI, MCP, or dashboard.

 ![](https://cdn.msaied.com/01M22N44A70A5MC2S599JP0MPH.webp) [Mohamed Said](https://msaied.com#person) Published 1 Dec 2026 · Updated 5 Dec 2026 · 3 min read

ShareCopy linkCopied

 ![Introducing Laravel Cloud Model Gateway: One Key for Every AI Model](https://cdn.msaied.com/844/4158c4af5d46d8babe0650b18493231c.png) 

  On this page +1. [What Is Laravel Cloud Model Gateway?](#what-is-laravel-cloud-model-gateway)
2. [The Problem It Solves](#the-problem-it-solves)
3. [Getting Started](#getting-started)
4. [Laravel AI SDK Integration](#laravel-ai-sdk-integration)
5. [Budget Controls and Spending Visibility](#budget-controls-and-spending-visibility)
6. [Attaching a Key From Anywhere](#attaching-a-key-from-anywhere)
7. [Key Takeaways](#key-takeaways)
8. [Get Early Access](#get-early-access)

 What Is Laravel Cloud Model Gateway?
------------------------------------

Laravel Cloud Model Gateway is a new service — currently in early access — that lets you replace the tedious process of managing separate API keys for every AI provider with a single, centrally managed key. Mint one key, use any supported model, and control spending at the key level, all from within Laravel Cloud.

The Problem It Solves
---------------------

If you have ever integrated multiple AI providers into a Laravel application, you know the drill: navigate to each provider's platform, create an account or sign in, find the API keys screen, copy the key, figure out the correct `.env` variable name, and repeat for every provider you need. It is friction that adds up fast, especially when you are juggling Anthropic, OpenAI, and others in the same project.

The Model Gateway eliminates that loop entirely.

Getting Started
---------------

With the Cloud CLI, a single command mints a new gateway key and writes the correct environment variable to your local `.env`:

```bash
# Example: mint a new Model Gateway key via the Cloud CLI
cloud model-gateway:create

```

That is the entire setup. From that point on, you reference the gateway key regardless of which underlying model you want to use.

### Laravel AI SDK Integration

Laravel's AI SDK 1.5 and later supports the Model Gateway as a first-class provider out of the box. Switching to it requires only a config change — no new packages, no boilerplate.

The gateway is not locked to Laravel's own SDK either. Any library that supports a gateway-style configuration — such as Vercel's AI SDK — works with a simple config update.

Budget Controls and Spending Visibility
---------------------------------------

Runaway AI costs are a real concern, especially when agents are involved. The Model Gateway addresses this with several layers of control:

- **Dedicated wallet** — Model Gateway usage is billed through a separate wallet with optional automatic top-up at a configurable threshold.
- **Per-key budgets** — Set a spending cap on each key that resets every billing cycle. When the budget is exhausted, the key rejects further requests until the next cycle begins (or you raise the limit).
- **Host restrictions** — Optionally lock a key so it can only be used when running on Laravel Cloud, preventing local or third-party use.
- **Real-time request log** — The dashboard shows each request's timestamp, cost, and duration as it happens.

Attaching a Key From Anywhere
-----------------------------

You can attach a Model Gateway key to your application through whichever interface you prefer:

- **Cloud MCP** — A single MCP command provisions and attaches the key.
- **Cloud CLI** — Same result from the terminal.
- **Dashboard** — Add the Model Gateway as an environment resource alongside cache, database, or storage buckets; Cloud injects the correct environment variables automatically.

Key Takeaways
-------------

- One gateway key replaces individual provider API keys for every supported AI model.
- Laravel AI SDK 1.5+ supports the Model Gateway natively; third-party SDKs with gateway support also work.
- Per-key budgets and host restrictions give you granular cost and security controls.
- Real-time request logs surface cost and latency data directly in the Cloud dashboard.
- The gateway is available today via early access at cloud.laravel.com.

Get Early Access
----------------

The Laravel Cloud Model Gateway is available now in early access. Sign up at  to get started.

---

*Source: [Introducing Laravel Cloud Model Gateway](https://laravel.com/blog/introducing-laravel-cloud-model-gateway)*

- [Laravel Cloud](https://msaied.com/articles?search=Laravel%20Cloud)
- [AI](https://msaied.com/articles?search=AI)
- [Model Gateway](https://msaied.com/articles?search=Model%20Gateway)
- [Laravel AI SDK](https://msaied.com/articles?search=Laravel%20AI%20SDK)
- [API Keys](https://msaied.com/articles?search=API%20Keys)

 Frequently asked questions 
---------------------------

  What is the Laravel Cloud Model Gateway?It is a Laravel Cloud service that lets you use a single API key to access multiple AI model providers, replacing the need to manage separate keys for each provider. You can set per-key spending budgets and view real-time request logs from the Cloud dashboard.

   Which SDKs and libraries are compatible with the Model Gateway?Laravel's AI SDK version 1.5 and later supports the Model Gateway as a built-in provider. Any third-party library that supports a gateway-style configuration — such as Vercel's AI SDK — also works with a simple config change.

   How do budget controls work for the Model Gateway?Usage is billed through a dedicated wallet with optional automatic top-up. You can set a spending cap per gateway key that resets each billing cycle. Once the budget is exhausted, the key rejects requests until the next cycle or until you manually increase the limit.

   ![Mohamed Said](https://cdn.msaied.com/01M22N44A70A5MC2S599JP0MPH.webp)About the author
----------------

[Mohamed Said](https://msaied.com#person)Senior Backend Engineer specializing in Laravel, scalable SaaS platforms, APIs, and cloud infrastructure. I build secure, high-performance web applications that help businesses grow.

[About](https://msaied.com#about) [GitHub ↗](https://github.com/EG-Mohamed) [LinkedIn ↗](https://www.linkedin.com/in/msaiedm/) [WhatsApp ↗](https://wa.me/201094619204) [Email Address ↗](mailto:hello@msaied.com) [My CV ↗](https://drive.google.com/file/u/0/d/1MF20IPRJyzfy32mhEutjL5EpSls0w2Q8/view)  

   [Previous articleHow Laravel Cloud Packs Kubernetes Nodes Efficiently](https://msaied.com/articles/how-laravel-cloud-packs-kubernetes-nodes-efficiently) [Next articleLaravel Rust Benchmarked: 18× the Throughput of Laravel PHP](https://msaied.com/articles/laravel-rust-benchmarked-18-the-throughput-of-laravel-php)  

   On this page
-------------

1. [What Is Laravel Cloud Model Gateway?](#what-is-laravel-cloud-model-gateway)
2. [The Problem It Solves](#the-problem-it-solves)
3. [Getting Started](#getting-started)
4. [Laravel AI SDK Integration](#laravel-ai-sdk-integration)
5. [Budget Controls and Spending Visibility](#budget-controls-and-spending-visibility)
6. [Attaching a Key From Anywhere](#attaching-a-key-from-anywhere)
7. [Key Takeaways](#key-takeaways)
8. [Get Early Access](#get-early-access)

 ###  Have a technical challenge?

 Tell me what you’re building. I reply within two working days.

[Start a conversation](https://msaied.com#contact) 

   Related articles
-----------------

 [ ![](https://cdn.msaied.com/843/4b47e60127e1da7f55c7f483ae7352d4.png) Laravel · 4 min read### Migration Durations and Job Memory Usage in Laravel 13.45

1 Dec 2026 ](https://msaied.com/articles/migration-durations-and-job-memory-usage-in-laravel-1345) [ ![](https://cdn.msaied.com/842/f1f2dcfcc09498d0833e073d339309c7.png) Laravel · 3 min read### Laravel Rust Benchmarked: 18× the Throughput of Laravel PHP

1 Dec 2026 ](https://msaied.com/articles/laravel-rust-benchmarked-18-the-throughput-of-laravel-php) [ ![](https://cdn.msaied.com/841/c1d2916389c95533967f0a593b3c14e0.png) Laravel · 4 min read### How Laravel Cloud Packs Kubernetes Nodes Efficiently

1 Dec 2026 ](https://msaied.com/articles/how-laravel-cloud-packs-kubernetes-nodes-efficiently) 

  Have a technical challenge?
----------------------------

Tell me what you’re building. I reply within two working days.

 [Discuss your project ↗](https://msaied.com#contact) 

  © 2026 Mohamed Said · Built with Laravel, meant to last.Senior Backend Engineer specializing in Laravel, scalable SaaS platforms, APIs, and cloud infrastructure. I build secure, high-performance web applications that help businesses grow.

 - [Home](https://msaied.com)
- [Articles](https://msaied.com/articles)
- [Certificates](https://msaied.com/certificates)
- [GitHub](https://github.com/EG-Mohamed)
- [LinkedIn](https://www.linkedin.com/in/msaiedm/)
- [WhatsApp](https://wa.me/201094619204)
- [Email Address](mailto:hello@msaied.com)
- [My CV](https://drive.google.com/file/u/0/d/1MF20IPRJyzfy32mhEutjL5EpSls0w2Q8/view)
- [Sitemap](https://msaied.com/sitemap.xml)
