No items found.
Start Building
Technical

FLUX vs SDXL: Image Generation API Costs, GPU Requirements, and the Cheapest Way to Run Both in 2026

DALL-E 3 charges $0.080 per image. Running FLUX.1 Dev on an L40S costs under $0.01 at scale. Here is the full cost math, GPU comparison, and a 10-minute setup guide.

Author photo
packet.ai Team
August 11, 2026

Running FLUX.1 Dev on a dedicated NVIDIA L40S on packet.ai costs $0.92/hr (as of August 2026). At approximately 100 images per hour, that works out to under $0.01 per 1024×1024 image, compared to $0.080 per image for DALL-E 3 HD via the OpenAI API.

Key takeaways

  • FLUX.1 Dev on a dedicated L40S at $0.92/hr costs approximately $0.007 per 1024×1024 image (as of August 2026), versus $0.080 for DALL-E 3 HD
  • FLUX.1 Schnell (Apache 2.0, commercial use permitted) on an RTX 4090 at $0.39/hr brings per-image cost below $0.002 at 4-step quality
  • SDXL 1.0 base-only needs as little as 6 GB VRAM; the full base-plus-refiner pipeline needs 14 to 16 GB and fits on an RTX 4090 at $0.39/hr
  • FLUX.1 Dev is non-commercial; for client deliverables use FLUX.1 Schnell (Apache 2.0) or SDXL (Stability AI Community License)
  • The RTX 4090 at $0.39/hr is packet.ai's cheapest GPU for image generation, making it the most economical on-demand GPU cloud option for FLUX and SDXL in 2026
  • Pixel Factory (/pxl) is packet.ai's managed per-image API for FLUX, SDXL, and Stable Diffusion 3.5, launching soon with no infrastructure required
Quick comparisonFLUX.1 DevFLUX.1 SchnellSDXL 1.0 + Refiner
Best GPU on packet.aiL40S ($0.92/hr)RTX 4090 ($0.39/hr)RTX 4090 ($0.39/hr)
VRAM needed~24 GB~24 GB~14 to 16 GB
Approx. cost/image~$0.007~$0.001~$0.012
Commercial licenseNoYes (Apache 2.0)Yes (community)
LoRA / DreamBoothYesYesYes (mature)
Best forPersonal portfoliosVolume, commercialPhotorealistic

Verdict for solo creators

Volume work and commercial delivery: FLUX.1 Schnell on an RTX 4090 at $0.39/hr. Apache 2.0 license, under $0.002 per image, fastest iteration speed.

Client-facing quality: FLUX.1 Dev on an L40S at $0.92/hr. Better prompt fidelity, 28 steps, dedicated GPU with 99.99% SLA.

Photorealistic portraits and product shots: SDXL 1.0 plus refiner on an RTX 4090 at $0.39/hr. Mature LoRA ecosystem, commercial license, 14 to 16 GB VRAM fits comfortably.

The image generation market split into two clear camps in 2026. You either pay per image through a managed API, or you rent a GPU and generate at hourly rates. The math depends almost entirely on monthly volume and whether you need custom model weights. This post gives you the exact cost figures, a full FLUX versus SDXL comparison including LoRA and ComfyUI, and a 10-minute setup guide.

What FLUX and SDXL Are, and Why the Model You Pick Changes Your GPU Bill

FLUX and SDXL are both open-weight text-to-image diffusion models, but they come from different teams with different architectures, licensing terms, and VRAM profiles. Choosing wrong costs you in GPU size or legal risk.

FLUX by Black Forest Labs

Black Forest Labs, founded by the original Stable Diffusion research team, released FLUX.1 in August 2024. The FLUX.1 family uses a flow-matching transformer architecture rather than the latent diffusion UNet that powered SDXL. That architecture change drives FLUX's stronger text instruction following.

VariantLicenseStepsVRAM at 1024x1024Commercial
FLUX.1 ProAPI only (BFL)28HostedYes
FLUX.1 DevOpen-weight, non-commercial28~24 GB FP16No
FLUX.1 SchnellApache 2.04~24 GB FP16Yes

SDXL by Stability AI

Stable Diffusion XL 1.0, released in July 2023, runs as two components: a base model for layout and a refiner for detail. The base alone runs on 6 to 8 GB VRAM. With the refiner, you need 14 to 16 GB. It has the most mature LoRA and ControlNet ecosystem of any open-weight model.

