v4

latestSwagger 2.02026-07-1332530.0 KB

Analyze the input image. The request either contains image stream with any content type ['image/*', 'application/octet-stream'], or a JSON payload which includes an url property to be used to retrieve the image stream.

post/imageanalysis:analyze

Query parameters

featuresstring[]

The visual features requested. At least one visual feature must be specified.

languagestring

The desired language for output generation. If this parameter is not specified, the default value is "en". See https://aka.ms/cv-languages for a list of supported languages.

model-versionstring

Model version.

{"stackTrail":"paths:/imageanalysis%3Aanalyze:post:parameters:3:schema:items","oasType":"schema","type":"unknown"}

A list of aspect ratios to use for smartCrops feature. Aspect ratios are calculated by dividing the target crop width by the height. Supported values are between 0.75 and 1.8 (inclusive). Multiple values should be comma-separated. If this parameter is not specified, the service will return one crop suggestion with an aspect ratio it sees fit between 0.5 and 2.0 (inclusive).

gender-neutral-captionboolean

Boolean flag for enabling gender-neutral captioning for caption and denseCaptions features. If this parameter is not specified, the default value is "false".

api-versionstring required

Requested API version.

Request body

urlstring uri required

Publicly reachable URL of an image.

Response

Success

modelVersionstring required

Model Version.