# laravel/ai

The Laravel AI SDK provides a unified, expressive API for interacting with AI providers such as OpenAI, Anthropic, Gemini, and more.

Repository: https://github.com/laravel/ai
Canonical: https://ross.abutalabs.com/products/laravel-ai
Language: PHP
License: MIT
License Family: permissive
Last push: 2026-09-02T15:49:29+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 100, release rhythm 100, longevity 18
- inputs: {"age_days": 259, "days_push": 0, "days_rel": 0, "gap_med": 3.5, "n_releases_24m": 47}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1139, forks 330 (observed 2026-09-03T02:15:14.296688+00:00)

## What it is
The Laravel AI SDK is a PHP package offering a unified, expressive API for interacting with AI providers such as OpenAI, Anthropic, and Gemini. It supports building agents with tools and structured output, image generation, audio synthesis and transcription, and vector embeddings.

## Use cases
- call openai or anthropic from a laravel app
- build ai agents with tool calling in php
- generate structured  output from llms
- generate images with a unified api
- transcribe audio to text in laravel
- create vector embeddings for semantic search
- swap ai providers without rewriting code

## When to choose
- you are building a Laravel or PHP application that needs AI features
- you want a single consistent API across multiple AI providers
- you need agents, structured output, embeddings, or audio features in PHP

## When to avoid
- your project is not PHP/Laravel based
- you need direct access to provider-specific APIs not covered by the SDK
- you need a language-agnostic or client-side AI integration

## Facets
- artifact type: library
- maturity: active
- function: llm-inference, agent-framework, rag, sdk, speech-recognition, tts, image-processing
- domain: large-language-models, artificial-intelligence, web-development, backend
- platform: php
- tags: laravel, ai-sdk, openai, anthropic, gemini, embeddings, structured-output, ai-agents, web-server

## Member repositories
- laravel/ai (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-09-03T02:15:14.296688+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:39:32.258664+00:00, confidence not recorded.
  - readme: https://github.com/laravel/ai (fetched 2026-09-03T02:15:14.296688+00:00, sha f1930718dfe0)
- Data as of 2026-08-30T08:39:29.467469+00:00.
