To install Fooocus for easy AI image generation, download it only from the official GitHub repository, unzip it on Windows, and run run.bat. The software licence fee is $0 under GPL-3.0. Fooocus is built on Stable Diffusion XL, needs at least 4GB of NVIDIA GPU memory and 8GB of system RAM, and downloads its default models automatically on first launch.
Quick Answer
To install Fooocus for easy AI image generation, download it only from the official GitHub repository, unzip it on Windows, and run run.bat. The software licence fee is $0 under GPL-3.0. Fooocus is built on Stable Diffusion XL, needs at least 4GB of NVIDIA GPU memory and 8GB of system RAM, and downloads its default models automatically on first launch.
In this article
- How we checked this guide
- Read this first: prompt-first design, licence, and project status
- What Fooocus replaces, and what it does not
- How presets, styles, and prompts fit together
- Routes to install Fooocus
- Requirements before you install
- Step 1: install Fooocus on Windows
- Step 2: install Fooocus on Linux
- Step 3: install Fooocus with Docker
- Step 4: generate your first image
- Step 5: use presets, styles, and image tools
- First-run security steps you must not skip
- Backup and update routine
- Common errors and fixes
- Tips and tricks that save money
- The real cost maths
- When not to install Fooocus
- Pros and cons
- Our verdict
- FAQ
- Strategic Pivot
- Sources
How we checked this guide
We checked this guide on December 4, 2026, against the official Fooocus GitHub repository and README. We also checked the project’s official troubleshoot.md and docker.md files in the same repository. We checked Midjourney plan prices on official Midjourney Docs on the same day.
Fooocus describes itself as image generating software based on Gradio. Its promise is different from a node graph or a dense control panel. You focus on the prompt and the image, while the software handles much of the sampling and prompt processing underneath.
Read this first: prompt-first design, licence, and project status

