> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stateset.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Infer machine handler

> **Required scope:** models:manage

**Required scope:** `models:manage`

### Request body

`InferRequest`

<ParamField body="inputs" type="string[]" required>
  Input strings to run inference on.
</ParamField>

### Response

`InferResponse`

<ResponseField name="abstained" type="boolean" required />

<ResponseField name="abstention_reason" type="string">
  Machine-readable reason when `abstained` is true.
</ResponseField>

<ResponseField name="confidence" type="number (double)" required />

<ResponseField name="matched_rule" type="string" />

<ResponseField name="model_coverage" type="number (double)" required>
  Fraction of the learned factor schema grounded by this input.
</ResponseField>

<ResponseField name="org_id" type="string" required />

<ResponseField name="output" type="string" />

<ResponseField name="source" type="string" required />

<ResponseField name="symbol_count" type="integer" required />

### Status codes

| Code  | Meaning                                            |
| ----- | -------------------------------------------------- |
| `200` | Inference result                                   |
| `400` | No inputs provided                                 |
| `401` | Unauthorized — missing or invalid credentials      |
| `403` | Forbidden — the key/token lacks the required scope |
| `404` | Machine not provisioned                            |
| `429` | Rate limited — see Retry-After / X-RateLimit-Reset |

<RequestExample>
  ```bash cURL theme={null}
  curl --request POST \
    --url 'https://api.nsr.stateset.com/api/v1/machines/infer' \
    --header 'X-API-Key: YOUR_API_KEY' \
    --header 'Content-Type: application/json' \
    --data '{
    "inputs": [
      "string"
    ]
  }'
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "abstained": true,
    "abstention_reason": "string",
    "confidence": 7.5,
    "matched_rule": "string",
    "model_coverage": 1.5,
    "org_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
    "output": "string",
    "source": "string",
    "symbol_count": 1
  }
  ```
</ResponseExample>
