Body
Array of data samples to classify. Each sample contains:
type
: Either “text” or “image”value
: The content to classify (text string or image URL)
All items in the dataset must be of the same type. You cannot mix text and image samples in a single request.
Array of classification labels. Each label contains:
key
: Optional identifier for the labeltype
: Either “text” or “image”value
: The label content (text string or image URL)
Whether to allow multiple labels per classification result. When false, each prediction returns a single label. When true, each prediction can return multiple labels.
Header
Your JigsawStack API key
Response
Indicates whether the call was successful.
Usage information for the API call.
Array of classification results. Each element corresponds to a dataset sample:
- If
multiple_labels
is false: Each element is a string (single label) - If
multiple_labels
is true: Each element is an array of strings (multiple labels)