---
title: "Infer Advanced Options"
method: POST
path: "/v1/generate/infer-advanced"
tags: ["generate"]
---

# Infer Advanced Options

`POST /v1/generate/infer-advanced`

## 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/infer-advanced`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/pioneer/apis/brain-api/docs/v1/generate/infer-advanced/post.ts> (a function with typed inputs; its response is checked against the schema)

Infer constraints and multiplicator from a generation prompt.

## Request body

- InferAdvancedRequest: Request to infer constraints and multiplicator from a prompt.
  - `prompt` string, required: The user's dataset generation prompt
  - `data_type` string, nullable: The dataset type (classification, entity_extraction, json_extraction)
  - `labels` string[], nullable: The labels / entity types / classes for the dataset

## Response `200`

Successful Response

- InferAdvancedResponse: Response containing inferred constraints and multiplicator.
  - `success` boolean, required
  - `constraints` InferredConstraint[]: Suggested constraints for the generation
    - `description` string, required: Human-readable constraint description
    - `choices` string[], nullable: Optional choice list
    - `probability` number, nullable: Optional probability
  - `multiplicator` InferredMultiplicator: An inferred multiplicator dimension.
    - `prompt` string, required: The dimension prompt, e.g. 'The sentiment should be'
    - `choices` string[], required: Choices to balance across

## 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/infer-advanced/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)
