Evaluate
Evaluate questions
Send any JSON state and one to 512 typed questions. Each question gets an answer with calibrated probabilities under the same id.
- Billing: only a 200 is billed, at the per-input-token price.
- Unknown keys: top-level keys Drex doesn't know are ignored.
Checks run in this order and stop at the first failure:
- API pause (529)
- Key and credit (401, 402)
- Rate limits (429, 529)
- Body validation (422)
- Model evaluation (422 for too many tokens, 529 when the model service does not answer within 55 seconds)
post/v1/systemone
Request
- Base URLhttps://console.nace.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
X-Nace-Legend'array' | 'object'
The shape of a score answer's legend: array or object. Without it, legend is an array, except for a request with an X-TypeSafe-SDK header (any non-empty value) or a User-Agent that starts with typesafe-sdk/ or langchainjs-typesafe/, which gets an object keyed by the level index. This header wins in both directions. Any other value is ignored. Only the shape changes.
Request body
Example request
{
"state": "I was charged twice for my March invoice. Please refund one of the charges.",
"model": "drex-v1.0"
}Response
Every question answered. usage.input_tokens is debited from the account's balance before the response is returned.
Example response
{
"usage": {
"input_tokens": 106,
"output_tokens": 212
},
"evaluation_time_ms": 142.6,
"request_id": "req_bd2dffad68f5f5fa4ce702e9bd516fb4"
}Changes
No recorded changes to this operation across all 1 revision of this API.