
Explanation:
Generate alt text
To automatically suggest descriptive captions for images (usable as alt text), use the Computer Vision Describe Image API. It returns natural-language captions summarizing the image content. Endpoint: /vision
/v3.2/describe . Setting maxCandidates=1 gives a single best caption.
Detect inappropriate content
To block adult/racy/gory images with minimal effort, use Computer Vision Analyze Image with the Adult visual feature. This returns flags ( isAdult , isRacy , isGory ) and confidence scores. The provided option includes Adult,Description which still returns the needed adult/racy/gore signals, satisfying the requirement.
These choices minimize development effort by using built-in Computer Vision capabilities without training a custom model or wiring up multiple services.
References
Microsoft Learn - Describe images (Computer Vision): "The Describe Image API returns a list of natural language sentences that describe the image."
https://learn.microsoft.com/azure/ai-services/computer-vision/overview-image-analysis#describe-images Microsoft Learn - Analyze images (Adult/Racy/Gore detection): "Use the Adult feature to detect adult, racy, and gory content."
https://learn.microsoft.com/azure/ai-services/computer-vision/overview-image-analysis#adult-racy-and-gory-content-detection