laravel/ai

The official AI SDK for Laravel.
4,354,404 1,058
Install
composer require laravel/ai
Latest Version:v0.10.1
PHP:^8.3
License:MIT
Last Updated:Jul 25, 2026
Links: GitHub  ·  Packagist
Maintainer: taylorotwell

Introduction

The Laravel AI SDK provides a unified, expressive API for interacting with AI providers such as OpenAI, Anthropic, Gemini, and more. With the AI SDK, you can build intelligent agents with tools and structured output, generate images, synthesize and transcribe audio, create vector embeddings, and much more — all using a consistent, Laravel-friendly interface.

Documentation

Documentation for the Laravel AI SDK can be found on the Laravel website.

Contributing

Thank you for considering contributing to Laravel! The contribution guide can be found in the Laravel documentation.

Code of Conduct

In order to ensure that the Laravel community is welcoming to all, please review and abide by the Code of Conduct.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

License

The Laravel AI SDK is open-sourced software licensed under the MIT license.

Related Packages

mozex/anthropic-laravel

Anthropic PHP for Laravel is a supercharged PHP API client that allows you to in...

357,949 74
moe-mizrak/laravel-openrouter

Laravel package for OpenRouter (A unified interface for LLMs)

195,503 156
vulcan/rivescript-laravel

Laravel wrapper for the RiveScript PHP library. RiveScript is a scripting langua...

12 2