Image generationApache-2.0Python

Sana

NVIDIA’s efficient high-resolution text-to-image model (up to 4K).

Stars
9.9K
Forks
816
Open issues
136
Last commit
2026-11-30

Live from the GitHub API · updated 2026-11-30

What is Sana?

Sana is a linear-diffusion-transformer text-to-image model from NVIDIA and MIT that generates up to 4096×4096 images quickly, even on laptop GPUs. Code includes training, inference, a Gradio demo and Diffusers support.

Key features

  • Up to 4K resolution output
  • Linear attention for speed
  • Small models (0.6B/1.6B)
  • Diffusers and ComfyUI support

System requirements

Platforms
Linux · Windows
GPU
NVIDIA
VRAM
~9 GB+ (lower with quantization)

How to install Sana

Summarized from the project’s README. Projects change quickly — check the GitHub page for the latest instructions.

Diffusers

  1. 1
    Install Diffusers and PyTorch.
    pip install -U diffusers transformers accelerate
  2. 2
    Generate with SanaPipeline.
    from diffusers import SanaPipeline
    import torch
    pipe = SanaPipeline.from_pretrained("Efficient-Large-Model/Sana_1600M_1024px_diffusers", torch_dtype=torch.float16).to("cuda")
    pipe("a cyberpunk cat").images[0].save("sana.png")

Strengths

  • Fast high-resolution generation
  • Small model size

Limitations

  • Smaller ecosystem than SDXL/Flux

Sana alternatives compared

SoftwareStarsLicensePlatformsVRAM
Sana

NVIDIA’s efficient high-resolution text-to-image model (up to 4K).

9.9KApache-2.0~9 GB+ (lower with quantization)
FLUX (reference code)

Official inference code for Black Forest Labs’ FLUX models.

26.1KApache-2.016–24 GB for full precision; less with quantized variants elsewhere
Diffusers

Hugging Face’s Python library for diffusion models.

35KApache-2.0—
ComfyUI

Node-based interface for diffusion models — images, video and audio.

149.3KGPL-3.04 GB minimum for SD1.5; 12 GB+ recommended for FLUX and video models
Stable Diffusion WebUI (AUTOMATIC1111)

The classic browser UI for Stable Diffusion with a massive extension ecosystem.

165.4KAGPL-3.04 GB minimum (with --medvram/--lowvram), 8 GB+ recommended
Stable Diffusion WebUI Forge

A faster, leaner fork of the A1111 WebUI with FLUX support.

13.2KAGPL-3.06 GB+ (FLUX NF4/GGUF variants run on 6–8 GB)

FAQ

Is Sana free?

Yes — Sana is open-source software released under the Apache-2.0 license. Check the license (and any model weight licenses) before commercial use.

Does Sana run on Windows, Mac and Linux?

Sana supports: Linux, Windows.

What hardware do I need for Sana?

NVIDIA. VRAM: ~9 GB+ (lower with quantization)

How do I install Sana?

1. Install Diffusers and PyTorch. 2. Generate with SanaPipeline.

What are the best Sana alternatives?

Popular alternatives include FLUX (reference code), Diffusers, ComfyUI, Stable Diffusion WebUI (AUTOMATIC1111). See the comparison table on this page.

Can I use Sana online without installing it?

If you just want results, AiLoft runs top image models such as GPT Image 2.5 and Nano Banana Pro in the browser — no GPU or setup required.

Skip the install — generate images in your browser

No GPU, drivers or Python needed. Use GPT Image 2.5 and Nano Banana Pro online and compare them side by side.