curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/nsr/infer' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"inputs": [
{
"type": "text",
"value": "walk twice"
}
],
"session_id": null
}'
{
"confidence": 0.95,
"output": {
"type": "list",
"value": [
{
"type": "string",
"value": "WALK"
},
{
"type": "string",
"value": "WALK"
}
]
},
"processing_time_ms": 12,
"symbol_distributions": null,
"symbols": [
1,
3,
1
]
}
Perform inference using the NSR Machine
Processes input sequences through the neural-symbolic reasoning pipeline, combining perception, parsing, and semantic computation to produce outputs…
POST
/
api
/
v1
/
nsr
/
infer
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/nsr/infer' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"inputs": [
{
"type": "text",
"value": "walk twice"
}
],
"session_id": null
}'
{
"confidence": 0.95,
"output": {
"type": "list",
"value": [
{
"type": "string",
"value": "WALK"
},
{
"type": "string",
"value": "WALK"
}
]
},
"processing_time_ms": 12,
"symbol_distributions": null,
"symbols": [
1,
3,
1
]
}
Processes input sequences through the neural-symbolic reasoning pipeline,
combining perception, parsing, and semantic computation to produce outputs.
Input Types
Perform inference with the NSR Machine.
Required scope:
text: Natural language or symbolic commands (e.g., ‘walk twice’)number: Numeric values for mathematical operationsembedding: Pre-computed vector embeddingsimage: Raw pixel data for visual inputscomposite: Numeric grounded symbol vectors such as emulator UI-node fields Example
curl -X POST 'https://api.nsr.stateset.com/api/v1/nsr/infer' \
-H 'X-API-Key: your-api-key' \
-H 'Content-Type: application/json' \
-d '{'inputs': [{'type': 'text', 'value': 'walk twice'}]}'
write
Request body
NSRInferRequest
Response
NSRInferResponse
Status codes
| Code | Meaning |
|---|---|
200 | Inference successful |
400 | Invalid request - empty inputs or validation failed |
401 | Unauthorized — missing or invalid credentials |
403 | Forbidden — the key/token lacks the required scope |
429 | Rate limited — see Retry-After / X-RateLimit-Reset |
500 | Internal server error - inference engine failure |
504 | Reasoning budget exhausted before completion |
curl --request POST \
--url 'https://api.nsr.stateset.com/api/v1/nsr/infer' \
--header "X-API-Key: $STATESET_NSR_API_KEY" \
--header 'Content-Type: application/json' \
--data '{
"inputs": [
{
"type": "text",
"value": "walk twice"
}
],
"session_id": null
}'
{
"confidence": 0.95,
"output": {
"type": "list",
"value": [
{
"type": "string",
"value": "WALK"
},
{
"type": "string",
"value": "WALK"
}
]
},
"processing_time_ms": 12,
"symbol_distributions": null,
"symbols": [
1,
3,
1
]
}
Last modified on August 31, 2026