520 "input": "...text to classify goes here..."520 "input": "...text to classify goes here..."
521 }'521 }'
522```522```
523
524#### Response
525
526```json
527{
528 "id": "modr-AB8CjOTu2jiq12hp1AQPfeqFWaORR",
529 "model": "omni-moderation-latest",
530 "results": [
531 {
532 "flagged": true,
533 "categories": {
534 "sexual": false,
535 "hate": false,
536 "harassment": true,
537 "self-harm": false,
538 "sexual/minors": false,
539 "hate/threatening": false,
540 "violence/graphic": false,
541 "self-harm/intent": false,
542 "self-harm/instructions": false,
543 "harassment/threatening": true,
544 "violence": true,
545 "illicit": false,
546 "illicit/violent": false
547 },
548 "category_scores": {
549 "sexual": 1.1726012417057063e-05,
550 "hate": 0.22706663608551025,
551 "harassment": 0.5215635299682617,
552 "self-harm": 2.227119921371923e-06,
553 "sexual/minors": 7.107352217872176e-08,
554 "hate/threatening": 0.023547329008579254,
555 "violence/graphic": 3.391829886822961e-05,
556 "self-harm/intent": 1.646940972932498e-06,
557 "self-harm/instructions": 1.1198755256458526e-09,
558 "harassment/threatening": 0.5694745779037476,
559 "violence": 0.9971134662628174,
560 "illicit": 0.001,
561 "illicit/violent": 0.001
562 },
563 "category_applied_input_types": {
564 "sexual": [
565 "text"
566 ],
567 "hate": [
568 "text"
569 ],
570 "harassment": [
571 "text"
572 ],
573 "self-harm": [
574 "text"
575 ],
576 "sexual/minors": [
577 "text"
578 ],
579 "hate/threatening": [
580 "text"
581 ],
582 "violence/graphic": [
583 "text"
584 ],
585 "self-harm/intent": [
586 "text"
587 ],
588 "self-harm/instructions": [
589 "text"
590 ],
591 "harassment/threatening": [
592 "text"
593 ],
594 "violence": [
595 "text"
596 ],
597 "illicit": [
598 "text"
599 ],
600 "illicit/violent": [
601 "text"
602 ]
603 }
604 }
605 ]
606}
607```