Built on the first-party laravel/ai package

Laravel AI Development ServicesAgents, tools and document search inside your application

We add AI features to Laravel applications as ordinary PHP classes: queued, tested and logged like the rest of your code. One workflow first, with a clear test of whether it works.

Structured output, with a backup provider if the first is rate-limited or down

A Laravel AI SDK agent

$response = (new TicketTriage)->prompt(
    $ticket->body,
    provider: [Lab::Anthropic, Lab::OpenAI],
    timeout: 120,
);

$ticket->update(['priority' => $response['priority']]);

What the Laravel AI SDK gives you

Laravel now has a first-party package for this, laravel/ai, which means less custom plumbing and a code style your team already knows. This is what it does, according to the official documentation.

Agents
An agent is a PHP class with its own instructions, created with php artisan make:agent. It can be prompted directly, streamed or queued.
Tools your application controls
php artisan make:tool defines what an agent may do in your system, with a schema for its arguments. Tools can also come from MCP servers.
Human approval
A tool that implements Approvable waits for a person before it runs, and can decide case by case. Deleting a record or sending a refund should work this way.
Structured output
An agent with HasStructuredOutput returns data matching a JSON schema, so your code can read a score or a category rather than parse prose.
Document search
Embeddings, reranking, vector stores and the SimilaritySearch tool let an agent answer from your own documents and data.
Conversations
The package's migrations create agent_conversations and agent_conversation_messages tables, so chat history is stored in your own database.
Streaming and queues
Stream replies over server-sent events, including the Vercel AI SDK protocol, or use queue() with then and catch callbacks for long-running work.
Failover
Pass a list of providers and the SDK moves on when one is rate-limited, overloaded or out of credits. A bad request does not trigger failover, which is what you want.
Images, audio and transcription
The same package covers image generation, text to speech and speech to text, each with its own list of supported providers.
Testing without API calls
Agents can be faked in tests with fixed responses, and assertPrompted checks what was sent, so the suite stays fast and costs nothing to run.

Source: Laravel AI SDK documentation.

Where it tends to earn its keep

These are the kinds of feature we would suggest looking at first. They are examples of what the SDK makes practical, not past client projects.

Sorting incoming work

Read support tickets, enquiries or uploaded documents, return a category and priority as structured data, and let your existing queues and rules take over.

Answering from your own records

A search assistant over manuals, policies or past cases that answers from retrieved documents. Staff can check the source, which matters more than a confident tone.

Pulling fields out of documents

Turn invoices, forms and call transcripts into validated records, with anything uncertain routed to a person.

Assistants that take action

An agent that can look up an order or draft a reply through tools you define, with approval required before anything is changed.

Before you start: your Laravel version

The SDK needs Laravel 12 or 13 on PHP 8.3 or later, so an application on Laravel 10 or 11 has to move first. That upgrade is worth doing anyway, since neither release still receives security fixes.

How we run a Laravel AI project

AI features fail quietly, so the order matters: agree how to measure the result before building anything around it.

  1. Pick one workflow

    We choose a task with a visible cost today, and agree how to judge the result, using a set of real examples from your data.

  2. Prove it on your examples

    A small agent runs against those examples and we compare providers and models. If it does not do well enough, we tell you before you spend more.

  3. Build it into the application

    Tools with least-privilege access, approval on anything that changes data, queues for slow calls, and tests that fake the provider.

  4. Release and watch

    A staged release with failover configured, logging of prompts and outcomes as your data rules allow, and a review of cost and quality with you.

The Laravel work behind it

No AI project is in our published portfolio yet. These show what an AI feature relies on: two and a half years on a billing system where every pound has to reconcile, a multi-tenant platform holding encrypted per-customer API tokens, a Laravel 13 product, and chat bots sharing an API with the website.

Laravel AI questions

Asked by the people who will have to run it afterwards.

Which Laravel version do we need for the Laravel AI SDK?

The laravel/ai package requires Laravel 12 or 13 and PHP 8.3 or later. If you are on an older release, our Laravel upgrade service comes first, from $799 after a free assessment.

Which AI providers can you use?

For text, the SDK supports OpenAI, Anthropic, Gemini, Azure, Bedrock, Groq, xAI, DeepSeek, Mistral, Ollama, OpenRouter, Cohere and any OpenAI-compatible endpoint. Images, audio, embeddings and reranking each have their own shorter lists. We choose per task and can configure a backup.

Does our data leave our servers?

With a hosted provider, whatever is in the prompt goes to that provider, so we decide with you what may be sent and check the provider's terms against your obligations. Ollama is a supported driver for text and embeddings if you need models on your own infrastructure.

Have you built projects with the Laravel AI SDK?

Our published portfolio does not include an AI project yet, so we will not show you one. It does show the Laravel work AI features depend on: long-running financial systems, multi-tenant platforms with encrypted per-customer tokens, and bots that share an API with the main website.

How much does a Laravel AI project cost?

We do not publish a price band, because the cost depends on the workflow and the data. We scope it after a first conversation. If you would rather have a developer on your team, rates start from $20/h, invoiced in USD, GBP, EUR or INR. AI provider usage is a separate running cost, and we estimate it during the proving stage.

Can AI features be added without rebuilding our application?

Yes, if it is on a supported version. Agents are classes added to your existing codebase, and they use your existing models, queues and authorisation.

Latest Laravel guides

All articles

Tell us the workflow you want to change

Describe the task, who does it now and what data it uses. We will tell you whether AI is a good fit, including when it is not.

We reply within one business day (IST).