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-understanding/quickstart/use-rest-api.md
+9-6Lines changed: 9 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,37 +39,40 @@ To get started, you need **An Active Azure Subscription**. If you don't have an
39
39
Analyzers define how your content will be processed and the insights that will be extracted. We offer [pre-built analyzers](link to pre-built analyzer page) for common use cases. You can [customize pre-built analyzers](link to learn how to customize analyzers) to better fit your specific needs and use cases.
40
40
This quickstart uses pre-built document, image, audio, and video analyzers to help you get started.
41
41
42
-
Before running the cURL command, make the following changes to the HTTP request:
42
+
43
+
44
+
### Send File for Analysis
43
45
#### POST Request
46
+
44
47
```bash
45
48
curl -i -X POST "{endpoint}/analyzers/{analyzerId}:analyze?api-version=2025-05-01-preview" \
46
49
-H "Ocp-Apim-Subscription-Key: {key}" \
47
50
-H "Content-Type: application/json" \
48
51
-d "{\"url\":\"{fileUrl}\"}"
49
52
```
50
-
53
+
Before running the cURL command, make the following changes to the HTTP request:
51
54
# [Document](#tab/document)
52
55
53
56
1. Replace `{endpoint}` and `{key}` with the corresponding values from your Azure AI Services instance in the Azure portal.
54
-
2. Replace `{analyzerId}` with `prebuilt-documentAnalyzer`.
57
+
2. Replace `{analyzerId}` with `prebuilt-documentAnalyzer`. This analyzer extracts text and layout elements such as paragraphs, sections, and tables from a document..
55
58
3. Replace `{fileUrl}` with a publicly accessible URL of the file to analyze—such as a path to an Azure Storage Blob with a shared access signature (SAS), or use the sample URL: `https://github.com/Azure-Samples/azure-ai-content-understanding-python/raw/refs/heads/main/data/invoice.pdf`.
56
59
57
60
# [Image](#tab/image)
58
61
59
62
1. Replace `{endpoint}` and `{key}` with the corresponding values from your Azure AI Services instance in the Azure portal.
60
-
2. Replace `{analyzerId}` with `prebuilt-imageAnalyzer`.
63
+
2. Replace `{analyzerId}` with `prebuilt-imageAnalyzer`. This analyzer generates a description of the image.
61
64
3. Replace `{fileUrl}` with a publicly accessible URL of the file to analyze—such as a path to an Azure Storage Blob with a shared access signature (SAS), or use the sample URL: `https://github.com/Azure-Samples/azure-ai-content-understanding-python/raw/refs/heads/main/data/pieChart.jpg`.
62
65
63
66
# [Audio](#tab/audio)
64
67
65
68
1. Replace `{endpoint}` and `{key}` with the corresponding values from your Azure AI Services instance in the Azure portal.
66
-
2. Replace `{analyzerId}` with `prebuilt-audioAnalyzer`.
69
+
2. Replace `{analyzerId}` with `prebuilt-audioAnalyzer`. This analyzer extracts the audio transcript, generates a summary, and performs speaker labeling.
67
70
3. Replace `{fileUrl}` with a publicly accessible URL of the file to analyze—such as a path to an Azure Storage Blob with a shared access signature (SAS), or use the sample URL: `https://github.com/Azure-Samples/azure-ai-content-understanding-python/raw/refs/heads/main/data/audio.wav`.
68
71
69
72
# [Video](#tab/video)
70
73
71
74
1. Replace `{endpoint}` and `{key}` with the corresponding values from your Azure AI Services instance in the Azure portal.
72
-
2. Replace `{analyzerId}` with `prebuilt-videoAnalyzer`.
75
+
2. Replace `{analyzerId}` with `prebuilt-videoAnalyzer`. This analyzer extracts keyframes, transcript, and chapter segments from video.
73
76
3. Replace `{fileUrl}` with a publicly accessible URL of the file to analyze—such as a path to an Azure Storage Blob with a shared access signature (SAS), or use the sample URL: `https://github.com/Azure-Samples/azure-ai-content-understanding-python/raw/refs/heads/main/data/FlightSimulator.mp4`.
0 commit comments