Configure pre-generation moderation
set_moderationConfigure a moderation gate that rejects disallowed prompts before they reach the image API, protecting your account from risk control. Changes take effect immediately and persist to config.
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 |