You're looking at a specific version of this model. Jump to the model overview.

ditto--ai /qwen3guard-gen-4b:4d1dff72

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
prompt
string
User message to moderate
response
string
Assistant response to moderate (enables response moderation)
max_new_tokens
integer
128

Min: 1

Max: 256

Maximum number of tokens to generate

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'properties': {'categories': {'title': 'Categories', 'type': 'string'},
                'refusal': {'nullable': True,
                            'title': 'Refusal',
                            'type': 'string'},
                'safety_label': {'title': 'Safety Label', 'type': 'string'}},
 'required': ['safety_label', 'categories'],
 'title': 'ModerationOutput',
 'type': 'object'}