Configure pre-generation moderation
set_moderationConfigure the moderation gate that screens prompts before they reach the image API. Enable it to reject disallowed prompts and protect your account from risk control.
Instructions
Configure the moderation gate that screens every prompt BEFORE it reaches the image API. When enabled, prompts judged as disallowed are rejected to protect the account from risk control. Any argument left null is unchanged. Changes persist to config.json and take effect immediately. Pass enabled=false to turn moderation off.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | ||
| prompt | No | ||
| api_key | No | ||
| enabled | No | ||
| api_base_url | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |