Introducing AzureImageSDK — A Unified C# SDK for Azure Image Generation & Captioning, Analysis & Packed With Powerful Utilities. #47
DrHazemAli
started this conversation in
Show and Tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Introduction
I'm excited to introduce AzureImageSDK — a comprehensive and modern .NET SDK for integrating Azure AI Foundry's image models, including Stable Image Ultra, Stable Image Core, Azure Vision, and moderation APIs — all in a single, extensible library.
While building solutions using Azure's AI image services, I noticed a gap: No unified, clean, and developer-friendly SDK for image generation, vision analysis, and content moderation—all in one package.
So I created AzureImageSDK — a fully open-source C# SDK that wraps Azure’s powerful image tools into a single, async-friendly interface.
The goal?
Make it simple to turn prompts into images, analyze visual content, and handle moderation, with just a few lines of code.
Features and Screenshots
🔥 Highlights
The SDK is designed for scale, its extendable architecture allows adding more models as soon as it gets released.
✅ Image AI Clients
⚙️ Utility Modules (all async-ready)
ImageFormatConverter– Convert between MIME types & extensions, validate formatsImageMetadataExtractor– Extract dimensions, file size, format, timestamps, propertiesImageQualityAnalyzer– Analyze sharpness, brightness, contrast, overall scoreImageSizeValidator– Validate dimensions, enforce constraints, scale to fit/fillAspectRatioConverter– Convert and validate aspect ratios like"16:9"to(width, height)Technical Details
🛠️ Technical Details
🧪 Built With:
HttpClientFactorySystem.Text.Json(and optional fallback to Newtonsoft)🏗️ SDK Architecture:
AzureImage.Utilities.*namespaceTask-based for non-blocking IO🧩 Key Modules:
StableImageUltraModel,StableImageCoreModelGPTImage1ModelDALLE3ModelAzureVisionCaptioningModelAzureContentModerationClientImageFormatConverterImageMetadataExtractorImageQualityAnalyzerImageSizeValidatorAspectRatioConverter🛡️ Reliability & Resilience:
Pollyappsettings.json, environment vars, or code📈 Extensibility:
AzureImageClient.GenerateImageAsync<TReq, TResp>()Challenges and Solutions
💡 The SDK Solves Big Gaps in the Azure Image AI Ecosystem
🔧 Other Real-World Challenges I Solved
While working hands-on with Azure image services, I hit multiple developer friction points. Here’s what AzureImageSDK addresses directly:
GenerateImageAsync(...)Beta Was this translation helpful? Give feedback.
All reactions