You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-services/content-safety/includes/quickstarts/rest-quickstart-image.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ manager: nitinme
7
7
ms.service: azure-ai-content-safety
8
8
ms.custom: build-2023
9
9
ms.topic: include
10
-
ms.date: 03/07/2024
10
+
ms.date: 03/11/2024
11
11
ms.author: pafarley
12
12
---
13
13
@@ -27,7 +27,7 @@ The following section walks through a sample image moderation request with cURL.
27
27
28
28
Choose a sample image to analyze, and download it to your device.
29
29
30
-
We support JPEG, PNG, GIF, BMP, TIFF, or WEBP image formats. The maximum size for image submissions is 4 MB, and image dimensions must be between 50 x 50 pixels and 2,048 x 2,048 pixels. If your format is animated, we will extract the first frame to do the detection.
30
+
We support JPEG, PNG, GIF, BMP, TIFF, or WEBP image formats. The maximum size for image submissions is 4 MB, and image dimensions must be between 50 x 50 pixels and 2,048 x 2,048 pixels. If your format is animated, we'll extract the first frame to do the detection.
31
31
32
32
You can input your image by one of two methods: **local filestream** or **blob storage URL**.
33
33
-**Local filestream** (recommended): Encode your image to base64. You can use a website like [codebeautify](https://codebeautify.org/image-to-base64-converter) to do the encoding. Then save the encoded string to a temporary location.
@@ -93,7 +93,7 @@ The parameters in the request body are defined in this table:
| **content** | Required | The content or blob URL of the image. I can be either base64-encoded bytes or a blob URL. If both are given, the request will be refused. The maximum allowed size of the image is 2048 pixels x 2048 pixels, and the maximum file size is 4MB. The minimum size of the image is 50 pixels x 50 pixels. | String |
96
+
| **content** | Required | The content or blob URL of the image. I can be either base64-encoded bytes or a blob URL. If both are given, the request is refused. The maximum allowed size of the image is 2048 pixels x 2048 pixels, and the maximum file size is 4 MB. The minimum size of the image is 50 pixels x 50 pixels. | String |
97
97
| **categories** | Optional | This is assumed to be an array of category names. See the [Harm categories guide](../../concepts/harm-categories.md) for a list of available category names. If no categories are specified, all four categories are used. We use multiple categories to get scores in a single request. | String |
98
98
| **outputType** | Optional | `"FourSeverityLevels"` or `"EightSeverityLevels"`. Output severities in four or eight levels. The value can be `0,2,4,6` or `0,1,2,3,4,5,6,7`. | String|
99
99
@@ -128,5 +128,5 @@ The JSON fields in the output are defined here:
128
128
129
129
| Name | Description | Type |
130
130
| :------------- | :--------------- | ------ |
131
-
|**categoriesAnalysis**| Each output class that the API predicts. Classification can be multi-labeled. For example, when an image is run through the image moderation model, it could be classified as both sexual content and violence. [Harm categories](../../concepts/harm-categories.md)| String |
131
+
|**categoriesAnalysis**| Each output class that the API predicts. Classification can be multi-labeled. For example, when an image is uploaded to the image moderation model, it could be classified as both sexual content and violence. [Harm categories](../../concepts/harm-categories.md)| String |
132
132
|**Severity**| The severity level of the flag in each harm category. [Harm categories](../../concepts/harm-categories.md)| Integer |
0 commit comments