Yandex Cloud
Поиск
Связаться с намиПодключиться
  • Документация
  • Блог
  • Все сервисы
  • Статус работы сервисов
    • Популярные
    • Инфраструктура и сеть
    • Платформа данных
    • Контейнеры
    • Инструменты разработчика
    • Бессерверные вычисления
    • Безопасность
    • Мониторинг и управление ресурсами
    • Машинное обучение
    • Бизнес-инструменты
  • Все решения
    • По отраслям
    • По типу задач
    • Экономика платформы
    • Безопасность
    • Техническая поддержка
    • Каталог партнёров
    • Обучение и сертификация
    • Облако для стартапов
    • Облако для крупного бизнеса
    • Центр технологий для общества
    • Облако для интеграторов
    • Поддержка IT-бизнеса
    • Облако для фрилансеров
    • Обучение и сертификация
    • Блог
    • Документация
    • Контент-программа
    • Мероприятия и вебинары
    • Контакты, чаты и сообщества
    • Идеи
    • Истории успеха
    • Тарифы Yandex Cloud
    • Промоакции и free tier
    • Правила тарификации
  • Документация
  • Блог
Проект Яндекса
© 2025 ООО «Яндекс.Облако»
Yandex Foundation Models
    • Обзор
    • Аутентификация в API
        • Overview
          • Overview
          • Classify
          • FewShotClassify
  • Yandex Cloud ML SDK
  • Совместимость с OpenAI
  • Управление доступом
  • Правила тарификации
  • Публичные материалы
  • История изменений

В этой статье:

  • HTTP request
  • Body parameters
  • Response
  • ClassificationLabel
  1. Справочники API
  2. Text Classification API (англ.)
  3. REST
  4. TextClassification
  5. Classify

Foundation Models Text Classification API, REST: TextClassification.Classify

Статья создана
Yandex Cloud
Обновлена 24 апреля 2025 г.
  • HTTP request
  • Body parameters
  • Response
  • ClassificationLabel

RPC method to classify text with tuned model.

The names of the classes between which the model will be distributing requests
must be specified during model tuning and are not provided in the request.

HTTP requestHTTP request

POST https://llm.api.cloud.yandex.net/foundationModels/v1/textClassification

Body parametersBody parameters

{
  "modelUri": "string",
  "text": "string"
}

Request for the service to classify text with tuned model.

The names of the classes between which the model will be distributing requests must be specified during model tuning;
therefore, they are not provided in the request.

For examples of usage, see step-by-step guides.

Field

Description

modelUri

string

The URI of your tuned classifier model.

text

string

Text for classification.

ResponseResponse

HTTP Code: 200 - OK

{
  "predictions": [
    {
      "label": "string",
      "confidence": "string"
    }
  ],
  "modelVersion": "string",
  "inputTokens": "string"
}

Response with classifier predictions.

Field

Description

predictions[]

ClassificationLabel

The classification results with the `confidence`` values
for the probability of classifying the request text into each class.

modelVersion

string

The model version changes with each new releases.

inputTokens

string (int64)

Number of input tokens

ClassificationLabelClassificationLabel

A pair of text labels and their corresponding confidence values.

Field

Description

label

string

A class name label.

confidence

string

The probability of classifying text into a specific class.

Была ли статья полезна?

Предыдущая
Overview
Следующая
FewShotClassify
Проект Яндекса
© 2025 ООО «Яндекс.Облако»