v1

latestOpenAPI 3.1.02026-07-13161952.2 KB
Wesog Tag

Tag an image

Analyze a single image and return visual metadata. The request must provide exactly one input source: either image or image_url. This endpoint does not accept batches or multiple files in the same call.

post/tag/image

Response

Successful Response

heightinteger nullable

Image height in pixels.

widthinteger nullable

Image width in pixels.

rationumber nullable

Aspect ratio of the image.

orientstring nullable

Image orientation.

n_facesinteger nullable

Number of detected faces.

shotstring nullable

Predicted shot type.

illuminationstring nullable

Predicted lighting type.

photo_or_illusstring nullable

Whether the input is a photo or illustration.

type_of_photostring nullable

Predicted photo subtype.

type_of_illusstring nullable

Predicted illustration subtype.

categoriesstring[] nullable

General image categories.

colorsstring[] nullable

Representative image colors when requested.

bwboolean nullable

Whether the image is black and white.

captionstring nullable

Generated caption when requested.

keywordsstring[] nullable

Generated keywords when requested.

ocrstring nullable

Extracted OCR text when requested.