> Source: https://laravilt.com/docs/ai/providers/introduction

# AI Providers

Multi-provider support for AI integrations.

## Supported Providers

| Provider | Models |
|----------|--------|
| [OpenAI](https://github.com/laravilt/laravilt/blob/HEAD/docs/ai/providers/openai) | GPT-4o, GPT-4, GPT-3.5 |
| [Anthropic](https://github.com/laravilt/laravilt/blob/HEAD/docs/ai/providers/anthropic) | Claude Sonnet 4, Opus 4, 3.5 |
| [Gemini](https://github.com/laravilt/laravilt/blob/HEAD/docs/ai/providers/gemini) | Gemini 2.0, 1.5 Pro/Flash |
| [DeepSeek](https://github.com/laravilt/laravilt/blob/HEAD/docs/ai/providers/deepseek) | Chat, Coder, Reasoner |
| [Perplexity](https://github.com/laravilt/laravilt/blob/HEAD/docs/ai/providers/perplexity) | Sonar, Sonar Pro |

## Configuration

```php
<?php

// config/laravilt-ai.php
return [
    'default_provider' => env('AI_DEFAULT_PROVIDER', 'openai'),

    'providers' => [
        'openai' => [
            'api_key' => env('OPENAI_API_KEY'),
            'model' => env('OPENAI_MODEL', 'gpt-4o-mini'),
            'temperature' => 0.7,
            'max_tokens' => 4096,
        ],
        'anthropic' => [
            'api_key' => env('ANTHROPIC_API_KEY'),
            'model' => env('ANTHROPIC_MODEL', 'claude-sonnet-4-20250514'),
        ],
    ],
];
```

## Using Providers

```php
<?php

use Laravilt\AI\AIManager;

$ai = app(AIManager::class);

// Use specific provider
$response = $ai->provider('anthropic')->chat($messages);

// Check if configured
if ($ai->isConfigured()) {
    // AI is ready
}
```