Fooocus is offline, open source, and free software, in the project’s own words. The README says manual tweaking is not needed, in the same spirit as online generators like Midjourney. It also says the clicks between pressing download and generating the first image are strictly limited to less than three.
The repository licence is GNU General Public License v3.0, or GPL-3.0. In plain words, the Fooocus software itself carries a $0 licence fee, and GPL terms govern copying, modifying, and distributing the software. That is the figure we use in the cost maths below.
That grant covers the Fooocus program. It does not automatically cover every checkpoint, LoRA, or preset model you load, and it does not decide whether a generated image is safe for a client campaign. Check each model’s own terms before commercial use, exactly as you would with any other local image tool.
Project status matters here. The README now says Fooocus is in limited long-term support, with bug fixes only. It is built entirely on the Stable Diffusion XL architecture, and there are no current plans to migrate to newer model architectures such as Flux.
Best for: a marketer, shop owner, or designer who wants strong SDXL images from short prompts with minimal settings. Skip if: you need the newest model architectures first, deep node-level control, or a vendor support desk.
For the control-heavy alternatives, see our ComfyUI install guide and our Automatic1111 install guide. Fooocus sits at the opposite end: fewer controls, faster first results.
What Fooocus replaces, and what it does not
Fooocus replaces the rented prompt box for everyday SDXL image work. A social post visual, a product backdrop, or a blog illustration can be generated on your own machine, with no per-image subscription fee and no prompt sent to a cloud service in a local-only setup.
It also replaces much of the parameter learning curve. The README describes an offline GPT-2 based prompt processing engine and sampling improvements, so results stay usable whether the prompt is as short as “house in garden” or as long as 1000 words. That is the core trade: the software makes choices so the beginner does not have to.
Fooocus does not replace judgement. It can produce a polished image with the wrong product, the wrong hands, or text you cannot publish. A human still picks the keeper, checks the details, and confirms the model licence allows the use.
It also does not replace a managed service’s operations. You own the GPU, the disk space, the model downloads, and the updates. The $0 licence removes a software fee; it does not remove the computer or the maintenance.
How presets, styles, and prompts fit together
Think of Fooocus in three layers. The preset chooses the default model family for the job. The style shapes the look. The prompt says what the image should contain. Keeping those layers separate makes troubleshooting much easier.
The default presets are General, Realistic, and Anime. The README’s default model table lists juggernautXL_v8Rundiffusion for General, realisticStockPhoto_v20 for Realistic, and animaPencilXL_v500 for Anime. On Windows these map to run.bat, run_realistic.bat, and run_anime.bat.
Styles sit under Advanced settings. The feature list maps Midjourney-style controls to Fooocus equivalents: style selection, guidance for stylization, quality settings, image number for repeats, negative prompt, and aspect ratios. You can start with defaults and open Advanced only when a job needs it.
Image tools work from an input image. The README maps variation and upscaling to Input Image, then Upscale or Variation, with Vary Subtle, Vary Strong, and Upscale 1.5x or 2x options. Inpainting and outpainting live under Input Image, then Inpaint or Outpaint.
Prompt features reward simple habits. Multiple lines act as multi prompts, prompt weights use the familiar parentheses syntax, and embeddings can be called inline. A short, concrete prompt plus one style change at a time will teach you more than a long prompt rewritten all at once.
Routes to install Fooocus
| Route | Best for | Main requirement | Watch out for |
|---|---|---|---|
| Windows download | Most Windows NVIDIA readers | 4GB NVIDIA VRAM and 8GB RAM | Download only from the official GitHub page |
| Linux Python venv | Linux readers who want control | Python 3.10 and a working venv | Use Python 3.10, not a newer default |
| Linux Anaconda | Readers already using conda | Conda environment from environment.yaml | Activate the fooocus environment before launch |
| Docker or Podman | Server and repeatable setups | NVIDIA drivers plus Docker or Podman | Port 7865 and a persistent data volume |
| Mac Apple Silicon | M1 or M2 Mac readers | Conda plus PyTorch MPS setup | Not intensively tested and much slower |
This guide uses the Windows download first, because it is the route the project designs around. The Linux venv route comes second, and Docker third for readers who want a repeatable server-style install.
Requirements before you install
Check your GPU first. The minimal requirement table lists 4GB of GPU memory and 8GB of system memory for NVIDIA RTX 4XXX, 3XXX, and 2XXX cards on Windows or Linux. Treat 4GB as the floor for SDXL quality, not as a comfort target.
Older NVIDIA cards need more. The same table lists 8GB for GTX 1XXX and GTX 9XX cards, with 6GB on GTX 1XXX marked uncertain, and cards below GTX 9XX are not supported. A card that barely meets the floor will generate slowly and may fail on larger settings.
Check system swap before you blame the software. Fooocus requires system swap in its minimal table, and the troubleshooting file ties a long list of crashes and stalls to insufficient swap. On Windows 10 or 11, keep at least 40GB of free space on each disk so automatic swap can work.
Check your disk space for models. The first launch downloads default models into the checkpoints folder, and the first inpaint downloads a further 1.28GB control model. A working library of checkpoints and LoRAs grows quickly, so decide your first preset before you install.
Check your Python version on Linux. The venv and native routes both call for Python 3.10, and the troubleshooting file answers the subprocess-exited-with-error problem with a plain instruction: use Python 3.10. A newer system Python is the wrong starting point for this install.
Step 1: install Fooocus on Windows
Download Fooocus from the official GitHub repository’s download link. The README’s Windows section says to download the file, uncompress it, and then run run.bat. That single launcher is the whole Windows install for most readers.
Unzip into a folder you control, with room for models and outputs. Avoid a path you cannot write to, and avoid a drive that is nearly full. The first launch needs space for model downloads before it can generate anything.
Run run.bat and let the first launch finish. The software automatically downloads default models to the Fooocus models checkpoints folder, according to the preset you launched. A slow connection makes this step long; it is a download, not a hang.
Choose your preset launcher deliberately. run.bat starts the General preset, run_realistic.bat starts Realistic, and run_anime.bat starts Anime. Each preset can require different models, and those models download automatically when needed.
Since Fooocus 2.3.0, presets can also be switched directly in the browser. The README notes two flags for changing that behaviour: one disables preset selection in the browser, and another always downloads a missing model on preset switch. Leave the defaults alone until your first image works.
Watch for two error names during this step. MetadataIncompleteBuffer and PytorchStreamReader mean the model files are corrupted, and the README’s fix is to download the models again. Do not debug prompts until the model loads cleanly.
Step 2: install Fooocus on Linux
Use the Python venv route when you want a clean, repeatable Linux install. The README requires Python 3.10, callable as python3, with the venv system working. Clone the repository, create the environment, and install the pinned requirements:
git clone https://github.com/lllyasviel/Fooocus.git
cd Fooocus
python3 -m venv fooocus_env
source fooocus_env/bin/activate
pip install -r requirements_versions.txtLaunch with the update-aware entry point:
source fooocus_env/bin/activate
python entry_with_update.pyAdd the listen flag only when you intend to open a remote port. The README shows python entry_with_update.py –listen for that case. The security section below explains why that flag changes your risk, so treat it as a deliberate decision.
The Anaconda route follows the same shape. Clone the repository, create the environment from environment.yaml, activate the fooocus environment, and install requirements_versions.txt. Launch with python entry_with_update.py inside that environment.
AMD readers have a separate path. On Linux, the README says to replace torch with the AMD ROCm build after the standard install, and it calls AMD support beta and not intensively tested. On Windows, AMD uses a DirectML edit to run.bat. Follow the official AMD section for your platform instead of improvising.
Step 3: install Fooocus with Docker

