PHPackages                             teariot/php-yandex-gpt - 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. [API Development](/categories/api)
4. /
5. teariot/php-yandex-gpt

ActiveLibrary[API Development](/categories/api)

teariot/php-yandex-gpt
======================

A PHP library for seamless interaction with Yandex GPT (Generative Pre-trained Transformer) API, providing text generation, tokenization, and embedding functionalities.

1.1.2(10mo ago)43.0k↑25%3MITPHPPHP &gt;=7.0

Since Jan 9Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/TeaRiot/php-yandex-gpt)[ Packagist](https://packagist.org/packages/teariot/php-yandex-gpt)[ Docs](https://github.com/TeaRiot/php-yandex-gpt)[ RSS](/packages/teariot-php-yandex-gpt/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)DependenciesVersions (5)Used By (0)

PHP Yandex GPT Library
======================

[](#php-yandex-gpt-library)

This PHP library provides a convenient interface to interact with Yandex GPT (Generative Pre-trained Transformer) API for text generation, tokenization, and obtaining embeddings.

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

[](#installation)

To install the library via Composer, use the following command:

```
composer require teariot/php-yandex-gpt
```

Usage
-----

[](#usage)

Ensure you have obtained the necessary OAuth token and folder ID from Yandex GPT.

### Text Completion

[](#text-completion)

To generate text completions, use the `complete` method:

```
