Pick one label
Picks the best label for the text and returns the full distribution. Describe labels for better accuracy.
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.
labels
Label names, or name -> description. Descriptions improve accuracy.
text
The text to decide about.
texts
Batch form: one result per text.
Response
Result, or { results } for a batch
ClassifyResult
OR
Errors
400
Bad Request Error
502
Bad Gateway Error