Black Friday: 10% off every GPU you launch, no code needed. Until 30 Nov. Rent a GPU

Arrakis / Blog / Images, video, speech and robots

FLUX.2 GPU Guide: Image Generation as Your Own Endpoint

Pick your FLUX 2 GPU by memory: FLUX.2-klein-9B takes about 42 GB to serve, so one 48 GB L40S or RTX A6000 runs it as your own image endpoint on vLLM-Omni, billed by the hour however many pictures it makes. Qwen-Image needs about 70 GB: one 80 GB A100 or H100.

Hosted image APIs such as fal.ai bill most models per output (its own pricing pages, checked 31 October 2026, in Arrakis vs fal.ai). A GPU of your own costs its hourly price whatever it makes. Steady generation favors the GPU; a few pictures a day favor paying per output. If you are in the first group, read on.

The image models we size, and the card each needs

Model What it does GPU memory One GPU that holds it Engines Gated
black-forest-labs/FLUX.2-klein-9B Text to image and editing 42 GB L40S or RTX A6000 (48 GB) vLLM-Omni Yes
black-forest-labs/FLUX.1-dev Text to image 41 GB L40S or RTX A6000 vLLM-Omni, SGLang Yes
black-forest-labs/FLUX.1-schnell Fast text to image, 1 to 4 steps 41 GB L40S or RTX A6000 vLLM-Omni, SGLang Yes
Qwen/Qwen-Image-2512 Text to image, strong at text in pictures 70 GB A100 80 GB or H100 vLLM-Omni, SGLang No
Qwen/Qwen-Image-Edit-2511 Image editing 70 GB A100 80 GB or H100 vLLM-Omni, SGLang No
Tongyi-MAI/Z-Image-Turbo Fast text to image, 8 steps 25 GB RTX 5090 (32 GB) vLLM-Omni, SGLang No

The memory is the whole pipeline in 16-bit, every part of it, plus headroom, the way the console's Models page sizes it. The same table, with live prices, is on the deploy page. Memory rules for every kind of model are in the GPU memory guide.

FLUX.2 or Qwen-Image

  • FLUX.2-klein-9B fits the smaller card: 42 GB on a 48 GB L40S, the live price an hour right now. It makes images and edits them. Its licence is listed as "other" and the repository is gated, so accept the terms on Hugging Face first and read them before commercial use.
  • Qwen-Image-2512 needs an 80 GB card: an A100 at the live price or an H100 at the live price. It is the one we list for text inside pictures: posters, labels, mockups. Apache 2.0, not gated, no token needed.
  • Z-Image-Turbo is the small one: 25 GB on a 32 GB RTX 5090 (the live price), fast text to image in 8 steps. Apache 2.0, not gated.

Other FLUX.2 repositories are not in our list. For any of them, check the model card, or run the free plan: it reads the repository's size from Hugging Face before you rent anything.

Deploy FLUX.2 as an endpoint

One call. vLLM-Omni runs the model on one GPU out of the box, and the Hugging Face token goes to the machine only:

Shell
curl -X POST https://arrakis.goodailabs.com/v1/deploy \
  -H "Authorization: Bearer ark_..." \
  -H "Content-Type: application/json" \
  -d '{"model": "black-forest-labs/FLUX.2-klein-9B", "engine": "omni",
       "hf_token": "hf_...", "termination_hours": 4}'

Without a node_id, Arrakis rents the best-ranked machine that holds the model. Send the same body to POST /v1/deploy/plan first to see every option and its price, for free. The deploy's answer carries the endpoint and its own API key. The engine downloads the pipeline, and a few minutes later the endpoint answers at /v1/images/generations.

Call it like the OpenAI images API:

Shell
curl http://<endpoint>/v1/images/generations \
  -H "Authorization: Bearer sk-..." \
  -H "Content-Type: application/json" \
  -d '{"model": "black-forest-labs/FLUX.2-klein-9B", "prompt": "a lighthouse at dawn",
       "size": "1024x1024", "response_format": "b64_json"}'

The editing models also answer at /v1/images/edits. Qwen-Image deploys the same way: "model": "Qwen/Qwen-Image-2512" with "engine": "omni" or "sglang", and no token. Paste your own engine options in extra_args if you have tuned them; they reach the engine word for word, without a shell. Before you write any code, the console's Models page has a try box for image models: type a prompt, get a picture back from your own GPU.

The token, safely

The FLUX repositories are gated. Accept the licence on Hugging Face with the account whose token you will use, then pass a fine-grained, read-only token as hf_token. It goes to the machine as HF_TOKEN, and Arrakis never stores it. The machine's host can read what runs on it, which is why read-only matters. Qwen-Image and Z-Image need no token at all.

What an hour buys

We do not publish our own image speeds. For a rough yardstick, published GPU guides put FLUX.1 dev at about 20 seconds per 1024x1024 image on an RTX 4090 (about 28 steps). That is about 1,000 images in 5.6 hours: six started hours, 6 x the live price. Treat it as rough. That figure comes from a 24 GB card, which suits the ComfyUI route; the endpoint above serves the full 16-bit pipeline on a 48 GB card, and your model, steps and size will move the number.

Your own figure takes one hour to get. Time a batch, then divide: the price per hour over images per hour is your price per image. The monthly bill depends on the schedule, not the image count. For FLUX.2-klein-9B on an L40S:

Two habits keep the price per image low:

  • Batch the work. An endpoint that waits between requests bills the same hour. Queue prompts and send them back to back.
  • Remove it on time. termination_hours ends the machine and the billing. Each started hour counts in full, so stop at the hour, not a minute after.

Endpoint or ComfyUI?

The endpoint suits an app that calls an API. For hands-on work with nodes, LoRAs and previews, rent the ComfyUI app instead: it opens in your browser from the machine's Open button, with ComfyUI-Manager, for FLUX, Qwen-Image and Wan 2.2 (ComfyUI on a cloud GPU). Video has its own sizing: Wan 2.2 GPU requirements.

Ship your image endpoint

Deploy FLUX.2 or Qwen-Image from the console's Models page or the API, and pay for the GPU, not the pictures. Start in the console.

New here? Use code FIRST25 for $25 off your first deposit of $50 or more, until 31 December 2026.

Rent the GPUs in this post

New here? Use code FIRST25 for $25 off your first deposit of $50 or more, until 31 December 2026.

Lowest price now, per GPU-hour. Billed per started hour; stop any time.

Questions

How much GPU memory does FLUX.2 need?
The FLUX.2 model in our list, FLUX.2-klein-9B, needs about 42 GB to serve, which fits one 48 GB L40S or RTX A6000. For any other FLUX.2 repository, check the model card or run the free deploy plan, which reads its size.
Which engine serves FLUX.2 on Arrakis?
vLLM-Omni (engine omni). FLUX.1, Qwen-Image and Z-Image also run on SGLang Diffusion.
Do I need a Hugging Face token for FLUX?
Yes. The FLUX repositories are gated: accept the licence on Hugging Face, then pass a read-only token as hf_token. It goes to the machine only and Arrakis does not store it.
How much GPU memory does Qwen-Image need?
Qwen-Image-2512 and Qwen-Image-Edit-2511 need about 70 GB each, one 80 GB A100 or H100. Both are Apache 2.0 and not gated.
Is an image endpoint on Arrakis billed per image?
No. You pay the GPU's hourly price from when the machine runs until you stop it or its removal time, with nothing per image.

More from the blog

Every postRSS feed