Self-hosted AI image generation

Self-hosted Fooocus 2.0 with API on AWS

Generate images from a simple prompt with Fooocus, running on a GPU instance in your own AWS account. The pre-configured AMI includes the web interface and a REST API, billed per hour rather than per user.

  • Web UI and REST API
  • GPU instance in your account
  • No per-user fees
Fooocus AI image generator deployed on AWS by Meetrix

What is Fooocus?

Fooocus is a GPLv3 image generator built on Stable Diffusion XL. It hides the usual parameters behind a single prompt box and tunes the technical settings for you, so you get good images without learning a node graph or dozens of sliders.

What's in the Meetrix Fooocus AMI

The AMI ships Fooocus 2.0 with its API already configured on a GPU-ready Ubuntu image.

How to set up a self-hosted Fooocus server

  1. Check your GPU quota

    Make sure your account has enough vCPU quota for a g4dn instance in your region.

  2. Launch the stack

    Subscribe on AWS Marketplace and launch the CloudFormation stack. Allow 5-10 minutes.

  3. Open the dashboard

    Use the DashboardUrlIp from the stack outputs, or point your domain at the PublicIp and use that.

  4. Generate or call the API

    Type a prompt in the web UI, or send a text-to-image request to the API.

Deploy on AWS

Fooocus vs ComfyUI vs AUTOMATIC1111

FooocusComfyUIAUTOMATIC1111
LicenceGPLv3GPL-3.0AGPL-3.0
InterfacePrompt-only, automated tuningNode graph editorFull manual parameters
Hosted APIIncluded in the Meetrix AMIHeadless API modeThrough extensions
Learning curveLowHighModerate
Active developmentYesYesNo major release since mid-2024

ComfyUI is usually first to support new model architectures such as Flux.1. Read Fooocus vs Automatic1111 vs ComfyUI →

Video: deploy Fooocus on AWS

Fooocus FAQ

What is Fooocus?

An AI image generator built on Stable Diffusion XL that turns a simple prompt into an image, handling the technical settings for you.

Which instance should I choose?

g4dn.2xlarge is recommended. A GPU is required, so the listing supports g4dn instance types only.

Does it include an API?

Yes. The AMI includes the Fooocus API with text-to-image and model-list endpoints; the full reference is in the Fooocus-API documentation on GitHub.

How do I open the dashboard?

Use the DashboardUrlIp from the stack outputs, or point your domain at the server and use the domain.

What if I see a 502 Bad Gateway error?

Fooocus is still starting. Wait about 5 minutes and refresh.

What if SSL does not set up automatically?

That happens when the domain is not on Route 53. SSH in and run sudo /root/certificate_generate_standalone.sh.

Is Fooocus available on Google Cloud?

Not at the moment. The Meetrix Fooocus image is on AWS Marketplace only.

How do I upgrade?

Back up your server data, remove the old stack and launch the new version from AWS Marketplace.

Fooocus guides and articles

Need a hand with Fooocus?

We build and run self-hosted AI infrastructure every day, from GPU sizing to API integrations. Tell us what you need.

Contact us