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

# Infer Advanced Options

`POST /generate/infer-advanced`

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

---

[API](https://skmtc.net/pioneer/apis/brain-api.md) · [All operations](https://skmtc.net/pioneer/apis/brain-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pioneer/brain-api/revisions/31dfe831e079/schema)
