Is a statement true of the text?

Answers one or more statements with a yes/no and the probability. Add `when_true` / `when_false` to sharpen the boundary. 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.
textstringOptional1-20000 characters
The text to decide about.
textslist of stringsOptional

Batch form: one result per text.

statementstringOptional>=1 character
statementslist of stringsOptional
when_truestringOptional
What makes the statement true. Improves accuracy.
when_falsestringOptional

Response

Result, or { results } for a batch

object
OR
object

Errors

400
Bad Request Error
502
Bad Gateway Error