LibreAI / Image / TensorStack
// image · saddam213/TensorStack

TensorStack

C# generative AI SDK — text, image, video and audio via ONNX

💎 Hidden gem★ 44 stars⑂ 18 forksApache-2.0updated 2026-10
▦ visual — this project's README ships no embeddable screenshot,
so here's a placeholder. The guide below is complete regardless.
// project facts

Project facts

TensorStack is an open-source image project by saddam213 (saddam213/TensorStack on GitHub). It has 44 GitHub stars and 18 forks, is released under the Apache-2.0 license, and was last updated on GitHub on 2 October 2026.

GitHub stars
44
Forks
18
License
Apache-2.0
Last updated on GitHub
2 October 2026
Category
Image
Listing
Hidden gem — a shorter page for a lesser-known project
Official site
GitHub
// how it works

How it works

  1. Add the NuGet package

    Reference TensorStack in your .NET project.

  2. Choose a modality

    Text, image, video or audio generation.

  3. Load a model

    Use ONNX models like Stable Diffusion or Phi-3.

  4. Generate in-process

    Run inference right inside your app.

// features

Why people love it

Four modalities

Text, image, video and audio.

C# native

No Python sidecar needed.

ONNX Runtime

Portable, fast inference.

DirectML

GPU acceleration on Windows.

Phi-3 text

Compact LLM support.

Apache licensed

Commercial-friendly open source.

Advertisement
// run it

Run it yourself

  1. Step 1 — Clone the repo

    Download the source and move into the project folder.

    git clone https://github.com/saddam213/TensorStack.git
    cd TensorStack
  2. Step 2 — Check the README

    Every project documents its own setup; start with install requirements.

    cat README.md | head -60
  3. Step 3 — Run it

    Follow the project's launch command — Docker, pip, npm, or a binary release.

    # see README for the exact launch command
// use cases

What you can build

Advertisement
// faq

Questions, answered

Who maintains TensorStack?

It is an open-source project at saddam213/TensorStack with 162 forks. Check the repo's contributors and recent commits to see how active maintenance is.

Is TensorStack free for commercial use?

Apache 2.0 licensed — commercial use allowed with attribution.

Do I need Python?

No — it is a native C# SDK.

Which image models work?

ONNX models including Stable Diffusion variants.

Does it use the GPU?

Yes — via ONNX Runtime providers including DirectML.

// keep exploring

Similar tools

Image

diffusers

🤗 Diffusers: State-of-the-art diffusion models for image, video, and audio generation in PyTorch.

★ 34.6k starsApache-2.0
View guide →
Image

stable-diffusion.cpp

Diffusion model(SD,Flux,Wan,Qwen Image,Z-Image,...) inference in pure C/C++

★ 7.5k starsMIT
View guide →
Image

ml-stable-diffusion

Stable Diffusion with Core ML on Apple Silicon

★ 18.0k starsMIT
View guide →
Image

mmagic

MMagic — OpenMMLab's generative-AI toolbox: diffusion, text-to-image, restoration and a model zoo.

★ 7.5k starsApache-2.0
View guide →
Image

Automatic

SD.Next: All-in-one WebUI for AI generative image and video creation, captioning and processing

★ 7.4k starsApache-2.0
View guide →
Image

restai

Open-source AI-as-a-service platform — LLMs, image and audio via one REST API

★ 514 starsApache-2.0
View guide →
// alternatives

Alternatives in Image

The most-starred other Image projects in the LibreAI catalogue — the realistic shortlist if TensorStack is not the right fit.

Get TensorStack

Free and open — grab the source, star the repo, and start creating.