Reference/moderations
Create Moderation
Create Moderation Project API key or dashboard access token (JWT). Request examples use snake_case; schemas may also display accepted camelCase aliases. Replace resource placeholders with accessible IDs. See the guides for runtime model constraints and workflows.
Project API key or dashboard access token (JWT). See authentication.
Body (application/json)
inputstringrequired
The input text or list of texts to moderate.
modelstringoptionaldefault:
text-moderation-v1Moderation model identifier (e.g. text-moderation-v1).
featurestringoptionaldefault:
generation_promptContextual rule set: 'generation_prompt' (default) or 'text_input'.
customBlockedWordsarrayoptional
Optional list of custom prohibited keywords or brand phrases.
customRegexPatternsarrayoptional
Optional list of custom regex patterns for deterministic blocking.
customInstructionsstringoptional
Optional custom rules or instructions evaluated by the LLM classifier.
Response
200 - application/jsonSuccessful Response
No detailed response model is declared for this operation. See its guide for response fields and lifecycle behavior.
Request Example
