PHPackages                             aisdk/fireworks - 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/fireworks

ActiveLibrary

aisdk/fireworks
===============

Official Fireworks provider for the PHP AI SDK.

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

Since Jul 22Compare

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

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

aisdk/fireworks
===============

[](#aisdkfireworks)

[![GitHub Workflow Status](https://camo.githubusercontent.com/651d6baed2711e6c0a7067a04a780941a8cad3596ad84346ececa1bdc2e18a76/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f706870616973646b2f66697265776f726b732f74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d5465737473)](https://github.com/phpaisdk/fireworks/actions)[![Latest Version](https://camo.githubusercontent.com/830d806f283d27164d7449bcf1072c35ddd353b07be90c6a9e180bb3edefe2d7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f616973646b2f66697265776f726b73)](https://packagist.org/packages/aisdk/fireworks)[![License](https://camo.githubusercontent.com/947389c909bdaaf3204baec1c7f32e58cffc17e4a4dd08434c4afd7583395cec/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f616973646b2f66697265776f726b73)](https://packagist.org/packages/aisdk/fireworks)

---

Official Fireworks AI provider for the PHP AI SDK. Uses Fireworks' OpenAI-compatible Inference API.

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

[](#installation)

```
composer require aisdk/fireworks
```

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

[](#basic-usage)

```
use AiSdk\Fireworks;
use AiSdk\Generate;

Fireworks::create(['apiKey' => $_ENV['FIREWORKS_API_KEY']]);

$result = Generate::text('Explain this code briefly.')
    ->model(Fireworks::model('gpt-oss-120b'))
    ->run();
```

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

[](#configuration)

VariableDescriptionDefault`FIREWORKS_API_KEY`API key for authenticationRequired`FIREWORKS_BASE_URL`Base URL for API requests`https://api.fireworks.ai/inference/v1`Supported Capabilities
----------------------

[](#supported-capabilities)

CapabilitySupportText generation and streamingNative OpenAI-compatible chatEmbeddingsNativeTool calling, structured output, reasoning, image inputPassed through for supported modelsUse `providerOptions('fireworks', ['raw' => [...]])` for documented Fireworks fields outside the portable SDK surface. Model IDs are opaque strings and are validated by Fireworks.

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

[](#documentation)

- [Fireworks OpenAI compatibility documentation](https://docs.fireworks.ai/tools-sdks/openai-compatibility)
- [PHP AI SDK documentation](https://phpaisdk.com/docs/fireworks)

###  Health Score

38

—

LowBetter than 83% of packages

Maintenance100

Actively maintained with recent releases

Popularity4

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

aifireworksglmopenai-compatibleaisdk

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

Type Coverage Yes

### Embed Badge

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

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

PHPackages © 2026

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