Use Docker when you want the same install on a server or a second machine. The official docker.md file requires a computer that can run Fooocus, proprietary NVIDIA drivers, and Docker, Docker Compose, or Podman. The image is based on NVIDIA CUDA 12.4 and PyTorch 2.1.
The Compose route is short. Clone the repository, then run docker compose up. When the console shows the message with the 0.0.0.0 address on port 7865, open that address in your browser.
The plain Docker route maps the same port and stores data in a named volume:
docker run -p 7865:7865 -v fooocus-data:/content/data -it --gpus all -e CMDARGS=--listen -e DATADIR=/content/data ghcr.io/lllyasviel/fooocusThat short form shows the shape; the official docker.md lists the full set of path environment variables for checkpoints, LoRAs, embeddings, and outputs. Copy the full official command for a real deployment instead of trimming it from memory.
Models and outputs persist in the fooocus-data volume. The Docker guide places that volume under the Docker volumes directory on Linux, or the Podman containers storage path. Back up that volume, because it holds the models and outputs you would miss.
Docker does not update Fooocus by itself. The guide says a continuously running Compose setup is not updated automatically. Run git pull, rebuild the image without cache, and start it again when you want a newer version.
Step 4: generate your first image
Open the local address the console printed. On a local install, keep the interface on your own machine for the first runs. Shared access comes later, after authentication, and the security section covers that order.
Write a short, concrete prompt. Name one subject, one setting, and one style in plain words. Fooocus is designed so a prompt as short as “house in garden” can still produce a usable image, so your first test should be boring on purpose.
Click Generate and watch the first result before touching Advanced settings. A boring first test separates install problems from prompt problems. If the model loads and an image appears, the core chain works: GPU, model, sampler, and output path.
Change one variable per run after that first success. Style, aspect ratio, guidance, and image number all change the output. One change at a time turns experimenting into learning, and it keeps GPU time purposeful.
Try the aspect ratio control early. Product images, social posts, and blog headers need different shapes, and the Advanced aspect ratio setting is the Fooocus equivalent of a Midjourney aspect flag. Choosing the shape before generating beats cropping a square afterwards.
Step 5: use presets, styles, and image tools
Switch presets for the job, not out of curiosity. Realistic suits stock-photo style work, Anime suits illustrated work, and General is the default starting point. Each preset’s default model is named in the README table, so record which preset produced a keeper.
Use styles as saved looks. The feature list maps style selection to Advanced, then Style, and the Fooocus V2 style is the prompt-expansion style the project compares with prompt-magic features elsewhere. Start with one style, generate, and only then combine styles.
Use variation before starting over. Input Image, then Upscale or Variation, offers Vary Subtle and Vary Strong, plus Upscale 1.5x and 2x. A near-miss image often needs a variation, not a brand-new prompt.
Use inpainting for the one broken detail. Input Image, then Inpaint or Outpaint, covers inpainting and expanding the canvas up, down, left, or right. Remember the first inpaint downloads the 1.28GB inpaint control model, so run that download before a deadline.
Use Image Prompt when a reference image should guide the result. The README maps image prompting to Input Image, then Image Prompt, with advanced options including FaceSwap. Treat face-related features with extra care: only use faces you have the right to use.
Keep custom models deliberate. Fooocus supports SDXL models, and the README points readers to Civitai for more. Download models from sources you can name, place them in the checkpoints folder the config expects, and record each model’s licence beside its file name.
First-run security steps you must not skip
Keep Fooocus local first. The README’s UI access section says the listen flag exposes a local UI listener, and the share flag registers a public Gradio endpoint. Both are unauthenticated by default. A local first run avoids handing your GPU to whoever finds the address.
Add authentication before any shared access. Fooocus supports basic authentication through an auth.json file in the main directory, containing user and pass entries, with an example file in the repository. Create that file before you use listen or share for a team.
Treat the share endpoint as public exposure. A gradio.live address is reachable beyond your desk, and the access is unauthenticated unless you add auth.json. Prefer local access, or an authenticated route you control, for client work.
Download only from the official repository. The README warns that many fake Fooocus websites exist and names look-alike domains as fake. A fake download is a supply-chain risk, not a shortcut. The GitHub repository is the only official source.
Treat models as untrusted files until checked. Prefer model files from the model’s official source, keep a record of where each file came from, and re-download any file that triggers a corrupted-model error. A clean model folder is part of a safe install.
Backup and update routine
Your backup unit is the config, the presets you changed, and the model list. After the first run, Fooocus generates config.txt in the Fooocus folder. Back up that file, your auth.json in a safe place, and a written list of installed models and LoRAs.
The config file can change model paths and default parameters. The README shows path settings for checkpoints, LoRAs, embeddings, and outputs, plus default model and style settings. If a config edit breaks the install, deleting config.txt returns Fooocus to defaults.
Update through the project’s own launcher. entry_with_update.py is the launch path the README uses on Linux and Mac, and the Windows package updates through its launcher flow. After updating, run one small known-good generation before trusting the new version on client work.
Docker updates are manual. Run git pull, rebuild the image with docker compose build –no-cache, and start it again. The data volume keeps your models and outputs across that rebuild, which is exactly why the volume matters.
Keep one known-good prompt as a canary. A short prompt with a fixed preset that always produces an image tells you in minutes whether an update broke the core chain. Test the canary first, then test your real workflow.
Common errors and fixes

