Place the text on a scale
Rates the text on an ordered scale of described levels. `score` is the probability-weighted position, `level` the most likely index.
Send `text` for one result, or `texts` for a batch wrapped as `{ results: [...] }`. The response carries `x-input-chars` (input characters) and `x-input-tokens` (input tokens billed for this call) headers.
Request
This endpoint expects an object.
scale
Level descriptions, low to high.
text
The text to decide about.
texts
Batch form: one result per text.
Response
Result, or { results } for a batch
RateResult
OR
Errors
400
Bad Request Error
502
Bad Gateway Error