A modular .NET SDK for building AI-powered applications on Windows OS.
TensorStack provides reusable components for local AI inference, text generation, image, video and audio generation, media processing, hardware acceleration, and application development through a unified developer experience.
Built for performance and flexibility, TensorStack powers all applications developed by TensorStack-AI, including Amuse, the official reference application and UI demonstration of the platform.
- Native .NET SDK
- Local AI inference across multiple backends (stable-diffusion.cpp, llama.cpp, audio.cpp, vision.cpp, ncnn, HuggingFace)
- Text generation and LLM integration, with streaming, thinking, tool calls and image/audio input
- Image and video generation
- Music, speech and speech recognition
- Image upscaling and extraction pipelines
- Edge, line art, depth, background removal and pose extraction
- Video frame interpolation
- Image, video, and audio processing
- Hardware acceleration for Nvidia, AMD, Intel and CPU
- Python interoperability
- Extensible provider architecture
Each backend wraps a native or Python runtime behind the same pattern: create a backend for a VendorType, initialize it, then load a pipeline.
using (var backend = new LlamaCppBackend(VendorType.Nvidia))
{
await backend.InitializeAsync();
using (var pipeline = new LlamaCppPipeline(backend))
{
await pipeline.LoadAsync(options);
// Generate
}
}| Backend | Runtime | Use |
|---|---|---|
| TensorStack.HuggingFace | Diffusers & Transformers (Python) | Image and video generation |
| TensorStack.StableDiffusionCpp | stable-diffusion.cpp | GGUF image and video generation |
| TensorStack.LlamaCpp | llama.cpp | GGUF language models, tool calls, image/audio input |
| TensorStack.AudioCpp | audio.cpp | Music, speech and speech recognition |
| TensorStack.VisionCpp | vision.cpp & ncnn | Image extractors, background removal, pose and frame interpolation |
| Package | Description | Docs | Package |
|---|---|---|---|
| TensorStack.Common | Tensor types, pipelines and backend base classes | README | |
| TensorStack.Media | Image/Audio/Video loading, saving and streaming | README |
| Package | Description | Docs | Package |
|---|---|---|---|
| TensorStack.HuggingFace | .NET → Python interface for Diffusers & Transformers | README | |
| TensorStack.StableDiffusionCpp | .NET wrapper for stable-diffusion.cpp | README | |
| TensorStack.LlamaCpp | .NET wrapper for llama.cpp | README | |
| TensorStack.AudioCpp | .NET wrapper for audio.cpp | README |
| Package | Description | Docs | Package |
|---|---|---|---|
| TensorStack.VisionCpp | .NET wrapper for vision.cpp and ncnn | README |
- Windows 10 (1809) or later, x64
- .NET 10 (
net10.0-windows10.0.17763.0)
FFMPEGhttps://github.com/FFmpeg/FFmpegSeriloghttps://github.com/serilog/serilogCSnakeshttps://github.com/tonybaloney/CSnakesSkiaSharphttps://github.com/mono/SkiaSharpOpenCvSharphttps://github.com/shimat/opencvsharpDiffusershttps://github.com/huggingface/diffusersTransformershttps://github.com/huggingface/transformersstable-diffusion.cpphttps://github.com/leejet/stable-diffusion.cppllama.cpphttps://github.com/ggml-org/llama.cppaudio.cpphttps://github.com/0xShug0/audio.cppvision.cpphttps://github.com/Acly/vision.cppncnnhttps://github.com/Tencent/ncnn