PHPackages                             jumas-cola/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. jumas-cola/php-yandex-gpt

ActiveLibrary[API Development](/categories/api)

jumas-cola/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.0.1(1y ago)08MITPHPPHP &gt;=7.0

Since Nov 2Pushed 1y agoCompare

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

READMEChangelogDependenciesVersions (3)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:

```
