Search by

aisdk / groq

aisdk

Official Groq provider for the PHP AI SDK.

Package info

github.com/phpaisdk/groq

pkg:composer/aisdk/groq

Fund package maintenance!

Open Collective

Statistics

Installs: 25

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 1

v0.11.0 2026-10-31 02:58 UTC

This package is auto-updated.

Last update: 2026-11-03 18:55:10 UTC


README

Text generation, streaming, tools, speech generation, transcription, and embeddings through Groq. Part of the framework-agnostic PHP AI SDK.

Installation

composer require aisdk/groq

Set GROQ_API_KEY in your environment.

Usage

use AiSdk\Generate;
use AiSdk\Groq;

$result = Generate::text('Explain closures in PHP in one sentence.')
    ->model(Groq::model('openai/gpt-oss-120b'))
    ->run();

echo $result->text;

Documentation

Read the documentation for configuration, supported features, and more examples.

Contributing ยท Support

License

The MIT License (MIT). See LICENSE for details.