You're looking at a specific version of this model. Jump to the model overview.

deepfates /openai-moderation:27b6697d

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
ZIP file containing images to run safety checks on
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
{'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'},
                          'image_filename': {'title': 'Image Filename',
                                             'type': 'string'},
                          'is_safe': {'title': 'Is Safe', 'type': 'boolean'},
                          'time_taken': {'title': 'Time Taken',
                                         'type': 'number'}},
           'required': ['image_filename',
                        'is_safe',
                        'categories',
                        'time_taken'],
           'title': 'SafetyCheckResult',
           'type': 'object'},
 'title': 'Output',
 'type': 'array'}