> ## 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`

**inputs** `string[]` *required*

Input strings to run inference on.

### Response

`InferResponse`

**abstained** `boolean` *required*

**abstention\_reason** `string`

Machine-readable reason when `abstained` is true.

**confidence** `number (double)` *required*

**matched\_rule** `string`

**model\_coverage** `number (double)` *required*

Fraction of the learned factor schema grounded by this input.

**org\_id** `string` *required*

**output** `string`

**source** `string` *required*

**symbol\_count** `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 |

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

```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
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.