PHPackages                             aisdk/sakana - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. aisdk/sakana

ActiveLibrary

aisdk/sakana
============

Official Sakana provider for the PHP AI SDK.

v0.8.1(yesterday)01↑2900%MITPHP ^8.3

Since Jul 22Compare

[ Source](https://github.com/phpaisdk/sakana)[ Packagist](https://packagist.org/packages/aisdk/sakana)[ Docs](https://github.com/phpaisdk/sakana)[ Fund](https://opencollective.com/phpaisdk)[ RSS](/packages/aisdk-sakana/feed)WikiDiscussions Synced today

READMEChangelog (2)Dependencies (7)Versions (3)Used By (0)

aisdk/sakana
============

[](#aisdksakana)

[![GitHub Workflow Status](https://camo.githubusercontent.com/8f0a46f3df42d66896256a2a9f9a481f8a28e0803a60715e23cf369c8428f49a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f706870616973646b2f73616b616e612f74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d5465737473)](https://github.com/phpaisdk/sakana/actions)[![Latest Version](https://camo.githubusercontent.com/63f51b2584349f4a8673a57e675f8ee4ac9cac10842f29d1292546ceb2660f49/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616973646b2f73616b616e61)](https://packagist.org/packages/aisdk/sakana)[![License](https://camo.githubusercontent.com/ddc859c09e73fd6d38b5d219d703c38d1cc0518597bc7a0a99bdf49ad705c506/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f616973646b2f73616b616e61)](https://packagist.org/packages/aisdk/sakana)

---

Official Sakana AI provider for the PHP AI SDK. Uses Sakana Fugu's OpenAI-compatible API.

Installation
------------

[](#installation)

```
composer require aisdk/sakana
```

Basic Usage
-----------

[](#basic-usage)

```
use AiSdk\Generate;
use AiSdk\Sakana;

Sakana::create(['apiKey' => $_ENV['SAKANA_API_KEY']]);

$result = Generate::text('Explain this code briefly.')
    ->model(Sakana::model('fugu'))
    ->run();
```

Configuration
-------------

[](#configuration)

VariableDescriptionDefault`SAKANA_API_KEY`API key for authenticationRequired`SAKANA_BASE_URL`Base URL for API requests`https://api.sakana.ai/v1`Supported Capabilities
----------------------

[](#supported-capabilities)

CapabilitySupportText generation and streamingNative OpenAI-compatible chatTool calling, structured output, reasoningPassed through for supported Fugu modelsImage inputPassed through for compatible vision modelsProvider Options
----------------

[](#provider-options)

Use `providerOptions('sakana', ['raw' => [...]])` for documented Sakana fields outside the portable SDK surface. Model IDs are opaque strings and are validated by Sakana AI.

Documentation
-------------

[](#documentation)

- [Sakana API documentation](https://console.sakana.ai/get-started)
- [PHP AI SDK documentation](https://phpaisdk.com/docs/sakana)

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance100

Actively maintained with recent releases

Popularity2

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

1d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ef29d1962da41e7526023f215cf844494e209b2fd163742084cb919a3b508021?d=identicon)[aisdk](/maintainers/aisdk)

---

Tags

aiglmopenai-compatibleaisdksakana

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

![Health badge](/badges/aisdk-sakana/health.svg)

```
[![Health](https://phpackages.com/badges/aisdk-sakana/health.svg)](https://phpackages.com/packages/aisdk-sakana)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
