embed-multilingual-v2.0
POST {{baseUrl}}/classify
Request Body
{"model"=>"embed-multilingual-v2.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":"8f5e293c-4fcd-4273-b779-a7222a011796","classifications":[{"classification_type":"single-label","confidence":0.50671875,"confidences":[0.50671875],"id":"c90a9099-df87-402e-a0fd-20ee6a703e29","input":"Confirm your email address","labels":{"Not spam":{"confidence":0.49328122},"Spam":{"confidence":0.50671875}},"prediction":"Spam","predictions":["Spam"]},{"classification_type":"single-label","confidence":0.79408854,"confidences":[0.79408854],"id":"62c51239-0ad2-4550-aacc-54bafd5ed8d8","input":"hey i need u to send some $","labels":{"Not spam":{"confidence":0.20591147},"Spam":{"confidence":0.79408854}},"prediction":"Spam","predictions":["Spam"]}],"meta":{"api_version":{"version":"1"},"billed_units":{"classifications":2}}}