Skip to content

Commit b1131cd

Browse files
authored
Update rest-quickstart-image.md
1 parent 8c2373b commit b1131cd

File tree

1 file changed

+24
-25
lines changed

1 file changed

+24
-25
lines changed

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

Lines changed: 24 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -51,21 +51,20 @@ curl --location --request POST '<endpoint>/contentsafety/image:analyze?api-versi
5151
"image": {
5252
"content": "<base_64_string>"
5353
},
54-
"categories": [
55-
"Hate", "SelfHarm", "Sexual", "Violence"
56-
],
54+
"categories": ["Hate", "SelfHarm", "Sexual", "Violence"],
5755
"outputType": "FourSeverityLevels"
58-
}'
56+
}
57+
'
5958
```
6059

6160
> [!NOTE]
6261
> If you're using a blob storage URL, the request body will look like this:
6362
>
6463
> ```
6564
> {
66-
> "image": {
67-
> "blobUrl": "<your_storage_url>"
68-
> }
65+
> "image": {
66+
> "blobUrl": "<your_storage_url>"
67+
> }
6968
> }
7069
> ```
7170
@@ -91,24 +90,24 @@ You should see the image moderation results displayed as JSON data in the consol
9190
9291
```json
9392
{
94-
"categoriesAnalysis": [
95-
{
96-
"category": "Hate",
97-
"severity": 2
98-
},
99-
{
100-
"category": "SelfHarm",
101-
"severity": 0
102-
},
103-
{
104-
"category": "Sexual",
105-
"severity": 0
106-
},
107-
{
108-
"category": "Violence",
109-
"severity": 0
110-
}
111-
]
93+
"categoriesAnalysis": [
94+
{
95+
"category": "Hate",
96+
"severity": 2
97+
},
98+
{
99+
"category": "SelfHarm",
100+
"severity": 0
101+
},
102+
{
103+
"category": "Sexual",
104+
"severity": 0
105+
},
106+
{
107+
"category": "Violence",
108+
"severity": 0
109+
}
110+
]
112111
}
113112
```
114113

0 commit comments

Comments
 (0)