Configure pre-generation moderation
set_moderationSet up the moderation gate that screens each prompt before the image API, rejecting disallowed prompts to 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 |