FLUX.1 Schnell vs FLUX.1 Dev: The Choice Solo Creators Actually Face

The two models share the same architecture and nearly identical VRAM requirements, but serve fundamentally different use cases. Getting this wrong costs you quality ceiling or legal exposure.

When to use FLUX.1 Schnell

FLUX.1 Schnell runs at 4 inference steps, roughly 7 times faster than Dev. For social graphics, product mockups, and volume asset generation, Schnell is the correct choice. Apache 2.0 means you can fine-tune it, distribute outputs, and integrate it into products without licensing restrictions. It is the only FLUX variant legal for client work.

When to use FLUX.1 Dev

FLUX.1 Dev produces visibly higher quality on complex compositions requiring precise layout or accurate text rendering. The non-commercial license limits it to personal projects and research. For personal portfolios, reference images, or non-commercial experiments, Dev gives you the best self-hosted quality of any open-weight model as of August 2026.

License check before you deploy

FLUX.1 Dev is non-commercial. Generating images for a paying client, reselling outputs, or shipping a product powered by FLUX.1 Dev violates the license. For commercial use: FLUX.1 Schnell (Apache 2.0) or SDXL (Stability AI Community License). Verify current terms at the Black Forest Labs Hugging Face repository before deploying at scale.

FLUX.1 Schnell LoRA fine-tuning for solo creators

FLUX.1 Schnell supports LoRA fine-tuning via diffusers. A typical style or subject LoRA on 50 to 200 training images takes 30 to 90 minutes on an L40S at $0.92/hr (as of August 2026), adding $0.46 to $1.38 per fine-tune run. You can run 10 style experiments for under $10, and everything you produce is commercially usable under Apache 2.0.

FLUX vs SDXL: Speed, Quality, VRAM, LoRA, and ComfyUI Support

DimensionFLUX.1 DevFLUX.1 SchnellSDXL 1.0 + Refiner
VRAM (1024x1024, FP16)~24 GB~24 GB~14 to 16 GB
Approx. time on L40S~20 to 40 sec~5 to 10 sec~30 to 55 sec
Text instruction followingExcellentGoodModerate
Photorealistic portraitsStrongGoodStrongest
LoRA fine-tuningYesYes (Apache 2.0)Yes (most mature)
ControlNet supportLimited (experimental)Limited (experimental)Full (depth, canny, pose)
ComfyUI supportYes (ComfyUI-FLUX)Yes (ComfyUI-FLUX)Native (most nodes)
Commercial licenseNoYes (Apache 2.0)Yes (community)

If your workflow depends on ControlNet (depth maps, canny edge, human pose), SDXL is the only production-ready option as of August 2026. The L40S at 48 GB gives you enough VRAM to load SDXL base, refiner, and a ControlNet adapter simultaneously.

SDXL has the most mature LoRA ecosystem, with thousands of community adapters on Civitai and Hugging Face. FLUX LoRAs are newer but growing fast. A FLUX.1 Schnell LoRA trained on 100 images runs for approximately 45 to 60 minutes on an L40S at $0.92/hr, costing $0.69 to $0.92 per run (as of August 2026).

Image Generation API Pricing vs GPU Cloud in 2026: The Full Cost Breakdown

ProviderPrice per imageResolutionCustom weights
OpenAI DALL-E 3 HD$0.0801024×1024No
OpenAI DALL-E 3 Standard$0.0401024×1024No
BFL FLUX.1 Pro API~$0.055Up to 2048pxNo
BFL FLUX.1 Schnell API~$0.003Up to 2048pxNo
Midjourney Basic~$0.050 effectiveVariesNo
packet.ai Pixel FactoryLaunching soonFLUX, SDXL, SD3.5Via GPU tier

Third-party prices sourced from publicly published pricing pages as of August 2026. Verify directly at each provider before building cost models. Pixel Factory pricing will be published at packet.ai/pxl at launch.

Quotable figure: Running FLUX.1 Dev on a dedicated L40S at $0.92/hr on packet.ai (as of August 2026), at approximately 100 images per hour, produces each 1024×1024 image at roughly $0.007 to $0.010, approximately 8 to 11 times cheaper than DALL-E 3 HD at $0.080 per image.

Monthly volumeDALL-E 3 HDL40S GPU (est.)RTX 4090 GPU (est.)Saving vs DALL-E 3 HD
50 images$4.00~$0.92~$0.3977% to 90%
200 images$16.00~$1.84~$0.7888% to 95%
1,000 images$80.00~$9.20~$3.9088% to 95%
5,000 images$400.00~$46~$19.5088% to 95%

