PHPackages                             kolasai/public-openapi - 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. kolasai/public-openapi

ActiveLibrary[API Development](/categories/api)

kolasai/public-openapi
======================

This is a Kolas.Ai application's public API based on the OpenAPI 3.1 specification.

1.1.0(10mo ago)121Apache-2.0

Since Sep 1Pushed 10mo ago2 watchersCompare

[ Source](https://github.com/kolasai/public-openapi)[ Packagist](https://packagist.org/packages/kolasai/public-openapi)[ Docs](https://kolas.ai)[ RSS](/packages/kolasai-public-openapi/feed)WikiDiscussions master Synced today

READMEChangelog (7)DependenciesVersions (8)Used By (0)

Kolas.Ai Public API - OpenAPI Specification
===========================================

[](#kolasai-public-api---openapi-specification)

Welcome to the **Kolas.Ai Public API** documentation! This repository hosts the OpenAPI 3.1 specification for Kolas.Ai's public API, making it easy for developers to integrate Kolas.Ai’s machine learning services into their applications.

Overview
--------

[](#overview)

The Kolas.Ai API is designed to classify message categories based on a trained dataset within a configured project. Use this API to accurately categorize messages into types like "Neutral", "Insult", "Spam" , etc. We support different languages, including English, Russian, Ukrainian, and we can add any languages by request (message to ). The API is built on the OpenAPI 3.1 standard, ensuring a consistent and easy-to-use interface.

### Key Features

[](#key-features)

- **Predict Message Categories**: Use the `/predictions/predict` endpoint to classify messages based on your project-specific dataset.
- **High Accuracy**: Predictions include probability scores, giving you confidence in the classification results.
- **OAuth2 Authentication**: Secure access via OAuth2 client credentials flow.

Usage
-----

[](#usage)

The Kolas.Ai API follows the OpenAPI 3.1 standard, which enables easy exploration and integration with various tools. To get started:

1. Create a new account on the [Kolas.Ai platform](https://app.kolas.ai/register).
2. Create a new project [Clean Talk](https://app.kolas.ai/projects/create) and configure your datasets.
3. **Authentication**: Obtain an access token using OAuth2 client credentials.
4. **Make Predictions**: Send a POST request to `/predictions/predict` with your `projectId` and messages.
5. **Receive Predictions**: Retrieve predicted categories and their probabilities in the API response.

Authentication
--------------

[](#authentication)

This API uses **OAuth2 client credentials** for secure access. You’ll need to request a token using your client credentials from the Kolas.Ai platform.

### Example Request

[](#example-request)

Once you have your access token, you can make a request like this:

```
{
  "projectId": 3457,
  "messages": [
    { "message": "How was your day?" }
  ]
}
```

### Example Response

[](#example-response)

The response includes predictions and associated probabilities:

```
{
  "predictions": [
    {
      "categories": ["Neutral", "Insult", "Spam"],
      "prediction": "Neutral",
      "probability": "0.998",
      "message": "How was your day?"
    }
  ]
}
```

Documentation Links
-------------------

[](#documentation-links)

- [Swagger Documentation](https://swagger.io/): Explore the OpenAPI specification.
- [Kolas.Ai Platform Documentation](https://kolas.ai/documentation): Learn more about configuring projects and using Kolas.Ai’s platform.

License
-------

[](#license)

This API specification is released under the **Apache 2.0 License**. See the [LICENSE](https://www.apache.org/licenses/LICENSE-2.0.html) for more details.

\_\_

Feel free to explore, test, and integrate Kolas.Ai's API, and reach out with any questions!

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance53

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~58 days

Recently: every ~84 days

Total

7

Last Release

323d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/180081888?v=4)[Kolas.Ai](/maintainers/kolasai)[@kolasai](https://github.com/kolasai)

---

Top Contributors

[![kolasai](https://avatars.githubusercontent.com/u/180081888?v=4)](https://github.com/kolasai "kolasai (6 commits)")

---

Tags

ailibraryartificial intelligencekolasai

### Embed Badge

![Health badge](/badges/kolasai-public-openapi/health.svg)

```
[![Health](https://phpackages.com/badges/kolasai-public-openapi/health.svg)](https://phpackages.com/packages/kolasai-public-openapi)
```

###  Alternatives

[chriskonnertz/deeply

DeepLy is a PHP client for the DeepL.com translation API

229126.4k12](/packages/chriskonnertz-deeply)[softcreatr/php-mistral-ai-sdk

A powerful and easy-to-use PHP SDK for the Mistral AI API, allowing seamless integration of advanced AI-powered features into your PHP projects.

1621.5k](/packages/softcreatr-php-mistral-ai-sdk)[softcreatr/php-perplexity-ai-sdk

A powerful and easy-to-use PHP SDK for the pplx (Perplexity) API, allowing seamless integration of advanced AI-powered features into your PHP projects..

1411.0k](/packages/softcreatr-php-perplexity-ai-sdk)

PHPackages © 2026

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