pengdaqian2020/image-tagger

image tagger

  • Public
  • 22.5M runs

Run image-tagger 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
image
string
Input image
score_general_threshold
number
0.35
Threshold score of general
score_character_threshold
number
0.85
Threshold score of character

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'items': {'properties': {'confidence': {'title': 'Confidence',
                                         'type': 'number'},
                          'tag': {'title': 'Tag', 'type': 'string'}},
           'required': ['tag', 'confidence'],
           'title': 'Tag',
           'type': 'object'},
 'title': 'Output',
 'type': 'array'}
Example API response
View prediction
[{'confidence': 0.8186014890670776, 'tag': 'blurry'},
 {'confidence': 0.9389649629592896, 'tag': 'no_humans'},
 {'confidence': 0.5496093034744263, 'tag': 'depth_of_field'},
 {'confidence': 0.8239761590957642, 'tag': 'animal'},
 {'confidence': 0.608523964881897, 'tag': 'cat'},
 {'confidence': 0.4221939146518707, 'tag': 'rabbit'},
 {'confidence': 0.7589364647865295, 'tag': 'realistic'},
 {'confidence': 0.911034345626831, 'tag': 'animal_focus'}]