You're looking at a specific version of this model. Jump to the model overview.
deepfates /openai-moderation:de634138
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 |
---|---|---|---|
images_zip |
string
|
Optional ZIP file containing images to run safety checks on
|
|
inputs |
string
|
Optional JSON file of inputs, each can have 'text', 'image_url', or both
|
|
api_key |
string
|
OpenAI API key
|
Output schema
The shape of the response you’ll get when you run this model with an API.
Schema
{'properties': {'average_time_per_input': {'title': 'Average Time Per Input',
'type': 'number'},
'errors': {'items': {'properties': {'error': {'title': 'Error',
'type': 'string'},
'input_reference': {'title': 'Input '
'Reference',
'type': 'string'},
'time_taken': {'title': 'Time '
'Taken',
'type': 'number'}},
'required': ['input_reference',
'error',
'time_taken'],
'title': 'ErrorResult',
'type': 'object'},
'title': 'Errors',
'type': 'array'},
'total_inputs': {'title': 'Total Inputs', 'type': 'integer'},
'total_time_taken': {'title': 'Total Time Taken',
'type': 'number'},
'unsafe_inputs': {'items': {'properties': {'categories': {'items': {'properties': {'category': {'title': 'Category',
'type': 'string'},
'score': {'title': 'Score',
'type': 'number'}},
'required': ['category',
'score'],
'title': 'CategoryResult',
'type': 'object'},
'title': 'Categories',
'type': 'array'},
'input_reference': {'title': 'Input '
'Reference',
'type': 'string'},
'input_type': {'title': 'Input '
'Type',
'type': 'string'},
'time_taken': {'title': 'Time '
'Taken',
'type': 'number'}},
'required': ['input_reference',
'input_type',
'categories',
'time_taken'],
'title': 'UnsafeInput',
'type': 'object'},
'title': 'Unsafe Inputs',
'type': 'array'}},
'required': ['total_inputs',
'total_time_taken',
'average_time_per_input',
'unsafe_inputs',
'errors'],
'title': 'Output',
'type': 'object'}