--- url: "https://developers.openai.com/api/docs/api-reference/moderations" titulek: "Moderations | OpenAI API Reference" h1: "Moderations" popis: "" jazyk: "en" kanonicka: "https://developers.openai.com/api/reference/resources/moderations/" drobecky: [] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 10:42:35" znaku: 10663 slov: 1285 kodovani: "utf-8" sha256: "d4659783bc4aaa9b6a10ef6adbebc9c9fcde101895ed273286f2b27b70ca02e5" --- ##### ModelsExpand Collapse Moderation object { categories, category_applied_input_types, category_scores, flagged } categories: object { harassment, "harassment/threatening", hate, 10 more } A list of the categories, and whether they are flagged or not.harassment: booleanContent that expresses, incites, or promotes harassing language towards any target."harassment/threatening": booleanHarassment content that also includes violence or serious harm towards any target.hate: booleanContent that expresses, incites, or promotes hate based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste. Hateful content aimed at non-protected groups (e.g., chess players) is harassment."hate/threatening": booleanHateful content that also includes violence or serious harm towards the targeted group based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste.illicit: boolean or nullContent that includes instructions or advice that facilitate the planning or execution of wrongdoing, or that gives advice or instruction on how to commit illicit acts. For example, “how to shoplift” would fit this category."illicit/violent": boolean or nullContent that includes instructions or advice that facilitate the planning or execution of wrongdoing that also includes violence, or that gives advice or instruction on the procurement of any weapon."self-harm": booleanContent that promotes, encourages, or depicts acts of self-harm, such as suicide, cutting, and eating disorders."self-harm/instructions": booleanContent that encourages performing acts of self-harm, such as suicide, cutting, and eating disorders, or that gives instructions or advice on how to commit such acts."self-harm/intent": booleanContent where the speaker expresses that they are engaging or intend to engage in acts of self-harm, such as suicide, cutting, and eating disorders.sexual: booleanContent meant to arouse sexual excitement, such as the description of sexual activity, or that promotes sexual services (excluding sex education and wellness)."sexual/minors": booleanSexual content that includes an individual who is under 18 years old.violence: booleanContent that depicts death, violence, or physical injury."violence/graphic": booleanContent that depicts death, violence, or physical injury in graphic detail.category_applied_input_types: object { harassment, "harassment/threatening", hate, 10 more } A list of the categories along with the input type(s) that the score applies to.harassment: array of "text"The applied input type(s) for the category ‘harassment’."harassment/threatening": array of "text"The applied input type(s) for the category ‘harassment/threatening’.hate: array of "text"The applied input type(s) for the category ‘hate’."hate/threatening": array of "text"The applied input type(s) for the category ‘hate/threatening’.illicit: array of "text"The applied input type(s) for the category ‘illicit’."illicit/violent": array of "text"The applied input type(s) for the category ‘illicit/violent’."self-harm": array of "text" or "image"The applied input type(s) for the category ‘self-harm’.One of the following:"text""image""self-harm/instructions": array of "text" or "image"The applied input type(s) for the category ‘self-harm/instructions’.One of the following:"text""image""self-harm/intent": array of "text" or "image"The applied input type(s) for the category ‘self-harm/intent’.One of the following:"text""image"sexual: array of "text" or "image"The applied input type(s) for the category ‘sexual’.One of the following:"text""image""sexual/minors": array of "text"The applied input type(s) for the category ‘sexual/minors’.violence: array of "text" or "image"The applied input type(s) for the category ‘violence’.One of the following:"text""image""violence/graphic": array of "text" or "image"The applied input type(s) for the category ‘violence/graphic’.One of the following:"text""image"category_scores: object { harassment, "harassment/threatening", hate, 10 more } A list of the categories along with their scores as predicted by model.harassment: numberThe score for the category ‘harassment’."harassment/threatening": numberThe score for the category ‘harassment/threatening’.hate: numberThe score for the category ‘hate’."hate/threatening": numberThe score for the category ‘hate/threatening’.illicit: numberThe score for the category ‘illicit’."illicit/violent": numberThe score for the category ‘illicit/violent’."self-harm": numberThe score for the category ‘self-harm’."self-harm/instructions": numberThe score for the category ‘self-harm/instructions’."self-harm/intent": numberThe score for the category ‘self-harm/intent’.sexual: numberThe score for the category ‘sexual’."sexual/minors": numberThe score for the category ‘sexual/minors’.violence: numberThe score for the category ‘violence’."violence/graphic": numberThe score for the category ‘violence/graphic’.flagged: booleanWhether any of the below categories are flagged. ModerationCreateResponse object { id, model, results } Represents if a given text input is potentially harmful.id: stringThe unique identifier for the moderation request.model: stringThe model used to generate the moderation results.results: array of [Moderation](/api/reference/resources/moderations#(resource)%20moderations%20%3E%20(model)%20moderation%20%3E%20(schema)) { categories, category_applied_input_types, category_scores, flagged } A list of moderation objects.categories: object { harassment, "harassment/threatening", hate, 10 more } A list of the categories, and whether they are flagged or not.harassment: booleanContent that expresses, incites, or promotes harassing language towards any target."harassment/threatening": booleanHarassment content that also includes violence or serious harm towards any target.hate: booleanContent that expresses, incites, or promotes hate based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste. Hateful content aimed at non-protected groups (e.g., chess players) is harassment."hate/threatening": booleanHateful content that also includes violence or serious harm towards the targeted group based on race, gender, ethnicity, religion, nationality, sexual orientation, disability status, or caste.illicit: boolean or nullContent that includes instructions or advice that facilitate the planning or execution of wrongdoing, or that gives advice or instruction on how to commit illicit acts. For example, “how to shoplift” would fit this category."illicit/violent": boolean or nullContent that includes instructions or advice that facilitate the planning or execution of wrongdoing that also includes violence, or that gives advice or instruction on the procurement of any weapon."self-harm": booleanContent that promotes, encourages, or depicts acts of self-harm, such as suicide, cutting, and eating disorders."self-harm/instructions": booleanContent that encourages performing acts of self-harm, such as suicide, cutting, and eating disorders, or that gives instructions or advice on how to commit such acts."self-harm/intent": booleanContent where the speaker expresses that they are engaging or intend to engage in acts of self-harm, such as suicide, cutting, and eating disorders.sexual: booleanContent meant to arouse sexual excitement, such as the description of sexual activity, or that promotes sexual services (excluding sex education and wellness)."sexual/minors": booleanSexual content that includes an individual who is under 18 years old.violence: booleanContent that depicts death, violence, or physical injury."violence/graphic": booleanContent that depicts death, violence, or physical injury in graphic detail.category_applied_input_types: object { harassment, "harassment/threatening", hate, 10 more } A list of the categories along with the input type(s) that the score applies to.harassment: array of "text"The applied input type(s) for the category ‘harassment’."harassment/threatening": array of "text"The applied input type(s) for the category ‘harassment/threatening’.hate: array of "text"The applied input type(s) for the category ‘hate’."hate/threatening": array of "text"The applied input type(s) for the category ‘hate/threatening’.illicit: array of "text"The applied input type(s) for the category ‘illicit’."illicit/violent": array of "text"The applied input type(s) for the category ‘illicit/violent’."self-harm": array of "text" or "image"The applied input type(s) for the category ‘self-harm’.One of the following:"text""image""self-harm/instructions": array of "text" or "image"The applied input type(s) for the category ‘self-harm/instructions’.One of the following:"text""image""self-harm/intent": array of "text" or "image"The applied input type(s) for the category ‘self-harm/intent’.One of the following:"text""image"sexual: array of "text" or "image"The applied input type(s) for the category ‘sexual’.One of the following:"text""image""sexual/minors": array of "text"The applied input type(s) for the category ‘sexual/minors’.violence: array of "text" or "image"The applied input type(s) for the category ‘violence’.One of the following:"text""image""violence/graphic": array of "text" or "image"The applied input type(s) for the category ‘violence/graphic’.One of the following:"text""image"category_scores: object { harassment, "harassment/threatening", hate, 10 more } A list of the categories along with their scores as predicted by model.harassment: numberThe score for the category ‘harassment’."harassment/threatening": numberThe score for the category ‘harassment/threatening’.hate: numberThe score for the category ‘hate’."hate/threatening": numberThe score for the category ‘hate/threatening’.illicit: numberThe score for the category ‘illicit’."illicit/violent": numberThe score for the category ‘illicit/violent’."self-harm": numberThe score for the category ‘self-harm’."self-harm/instructions": numberThe score for the category ‘self-harm/instructions’."self-harm/intent": numberThe score for the category ‘self-harm/intent’.sexual: numberThe score for the category ‘sexual’."sexual/minors": numberThe score for the category ‘sexual/minors’.violence: numberThe score for the category ‘violence’."violence/graphic": numberThe score for the category ‘violence/graphic’.flagged: booleanWhether any of the below categories are flagged. ModerationModel = "omni-moderation-latest" or "omni-moderation-2024-09-26" or "text-moderation-latest" or "text-moderation-stable"One of the following:"omni-moderation-latest""omni-moderation-2024-09-26""text-moderation-latest""text-moderation-stable"