Which GPU Platform Is Cheapest for FLUX and SDXL? packet.ai vs Alternatives

The table below uses packet.ai's published provider comparison as of August 2026. Dedicated tiers run on single-tenant hardware with guaranteed uptime. Marketplace tiers are preemptible.

PlatformRTX 4090/hrL40S/hrA100/hrTier
packet.ai$0.39$0.92$1.43Dedicated, single-tenant, 99.99% SLA
RunPod$0.69$0.86$1.49Marketplace / spot
Vast.ai$0.35$0.47$1.28Marketplace / preemptible
ShadeFarm$0.60$1.70$3.28Marketplace

Quotable figure: packet.ai's dedicated RTX 4090 at $0.39/hr is the most affordable single-tenant GPU option for FLUX.1 Schnell and SDXL of any published GPU cloud provider as of August 2026, 43% below RunPod's RTX 4090 at $0.69/hr. Source: packet.ai/pricing.

$0.39/hr

RTX 4090 Dedicated
24 GB GDDR6X

$0.66/hr

RTX 6000 Pro Dynamic
96 GB GDDR7

$0.92/hr

L40S Dedicated
48 GB GDDR6

$604/mo

L40S Monthly
$0.83/hr effective

GPUPriceVRAMFLUX.1 DevSDXL + RefinerLoRA trainingBest for
NVIDIA L40S$0.92/hr48 GB GDDR6Yes, nativeYes + ControlNetYes, comfortableProduction, SLA, LoRA dev
NVIDIA RTX 4090$0.39/hr24 GB GDDR6XYes (tight fit)Base onlyYes (small batch)Cheapest path, Schnell, volume
NVIDIA RTX 6000 Pro$0.66/hr dynamic96 GB GDDR7Yes + batchYes + multi-modelYes, large batchMulti-model batch, LoRA experiments
NVIDIA A100 80GB$1.43/hr80 GB HBM2eYes, headroomYes, multi-pipelineYes, full datasetsTraining + inference combined

GPU cloud is the right call when

  • You generate 100+ images per month consistently
  • You need custom LoRA or DreamBooth model weights
  • You use ComfyUI workflows with custom nodes
  • Your images need to stay on your own infrastructure
  • You want to batch large overnight jobs at low cost

Managed API is fine when

  • You generate fewer than 50 images per month
  • You need instant access with zero setup time
  • You are prototyping and volume is unknown
  • You need DALL-E 3's content policy enforcement
  • Your product already integrates a managed image API

Running FLUX or SDXL on packet.ai in Under 10 Minutes

You need a packet.ai account, an SSH key, and Python 3.10+. Commands below target the L40S dedicated tier. Swap to nvidia-rtx4090 for the cheaper option.

Step 1: Deploy the GPU

Log into dash.packet.ai, select NVIDIA L40S, choose Dedicated, deploy. SSH ready in under 5 minutes.

Step 2: Install dependencies

pip install diffusers transformers accelerate torch --upgrade
pip install huggingface_hub sentencepiece protobuf

Step 3: Run FLUX.1 Schnell (commercial, fastest)

from diffusers import FluxPipeline
import torch

pipe = FluxPipeline.from_pretrained(
    "black-forest-labs/FLUX.1-schnell",
    torch_dtype=torch.bfloat16
).to("cuda")

image = pipe(
    "A sleek product shot of a coffee cup on marble, studio lighting",
    height=1024, width=1024,
    guidance_scale=0.0,
    num_inference_steps=4,
    max_sequence_length=256,
).images[0]

image.save("flux_schnell_output.png")

Step 4: Run FLUX.1 Dev (personal use, higher quality)

from diffusers import FluxPipeline
import torch

# Set HUGGING_FACE_HUB_TOKEN before running
pipe = FluxPipeline.from_pretrained(
    "black-forest-labs/FLUX.1-dev",
    torch_dtype=torch.bfloat16
).to("cuda")

image = pipe(
    "A photo of a red fox in a snowy forest, golden hour",
    height=1024, width=1024,
    guidance_scale=3.5,
    num_inference_steps=28,
    max_sequence_length=512,
).images[0]

image.save("flux_dev_output.png")

Step 5: Run SDXL Base + Refiner