RuntimeError: CPUAllocator. The troubleshooting file ties this error, and many stalls and crashes, to insufficient system swap. Keep at least 40GB of system swap available, put swap on an SSD where possible, and on Windows keep at least 40GB free on each disk so automatic swap can work.
The model loads, then nothing happens. The troubleshooting file groups this symptom with the same swap cause, along with segmentation faults, killed processes, and extremely slow model loading. Fix swap and free disk space before changing prompts or flags.
MetadataIncompleteBuffer or PytorchStreamReader failed. Your model file is corrupted. Fooocus re-downloads corrupted models when the connection is good; otherwise download the model manually from the URL the console shows.
Torch not compiled with CUDA enabled. The troubleshooting file says this means the official installation guide was not followed. Reinstall by the official route for your platform instead of patching a tutorial’s steps.
subprocess-exited-with-error. Use Python 3.10. The troubleshooting file gives that answer directly, and the Linux routes both call for Python 3.10. Point the install at a Python 3.10 environment and reinstall the requirements.
Found no NVIDIA driver, or driver too old. Upgrade the NVIDIA driver. The troubleshooting file gives that fix for both messages, and AMD readers should follow the official AMD install section instead.
CUDA out of memory on a 4GB card without float16 support. Cards like the GTX 960 struggle to support SDXL at 4GB without fp16. The troubleshooting file suggests trying SD1.5 in other software for such a device, or opening an issue with your exact hardware.
Fooocus suddenly becomes very slow. Check whether two Fooocus instances are running at the same time. The troubleshooting file asks that exact question, because a forgotten second instance quietly eats the GPU.
Random flags made things worse. Remove flags copied from tutorials, such as lowvram or bf16 switches, when they do not help. The troubleshooting file warns that such flags often introduce more problems than they solve.
Tips and tricks that save money
Prove the chain with the default preset first. The General preset downloads its model automatically and needs no custom files. One successful default image verifies the GPU, the model folder, and the output path before a single extra download.
Write short prompts and let the prompt engine work. Fooocus is built so a short prompt can still produce a strong image. A concrete subject plus one style beats a paragraph of hopeful adjectives, and it makes each experiment cheaper to judge.
Change one setting per run. Style, guidance, aspect ratio, and image number interact. Single changes show what each setting bought, which keeps experiments short and GPU time purposeful.
Use variation and upscale instead of regenerating. A near-miss image can be varied subtly or strongly, then upscaled 1.5x or 2x in the same tool. That route often reaches a keeper faster than ten fresh generations.
Use local generation for drafts and paid tools for finalists. A local Fooocus setup can produce fifty composition drafts for no per-image fee. Spend subscription GPU hours only on the two or three directions that survive your own review.
Keep swap and disk space healthy. Many Fooocus failures trace back to swap and free space, not to prompts. A machine with 40GB of swap headroom and room for models fails less often, which is the cheapest reliability upgrade available.
The real cost maths

