Search by

aisdk / cohere

aisdk

Official Cohere provider for the PHP AI SDK.

Package info

github.com/phpaisdk/cohere

pkg:composer/aisdk/cohere

Fund package maintenance!

Open Collective

Statistics

Installs: 11

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:52:12 UTC


README

Text generation, streaming, tools, structured output, and embeddings with Cohere. Part of the framework-agnostic PHP AI SDK.

Installation

composer require aisdk/cohere

Set COHERE_API_KEY in your environment.

Usage

use AiSdk\Cohere;
use AiSdk\Generate;

$result = Generate::text('Explain closures in PHP in one sentence.')
    ->model(Cohere::model('command-a-plus-05-2026'))
    ->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.