---
title: "Infer Classification Labels"
method: POST
path: "/generate/classification/infer-labels"
tags: ["generate"]
---

# Infer Classification Labels

`POST /generate/classification/infer-labels`

Infer classification labels from a domain description.

## Request body

- InferClassificationLabelsRequest — Classification label inference request
  - `user_id` string, nullable — User ID (optional, uses authenticated user if not provided)
  - `domain_description` string, required — Domain description for inferring classification labels

## Response `200`

Successful Response

- InferLabelsResponse — Label inference response
  - `success` boolean, required
  - `labels` string[], required
  - `count` integer, required

## Other responses

- `422` — Validation Error

## Changes

- **2026-09-24** `1cffaad2a921` — 1 warning, 1 info
  - removed the optional property `detail` from the response with the `422` status
  - added the required property `error` to the response with the `422` status

[Change history](https://skmtc.dev/pioneer/apis/brain-api/changes/generate/classification/infer-labels/post.md)

---

[API](https://skmtc.dev/pioneer/apis/brain-api.md) · [All operations](https://skmtc.dev/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc.dev/pioneer/apis/brain-api/revisions/1cffaad2a921?raw)
