zf-kbot/md-me-text-nsfw-guard
Public
1.8M
runs
Run zf-kbot/md-me-text-nsfw-guard with an API
Use one of our client libraries to get started quickly. Clicking on a library will take you to the Playground tab where you can tweak different inputs, see the results, and copy the corresponding code to use in your own project.
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 |
|---|---|---|---|
| apikey |
string
|
访问密钥
|
|
| text |
string
|
|
Single prompt/text to moderate. Ignored when texts_json is provided.
|
| texts_json |
string
|
|
Optional JSON array of prompts, e.g. ["prompt 1", "prompt 2"].
|
| allow_threshold |
number
|
0.11
Max: 1 |
Model sexual-risk score below this value returns allow.
|
| block_threshold |
number
|
0.12
Max: 1 |
Model sexual-risk score at or above this value returns block.
|
| max_texts |
integer
|
1280
Min: 1 Max: 1280 |
Maximum number of texts accepted in one call.
|
| max_chars |
integer
|
1000
Min: 16 Max: 5000 |
Maximum characters per text before truncation.
|
| include_text |
boolean
|
False
|
Return original text in output. Leave false for production privacy.
|
| return_probabilities |
boolean
|
False
|
Include label probability details inside logs when include_logs is true.
|
| include_logs |
boolean
|
False
|
Return detailed internal scoring and rule diagnostics.
|
{
"type": "object",
"title": "Input",
"required": [
"apikey"
],
"properties": {
"text": {
"type": "string",
"title": "Text",
"default": "",
"x-order": 1,
"description": "Single prompt/text to moderate. Ignored when texts_json is provided."
},
"apikey": {
"type": "string",
"title": "Apikey",
"x-order": 0,
"description": "\u8bbf\u95ee\u5bc6\u94a5"
},
"max_chars": {
"type": "integer",
"title": "Max Chars",
"default": 1000,
"maximum": 5000,
"minimum": 16,
"x-order": 6,
"description": "Maximum characters per text before truncation."
},
"max_texts": {
"type": "integer",
"title": "Max Texts",
"default": 1280,
"maximum": 1280,
"minimum": 1,
"x-order": 5,
"description": "Maximum number of texts accepted in one call."
},
"texts_json": {
"type": "string",
"title": "Texts Json",
"default": "",
"x-order": 2,
"description": "Optional JSON array of prompts, e.g. [\"prompt 1\", \"prompt 2\"]."
},
"include_logs": {
"type": "boolean",
"title": "Include Logs",
"default": false,
"x-order": 9,
"description": "Return detailed internal scoring and rule diagnostics."
},
"include_text": {
"type": "boolean",
"title": "Include Text",
"default": false,
"x-order": 7,
"description": "Return original text in output. Leave false for production privacy."
},
"allow_threshold": {
"type": "number",
"title": "Allow Threshold",
"default": 0.11,
"maximum": 1,
"minimum": 0,
"x-order": 3,
"description": "Model sexual-risk score below this value returns allow."
},
"block_threshold": {
"type": "number",
"title": "Block Threshold",
"default": 0.12,
"maximum": 1,
"minimum": 0,
"x-order": 4,
"description": "Model sexual-risk score at or above this value returns block."
},
"return_probabilities": {
"type": "boolean",
"title": "Return Probabilities",
"default": false,
"x-order": 8,
"description": "Include label probability details inside logs when include_logs is true."
}
}
}
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{
"title": "Output"
}