Fooocus’s software licence fee is $0 under GPL-3.0. Your real local costs are the computer you run it on, your time, and any model terms you accept. There is no per-image fee in a local-only setup, and no subscription renews while you sleep.
Midjourney’s official plan comparison lists Basic at $10 a month or $96 a year, Standard at $30 a month or $288 a year, Pro at $60 a month or $576 a year, and Mega at $120 a month or $1,152 a year. Extra GPU time costs $4 an hour on every plan.
Take one small-business marketer who makes social and product images every week. On an existing NVIDIA computer, Fooocus’s licence and local generation cost $0 a month. The same marketer on Midjourney Standard annual billing pays $288 a year, so the local route saves $288 a year before hardware and time.
Privacy changes the comparison. Midjourney Stealth Mode, which keeps generations private, sits on Pro and Mega. Against Pro at $576 a year, a local-only Fooocus setup keeps prompts and files on your own machine and saves $576 a year in subscription fees, while adding maintenance you must staff yourself.
The break-even line is easy to state. Standard annual billing equals $24 a month, and Pro equals $48 a month. If your extra hardware, rental, or maintenance cost for local generation stays under those lines, Fooocus wins on cash; above them, the subscription is buying convenience at a fair price.
The maths flips in three situations. First, when you have no suitable GPU and must buy one for a handful of images a month. Second, when nobody will maintain the install, the models, and the updates. Third, when the model licence you want does not allow your commercial use, because a $0 program cannot fix a restricted model.
The lean choice is Fooocus on a computer you already own, with one proven preset and a checked model licence. The full-stack choice is Fooocus for repeatable local drafts plus a paid plan for work that needs its models or privacy features. Run both through the calculator in the Strategic Pivot before you commit.
When not to install Fooocus
Skip Fooocus when you need the newest model architectures first. The project is in limited long-term support with bug fixes only, built entirely on SDXL, with no current plans to migrate to newer architectures such as Flux. The README itself points Flux readers to WebUI Forge or ComfyUI.
Skip it when you have no suitable GPU and no budget for one. The minimal table starts at 4GB of NVIDIA VRAM with 8GB of system RAM and required swap, and CPU-only running is listed at about seventeen times slower than an RTX 3XXX card. A cloud plan removes that hardware question entirely.
Skip it when nobody will maintain the install. Models, swap, drivers, and updates all need an owner. An unmaintained local install becomes a broken one at the worst moment, usually the day a campaign is due.
Skip it when your chosen model’s licence blocks your use. The GPL-3.0 grant covers the Fooocus software, not every checkpoint you load. Check the model terms before building a client workflow on it.
Skip it when your team needs vendor support, shared accounts, or a service-level agreement. Fooocus is powerful open-source software with a simple interface, not a managed platform with a support desk.
Pros and cons
Pros
- $0 GPL-3.0 licence fee for the Fooocus software
- Prompt-first design with minimal manual tweaking
- Windows install is a download, an unzip, and run.bat
- General, Realistic, and Anime presets with automatic model downloads
- Variation, upscale, inpaint, outpaint, and image prompt in one tool
- Runs on 4GB NVIDIA VRAM with 8GB system RAM
Cons
- Limited long-term support with bug fixes only
- Built on SDXL, with no current plans for newer architectures
- Model licences are separate and must be checked per model
- System swap and disk space problems cause many failures
- AMD and Mac support are experimental and slower
- No vendor support desk is included
Our verdict
Install Fooocus when your business wants the easiest local route to strong SDXL images. Download it from the official GitHub repository, run run.bat on Windows NVIDIA hardware, and prove one short prompt before touching Advanced settings.
The maths favors Fooocus on hardware you already own: $0 in licence fees against $288 a year for Midjourney Standard on annual billing, or $576 a year for Pro with Stealth Mode. The break-even lines are $24 and $48 a month for hardware and maintenance.
Choose Midjourney when managed models, zero maintenance, and vendor operations matter more. Choose Fooocus when short prompts, local privacy, and a $0 licence matter more, and when SDXL quality is enough for the job. Check every model licence before client work, whichever route you pick.
FAQ
Is Fooocus free for a business?
The Fooocus software licence fee is $0 under GPL-3.0. You still need suitable hardware, and each model you load carries its own licence, so check the model terms before commercial use.
What is the easiest way to install Fooocus?
On Windows, download Fooocus from the official GitHub repository, uncompress it, and run run.bat. The first launch downloads the default models automatically. Never download Fooocus from a look-alike website.
What are the minimum requirements for Fooocus?
The official minimal table lists 4GB of NVIDIA GPU memory and 8GB of system RAM for RTX 4XXX, 3XXX, and 2XXX cards, with system swap required. Older GTX cards need 8GB of VRAM, and cards below GTX 9XX are not supported.
Does Fooocus support Flux or newer models?
No. Fooocus is built entirely on Stable Diffusion XL and is in limited long-term support with bug fixes only. The project has no current plans to migrate to newer architectures and points Flux readers to WebUI Forge or ComfyUI.
When should a small business skip Fooocus?
Skip it when you need newer model families first, have no suitable GPU, or nobody will maintain the install. A managed image plan fits those cases better.
Strategic Pivot
Before you commit to any AI image stack, run your own numbers. Our free AI Cost Calculator helps you compare licence fees, subscriptions, and usage spend side by side, so the Fooocus versus subscription decision rests on your figures, not on a headline price.
Sources
- Fooocus official GitHub repository and README: https://github.com/lllyasviel/Fooocus
- Fooocus official troubleshooting file: https://github.com/lllyasviel/Fooocus/blob/main/troubleshoot.md
- Fooocus official Docker guide: https://github.com/lllyasviel/Fooocus/blob/main/docker.md
- Midjourney plan comparison (official Midjourney Docs): https://docs.midjourney.com/hc/en-us/articles/27870484040333-Comparing-Midjourney-Plans
Price note — updated December 4, 2026: Prices in this post were checked on December 4, 2026. When you are reading this, the price may be lower or higher, so check the official pricing page before buying.
Pros
- $0 GPL-3.0 licence fee for the Fooocus software
- prompt-first design with minimal manual tweaking
- Windows install is a download, an unzip, and run.bat
- General, Realistic, and Anime presets with automatic model downloads
- variation, upscale, inpaint, outpaint, and image prompt in one tool
- runs on 4GB NVIDIA VRAM with 8GB system RAM
Cons
- limited long-term support with bug fixes only
- built on SDXL, with no current plans for newer architectures
- model licences are separate and must be checked per model
- system swap and disk space problems cause many failures
- AMD and Mac support are experimental and slower
- no vendor support desk is included
Install Fooocus when your business wants the easiest local route to strong SDXL images. Download it from the official GitHub repository, run run.bat on Windows NVIDIA hardware, and prove one short prompt before touching Advanced settings. The maths favors Fooocus on hardware you already own: $0 in licence fees against $288 a year for Midjourney Standard on annual billing, or $576 a year for Pro with Stealth Mode. The break-even lines are $24 and $48 a month for hardware and maintenance. Choose Midjourney when managed models, zero maintenance, and vendor operations matter more. Choose Fooocus when short prompts, local privacy, and a $0 licence matter more, and when SDXL quality is enough for the job. Check every model licence before client work, whichever route you pick.

2 thoughts on “How to Install Fooocus for Easy AI Image Generation (2026)”