Classify (embed-english-v3.0)

POST {{baseUrl}}/classify

Request Body

{"model"=>"embed-english-v3.0", "inputs"=>["Confirm your email address", "hey i need u to send some $"], "examples"=>[{"text"=>"Dermatologists don't like her!", "label"=>"Spam"}, {"text"=>"'Hello, open to this?'", "label"=>"Spam"}, {"text"=>"I need help please wire me $1000 right now", "label"=>"Spam"}, {"text"=>"Nice to know you ;)", "label"=>"Spam"}, {"text"=>"Please help me?", "label"=>"Spam"}, {"text"=>"Your parcel will be delivered today", "label"=>"Not spam"}, {"text"=>"Review changes to our Terms and Conditions", "label"=>"Not spam"}, {"text"=>"Weekly sync notes", "label"=>"Not spam"}, {"text"=>"'Re: Follow up from today's meeting'", "label"=>"Not spam"}, {"text"=>"Pre-read for tomorrow", "label"=>"Not spam"}]}

RESPONSES

status: OK

{"id":"864313ec-4206-4a0a-ba83-ca8c22933e1e","classifications":[{"classification_type":"single-label","confidence":0.5128973,"confidences":[0.5128973],"id":"af3645c0-02ef-470f-a250-e0a559d4b5cd","input":"confirm your email address","labels":{"Not spam":{"confidence":0.5128973},"Spam":{"confidence":0.48710272}},"prediction":"Not spam","predictions":["Not spam"]},{"classification_type":"single-label","confidence":0.59697217,"confidences":[0.59697217],"id":"64f74096-6780-4ac7-906e-45c3a8f47dd6","input":"hey i need u to send some $","labels":{"Not spam":{"confidence":0.40302783},"Spam":{"confidence":0.59697217}},"prediction":"Spam","predictions":["Spam"]}],"meta":{"api_version":{"version":"1"},"billed_units":{"classifications":2}}}