Skip to content

Commit 74c299b

Browse files
committed
acrolinx
1 parent d143ace commit 74c299b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

articles/ai-services/content-safety/includes/quickstarts/rest-quickstart-image.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ manager: nitinme
77
ms.service: azure-ai-content-safety
88
ms.custom: build-2023
99
ms.topic: include
10-
ms.date: 03/07/2024
10+
ms.date: 03/11/2024
1111
ms.author: pafarley
1212
---
1313

@@ -27,7 +27,7 @@ The following section walks through a sample image moderation request with cURL.
2727

2828
Choose a sample image to analyze, and download it to your device.
2929

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.
3131

3232
You can input your image by one of two methods: **local filestream** or **blob storage URL**.
3333
- **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:
9393
9494
| Name | Required? | Description | Type |
9595
| :---------- | ----------- | :------------ | ------- |
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 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 |
9797
| **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 |
9898
| **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|
9999
@@ -128,5 +128,5 @@ The JSON fields in the output are defined here:
128128

129129
| Name | Description | Type |
130130
| :------------- | :--------------- | ------ |
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 |
132132
| **Severity** | The severity level of the flag in each harm category. [Harm categories](../../concepts/harm-categories.md) | Integer |

0 commit comments

Comments
 (0)