Search by

amazeeio / laravel-amazee-ai-provider

amazeeiodan2k3k4

amazee.ai provider for the Laravel AI SDK.

Package info

github.com/amazeeio/laravel-amazee-ai-provider

pkg:composer/amazeeio/laravel-amazee-ai-provider

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

dev-main 2026-10-09 13:17 UTC

This package is not auto-updated.

Last update: 2026-10-29 14:00:13 UTC


README

Adds amazee.ai, the private, data-sovereign AI platform from amazee.io, as a provider for laravel/ai. Each amazee.ai region is a LiteLLM endpoint, so you point the provider at your region and use agents, streaming, tools, structured output, embeddings, images and the rest of the SDK as normal.

Installation

composer require amazeeio/laravel-amazee-ai-provider

Get your region endpoint and LLM token from my.amazee.io, then add them to .env:

AMAZEE_ENDPOINT_URL=https://llm.us103.amazee.ai/v1
AMAZEE_LLM_TOKEN=sk-...

That registers an amazeeio provider. Use it directly, or make it the default in config/ai.php:

use function Laravel\Ai\agent;

agent()->prompt('Hello', provider: 'amazeeio');
'default' => 'amazeeio',
'default_for_images' => 'amazeeio',
'default_for_embeddings' => 'amazeeio',

Configuration

To change models or add more regions, define providers with the amazeeio driver in config/ai.php. A provider named amazeeio there replaces the default one.

'providers' => [
    'amazeeio' => [
        'driver' => 'amazeeio',
        'url' => env('AMAZEE_ENDPOINT_URL'),
        'key' => env('AMAZEE_LLM_TOKEN'),
        'models' => [
            'text' => ['default' => 'chat', 'cheapest' => 'chat', 'smartest' => 'claude-4-6-opus'],
            'embeddings' => ['default' => 'embeddings', 'dimensions' => 1024],
            'image' => ['default' => 'text_to_image'],
            // Region specific: pick models from your region's catalog (see below).
            'audio' => ['default' => 'tts-1'],
            'transcription' => ['default' => 'gpt-4o-transcribe'],
        ],
    ],

    'amazeeio-eu' => [
        'driver' => 'amazeeio',
        'url' => env('AMAZEE_EU_ENDPOINT_URL'),
        'key' => env('AMAZEE_EU_LLM_TOKEN'),
    ],
],

Capabilities

Capability Endpoint Default model
Text, tools, streaming, structured output chat/completions chat
Embeddings embeddings embeddings
Image generation images/generations text_to_image
Text to speech audio/speech none, configure models.audio.default
Transcription audio/transcriptions none, configure models.transcription.default

chat, embeddings and text_to_image are the aliases every amazee.ai region defines. Any other model in your region's catalog can be passed by name. Provider-specific options are keyed by amazeeio.

Speech and transcription models differ per region, and some regions have none. List your region's catalog with:

curl "$AMAZEE_ENDPOINT_URL/models" -H "Authorization: Bearer $AMAZEE_LLM_TOKEN"

->square(), ->portrait() and ->landscape() are sent as both size and aspect_ratio, so they also apply when a region's text_to_image model is not an OpenAI one.

Testing

composer test

License

MIT