from diffusers import StableDiffusionXLPipeline, StableDiffusionXLImg2ImgPipeline
import torch

base = StableDiffusionXLPipeline.from_pretrained(
    "stabilityai/stable-diffusion-xl-base-1.0",
    torch_dtype=torch.float16, use_safetensors=True, variant="fp16"
).to("cuda")

refiner = StableDiffusionXLImg2ImgPipeline.from_pretrained(
    "stabilityai/stable-diffusion-xl-refiner-1.0",
    text_encoder_2=base.text_encoder_2,
    vae=base.vae,
    torch_dtype=torch.float16, use_safetensors=True, variant="fp16"
).to("cuda")

latent = base(
    prompt="Portrait of a woman, soft studio lighting, photorealistic",
    num_inference_steps=40, denoising_end=0.8, output_type="latent"
).images

image = refiner(
    prompt="Portrait of a woman, soft studio lighting, photorealistic",
    num_inference_steps=40, denoising_start=0.8, image=latent
).images[0]

image.save("sdxl_output.png")

FLUX.1 Dev requires a Hugging Face token

Accept the license at the model page and set HUGGING_FACE_HUB_TOKEN before running. FLUX.1 Schnell and SDXL 1.0 load without a gated token. For commercial workloads, use Schnell or SDXL only.

For fine-tuning a LoRA adapter on your own dataset, the GPU fine-tuning cost guide covers per-GPU economics. For managed image generation without any setup, join the notify list for packet.ai Pixel Factory, the per-image API launching soon.

Frequently asked questions

The cheapest self-hosted option is FLUX.1 Schnell on a packet.ai RTX 4090 at $0.39/hr (as of August 2026). At approximately 300 images per hour (4-step inference), per-image cost falls below $0.002. FLUX.1 Schnell is Apache 2.0, covering commercial client work. For very low volumes (under 20 images/month), the Black Forest Labs Schnell API at ~$0.003 per image may be cheaper than a minimum 1-hour GPU session.
No. FLUX.1 Dev and Schnell both require approximately 24 GB VRAM at FP16 for 1024x1024 output. You can reduce VRAM to around 10 to 16 GB with 8-bit or NF4 quantization via bitsandbytes, but this introduces quality degradation. For 8 GB VRAM, SDXL base (6 to 8 GB) is the practical option. On packet.ai, the RTX 4090 at $0.39/hr gives you 24 GB GDDR6X and handles both FLUX and SDXL natively without quantization.
DALL-E 3 HD at $0.080 per image costs $80 for 1,000 images. Running FLUX.1 Dev on an L40S at $0.92/hr (as of August 2026), at approximately 100 images per hour, costs around $9.20 in GPU time. Running FLUX.1 Schnell on an RTX 4090 at $0.39/hr costs under $4. Both GPU estimates assume active batch sessions with no idle time. Benchmark your own pipeline before projecting monthly costs.
Yes, at almost any non-trivial volume. The BFL FLUX.1 Pro API costs ~$0.055 per image; self-hosting FLUX.1 Dev on an L40S at $0.92/hr costs around $0.007 to $0.010 per image (as of August 2026). The crossover is at roughly 20 to 50 images per month. For commercial work, FLUX.1 Schnell on an RTX 4090 at $0.39/hr is both the cheapest and the legally correct option.
On packet.ai, the RTX 4090 at $0.39/hr (as of August 2026) runs the full SDXL base-plus-refiner pipeline. The 24 GB GDDR6X handles both components with VRAM to spare. For SDXL plus a ControlNet adapter simultaneously, the L40S at 48 GB and $0.92/hr gives you the headroom without memory pressure.
Yes. Deploy any dedicated GPU on packet.ai, SSH in, and install ComfyUI plus custom nodes and ControlNet models. The dedicated tier gives you single-tenant access with no scheduling interference. SDXL ControlNet (depth, canny, pose) works natively in ComfyUI. FLUX ControlNet is experimental as of August 2026. Your checkpoints, LoRAs, and adapters have no restrictions.

Last reviewed: August 2026. Deploy the RTX 4090 from $0.39/hr or the L40S from $0.92/hr for FLUX and SDXL inference. Join the notify list for packet.ai Pixel Factory, the managed per-image API launching soon. Full GPU pricing at packet.ai/pricing.

Waste less compute.

Same models. Same API. Fraction of the cost. Start free — no credit card required.

Start Building →

More from the blog