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

# Infer Classification Labels

`POST /v1/generate/classification/infer-labels`

## Request

- Base URL: `https://api.pioneer.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.pioneer.ai/v1/generate/classification/infer-labels`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/pioneer/apis/brain-api/docs/v1/generate/classification/infer-labels/post.ts> (a function with typed inputs; its response is checked against the schema)

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** `0e5e86e2bae5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/pioneer/apis/brain-api/changes/v1/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/0e5e86e2bae5?raw)
