Skip to content

Providers

Atlas supports all AI providers available through Prism. Configure your preferred provider and use it with any Atlas agent or capability.

Prism Reference

For detailed provider configuration, API keys, and model-specific options, see the Prism Providers documentation.

Available Providers

Atlas has first-party support for these AI providers:

ProviderDocumentation
AnthropicPrism Anthropic
DeepSeekPrism DeepSeek
ElevenLabsPrism ElevenLabs
GeminiPrism Gemini
GroqPrism Groq
MistralPrism Mistral
OllamaPrism Ollama
OpenAIPrism OpenAI
OpenRouterPrism OpenRouter
Voyage AIPrism Voyage AI
xAIPrism xAI

Provider Support

Not all providers support all features. Check the Prism Provider Support Matrix for detailed compatibility.

Model Dependent

Support may be model dependent. Check with your provider for model-specific features and support.

Using Providers

In Agent Definitions

php
use Atlasphp\Atlas\Agents\AgentDefinition;

class MyAgent extends AgentDefinition
{
    public function provider(): ?string
    {
        return 'anthropic';
    }

    public function model(): ?string
    {
        return 'claude-sonnet-4-20250514';
    }
}

Runtime Override

php
use Atlasphp\Atlas\Atlas;

$response = Atlas::agent('my-agent')
    ->withProvider('openai', 'gpt-4o')
    ->chat('Hello');

Direct Prism Usage

php
$response = Atlas::text()
    ->using('anthropic', 'claude-sonnet-4-20250514')
    ->withPrompt('Hello')
    ->asText();

Configuration

Configure provider API keys in your .env file:

env
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...

See Configuration for full configuration options.

Next Steps

Released under the MIT License.