AI isn't a luxury anymore. It’s a standard feature.
Laravel has always focused on developer happiness. We make complex things simple. The Laravel AI SDK continues that tradition. It brings artificial intelligence directly into the PHP web framework you already love.
Whether you are building a chatbot or generating dynamic content, the AI SDK handles the heavy lifting. You focus on shipping features. We handle the prompts, providers, and performance.
One SDK: Infinite Providers
The Laravel AI SDK is provider-agnostic. This is its greatest strength.
You can start with OpenAI today. You can switch to Anthropic tomorrow. You don't have to rewrite your application logic. The unified API means your code remains clean and predictable.

Configuration happens centrally in config/ai.php. You define your default provider and fallback options there. If OpenAI experiences downtime, Laravel can automatically fail over to Anthropic or Gemini. Your users never notice a gap in service.
You can also override providers per request. Need GPT-4 for high-stakes analysis but Claude for quick summaries? Use Ai::using(Provider::Anthropic) to pivot on the fly. It is flexible, powerful, and elegant.
Vector Search: Search by Meaning
Traditional search looks for exact words. Semantic search looks for meaning.
Laravel 13 introduces native vector support for PostgreSQL. By using the pgvector extension, Eloquent now treats vectors as first-class citizens. You can store embeddings directly in your database rows.

Querying is straightforward. Use the whereVectorSimilarTo method to find records that match a specific concept. It’s not about finding the word "hiking." It’s about finding content related to "outdoor adventures in the mountains."
This enables Retrieval-Augmented Generation (RAG) within your own database. You no longer need a separate, complex vector store like Pinecone for simple implementations. Your data stays in your app.
Content Workflows: Smarter Admin Panels
Modern applications need more than just CRUD. They need intelligent automation.
The AI SDK integrates deeply with Laravel Nova and custom admin panels. Imagine a "Post Editor" that suggests titles, generates featured images, and drafts social media copy in one click.

This isn't just about saving time. It’s about consistency. Use class-based Agents to define specific roles for your AI. An EditorAgent can enforce brand voice, while a SEOAgent optimizes meta tags. You build the logic once and reuse it across your entire ecosystem.
Laravel Boost: Your Intelligent Assistant
Developing with Laravel just got faster. Laravel Boost uses the AI SDK to understand your specific codebase.
It doesn't just know PHP. It knows your Eloquent models. It understands your database schema. It has access to your logs and routes.
When you ask Boost to "add a subscription check to the dashboard," it doesn't give you a generic snippet. It looks at your User model, checks your Middleware, and suggests a precise implementation. It is a php developer tool built by people who understand the daily grind of building web apps.
Build REST APIs with PHP: The AI Edition
Many developers use Laravel to build REST APIs with PHP. The AI SDK makes these APIs significantly smarter.
You can now expose endpoints that process natural language. Instead of a complex filter UI, your users can send a query like "show me active users from London who joined last month."
The SDK converts that natural language into structured data or direct Eloquent queries. It bridges the gap between human intent and machine execution.

Getting Started: The Basics
Ready to jump in? Installation is a single command.
composer require laravel/ai-sdk
After publishing the configuration, you can start generating text immediately.
use Laravel\Ai\Facades\Ai;
$response = Ai::chat('Explain quantum computing to a five-year-old.');
return $response->content();
For more complex tasks, use the Agent system. Agents can use "Tools": regular PHP methods that the AI can call to fetch data or perform actions. This transforms a simple chatbot into a functional assistant that can actually do things in your application.
The Next Wave of Development
AI is changing how we build. It is shifting the focus from boilerplate to behavior.
The Laravel AI SDK ensures you aren't left behind. It provides the tools to build sophisticated, intelligent features without the overhead of learning a new stack.
Every corner of our community is finding new ways to use these tools. From indie makers to large enterprises, the goal remains the same: ship fast and write code that brings joy.
Your story belongs here. We’d love to hear what you build.