> Source: https://meetrix.io/blogs/how-to-install-fooocus-aws/
> Markdown copy of that page. Cite the URL above, not this file.

AI Image Tools

# Fooocus AI on AWS: Run the Fooocus AI Image Generator on a GPU Instance

[By Kelum Sampath](https://meetrix.io/blogs/authors/kelum-sampath/) • October 13, 2026 • 25 min read

Revised by

-   ![Portrait of Hiruna Kumara, Senior DevOps Engineer at Meetrix](https://meetrix.io/blog-images/assets/authors/hiruna-kumara.webp)[Hiruna Kumara](https://meetrix.io/blogs/authors/hiruna-kumara/)Senior DevOps Engineer, Meetrix

This article was reviewed and refreshed for accuracy. Last reviewed October 2026.

Fooocus AI is the Stable Diffusion XL image generator that hides most of the knobs: write a prompt, pick a style, click Generate. It needs an Nvidia GPU, which is exactly what most laptops lack. Meetrix's AMI runs it on AWS instead, with [Fooocus](https://github.com/lllyasviel/Fooocus) and [Fooocus-API](https://github.com/konieshadow/Fooocus-API) installed on Ubuntu 22.04 and a g4dn.2xlarge GPU instance recommended.

Know one thing before you invest time in it: Fooocus is in limited long-term support. Its maintainer fixes bugs but has no plans to adopt newer model architectures, so it stays an SDXL tool. For SDXL work that's fine, and it's still one of the easiest ways to get good images quickly. If you need the newest models, read our [Fooocus vs Automatic1111 vs ComfyUI comparison](https://meetrix.io/blogs/fooocus-vs-automatic1111-vs-comfyui/) first.

## Fooocus AI on AWS: guides, video and listing

### Quick Video Guide

### Developer Guide

[

How to Set up Fooocus with API Configuration on AWS - Developer Guide

Unleash the Power of Fooocus AI on AWS! This developer guide unlocks the secrets of setting up Fooocus with API configuration on Amazon Web Services. Master image generation with advanced control - perfect for developers and AI enthusiasts.

Meetrix.IO

![Fooocus 2.0 Developer Guide](https://meetrix.io/blog-images/paas-dev-guides/fooocus-2.0-developer-guide/fooocus-2.0-image.png)](https://meetrix.io/blogs/how-to-set-up-fooocus-api-configuration-aws-developer-guide/)

### Blog

[

How to Simply Set Up Fooocus 2.0 in Self Hosted on AWS

In the digital frontier, AI image generation stands as a testament to how far technology has advanced in understanding and replicating the nuances of human creativity. This rapidly advancing field allows us to convert complex ideas into vivid visuals, streamlining workflows across various industries.

Meetrix.IO · Published Nov 15, 2023

![How to Simply Set Up Fooocus 2.0 on AWS](https://meetrix.io/blog-images/paas-dev-guides/how-to-simply-setup-fooocus/how-to-simply-setup-fooocus.png)](https://www.linkedin.com/pulse/how-simply-set-up-fooocus-self-hosted-aws-meetrixio-e6rnc/)

### AWS Marketplace

[

AWS Marketplace: Fooocus 2.0 with API - Rapidly Fast Next-Gen AI Image Generation Software

Fooocus Software & API Step-by-step Guide available at meetrix.io/blogs/how-to-set-up-fooocus-api-configuration-aws-developer-guide. Deploy Fooocus 2.0 with API on AWS for next-generation AI image generation.

AWS Marketplace

](https://aws.amazon.com/marketplace/pp/prodview-4xzjmoi4f3ml4)

## Deploy the Fooocus AI image generator on AWS

### Installation Video Guide

[How to easily Install Fooocus on AWS](https://meetrix.io/blogs/how-to-set-up-fooocus-api-configuration-aws-developer-guide/)

1.  Check your GPU quota first. In Service Quotas, look at "Running On-Demand G and VT instances" for your region; a g4dn.2xlarge needs 8 vCPUs of it. Many accounts start lower. Our [vCPU quota guide](https://meetrix.io/blogs/increase-aws-vcpu-quota/) walks through the request.
2.  Open the [Fooocus listing on AWS Marketplace](https://aws.amazon.com/marketplace/pp/prodview-4xzjmoi4f3ml4), subscribe and accept the terms.
3.  Choose "CloudFormation Template" and your region, then launch the stack.
4.  Fill in `Admin Email`, `FooocusDomainName` (a Route 53 domain gets SSL automatically) and `FooocusInstanceType` (g4dn.2xlarge recommended). Submit and wait 5-10 minutes.
5.  Open `DashboardUrlIp` from the Outputs tab. A 502 in the first few minutes means Fooocus is still loading; give it about 5 minutes.
6.  Type a prompt and click Generate. The first image after a start is the slowest, while the models load into GPU memory; the next ones come much faster.

Full screenshots, manual SSL and the API endpoints are in the [Fooocus developer guide](https://meetrix.io/blogs/how-to-set-up-fooocus-api-configuration-aws-developer-guide/). Running on Google Cloud instead? See [Fooocus on GCP](https://meetrix.io/blogs/how-to-install-fooocus-gcp/).

## Fooocus minimum VRAM and the right instance

Fooocus's README asks for at least 4 GB of VRAM on Nvidia RTX 20, 30 or 40 series cards, 8 GB on GTX 10 series, and 8 GB of system RAM with swap turned on. Those are minimums for a desktop. On AWS the g4dn family is the usual fit:

| Instance | GPU | vCPU / RAM | Use it for |
| --- | --- | --- | --- |
| g4dn.xlarge | Nvidia T4, 16 GB | 4 / 16 GiB | One person, occasional images |
| g4dn.2xlarge (recommended) | Nvidia T4, 16 GB | 8 / 32 GiB | A small team, or the API under light load |

Going bigger within g4dn adds CPU and RAM, not GPU speed: every size from xlarge to 8xlarge has the same single T4. If an app needs more images per minute, run a second instance rather than a larger one.

## What Fooocus AI costs on AWS

The Meetrix software fee is $0.019 per hour on a g4dn.2xlarge. The GPU instance itself costs far more than that, so check the EC2 on-demand price for your region before you launch. The habit that saves the most money is simple: stop the instance when nobody's generating. A stopped instance costs only its EBS storage, and starting it again takes a couple of minutes. Pair that with an [AWS billing alarm](https://meetrix.io/blogs/aws-billing-alarm/) so a forgotten GPU doesn't run all weekend.

## Fooocus compared with other image generators

Fooocus is the simplest of the self-hosted SDXL tools: few settings, good defaults, styles and inpainting built in. Automatic1111 gives you far more options and extensions. ComfyUI builds images from node graphs and gets new models first. We compare all three in detail in [Fooocus vs Automatic1111 vs ComfyUI](https://meetrix.io/blogs/fooocus-vs-automatic1111-vs-comfyui/), and the wider field in our roundup of [self-hosted AI image generators](https://meetrix.io/blogs/best-self-hosted-ai-image-generator/).

## Frequently Asked Questions

What is Fooocus AI?

Fooocus is a free, open-source (GPL-3.0) image generator built on Stable Diffusion XL. You type a prompt and it handles most settings itself, closer to Midjourney's simplicity than to node-based tools like ComfyUI, while still running on your own GPU.

Is it Fooocus or Foocus?

Fooocus, with three o's. People often search for Foocus or Focus AI image generator, but the project on GitHub, by lllyasviel, is spelled Fooocus.

What is the Fooocus minimum VRAM?

Fooocus's README lists 4 GB of VRAM on Nvidia RTX 20, 30 and 40 series cards, 8 GB on GTX 10 series cards, and at least 8 GB of system RAM with swap enabled. The recommended g4dn.2xlarge has a 16 GB Nvidia T4, comfortably above that.

How much does Fooocus on AWS cost?

Two parts: the Meetrix software fee, $0.019 per hour on the recommended g4dn.2xlarge, and the EC2 charge for the GPU instance itself, which is most of the bill. Stop the instance when nobody's generating and you stop paying for compute.

Why can't I launch a g4dn instance?

Many AWS accounts start with little or no quota for G-family GPU instances. Request an increase for Running On-Demand G and VT instances in Service Quotas before you launch; approval can take a day.

Can I run Fooocus in Google Colab instead?

Fooocus's README links a Colab notebook, and it's fine for trying the tool. But sessions time out, free GPUs aren't guaranteed, and nothing stays running for a team. A GPU instance you control is the better fit for regular or API use.

Does the AMI include an API?

Yes. It ships with Fooocus-API alongside the web interface, so other applications can generate images over HTTP. The developer guide lists the endpoints.

## Run Fooocus AI on Your Own AWS GPU

Launch Fooocus and Fooocus-API on a g4dn GPU instance in your own AWS account, and stop it whenever you're done generating.

[Deploy Fooocus on AWS Marketplace](https://aws.amazon.com/marketplace/pp/prodview-4xzjmoi4f3ml4)

Meetrix Store

Fooocus

SDXL image generation with a web UI and API

[Deploy it](https://meetrix.io/store/fooocus/)

Meetrix Store New

Deploy what this guide covers, pre-configured.

-    [Fooocus SDXL image generation with a web UI and API](https://meetrix.io/store/fooocus/)
-    [LocalAI OpenAI-compatible text, image and audio models, on CPU or GPU](https://meetrix.io/store/localai/)
-    [OpenWebUI A private ChatGPT-style assistant](https://meetrix.io/store/openwebui/)
-    [Jitsi Meet Self-hosted video calls for 50 to 500 users](https://meetrix.io/store/jitsi-meet/)
-    [RustDesk Remote desktop AMI, a TeamViewer alternative](https://meetrix.io/store/rustdesk/)
-    [Coturn TURN/STUN for WebRTC, no per-minute relay fees](https://meetrix.io/store/coturn/)

[Browse all products](https://meetrix.io/store/)
