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

Published 3 November 2026, updated 7 November 2026. 5 min read. For: product teams generating images at volume who want their own image endpoint.

## Key facts

- FLUX.2-klein-9B needs about 42 GB to serve, so one 48 GB L40S or RTX A6000 runs it as your own image endpoint on vLLM-Omni.
- 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.
- The FLUX repositories are gated: accept the licence on Hugging Face, then pass a read-only token as hf_token, which Arrakis never stores.
- Deploy FLUX.2 in one POST /v1/deploy call with engine omni, and the endpoint answers at /v1/images/generations like the OpenAI images API.
- An image endpoint bills the GPU's hourly price, nothing per image: FLUX.2-klein-9B always on an L40S is 720 x the live price a month.

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](/compare/fal-ai.html.md)). 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](/deploy.html.md). Memory rules for every kind of model are in the [GPU memory guide](/guides/gpu-memory.html.md).

## FLUX.2 or Qwen-Image

- **FLUX.2-klein-9B** fits the smaller card: 42 GB on a 48 GB [L40S](/gpus/l40s.html.md), [the live price](/gpus/l40s.html.md) 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](/gpus/a100.html.md) at [the live price](/gpus/a100.html.md) or an [H100](/gpus/h100.html.md) at [the live price](/gpus/h100.html.md). 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](/gpus/rtx-5090.html.md) ([the live price](/gpus/rtx-5090.html.md)), 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:

```sh
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:

```sh
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](/gpus/rtx-4090.html.md). 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:

- **Always on** behind an app: 720 x [the live price](/gpus/l40s.html.md) a month.
- **A nightly batch** of 6 hours: 180 x [the live price](/gpus/l40s.html.md) a month.

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](/blog/comfyui-cloud-gpu.html.md)). Video has its own sizing: [Wan 2.2 GPU requirements](/blog/wan-2-2-video-generation-gpu.html.md).

## 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](/console/).

New here? Use code [FIRST25](/console/?code=FIRST25) for $25 off your first deposit of $50 or more, until 31 December 2026.

## Rent the GPUs in this post

- [L40S](/gpus/l40s.html.md): [the live price](/gpus/l40s.html.md) per GPU-hour now; rent in the console (/console/#/gpus?gpu_type=L40S) or with the MCP tool rent_gpu.
- [RTX A6000](/gpus/rtx-a6000.html.md): [the live price](/gpus/rtx-a6000.html.md) per GPU-hour now; rent in the console (/console/#/gpus?gpu_type=A6000) or with the MCP tool rent_gpu.
- [A100](/gpus/a100.html.md): [the live price](/gpus/a100.html.md) per GPU-hour now; rent in the console (/console/#/gpus?gpu_type=A100) or with the MCP tool rent_gpu.
- [H100](/gpus/h100.html.md): [the live price](/gpus/h100.html.md) per GPU-hour now; rent in the console (/console/#/gpus?gpu_type=H100) or with the MCP tool rent_gpu.

## 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

- [GPU price per GB: the metric that matters, from live prices](/blog/gpu-price-per-gb-memory.html.md): GPU price per GB of memory, from live hourly prices: the formula, a table for ten GPUs, break-even ratios, a one-line script, and when the metric misleads.
- [Qwen3.8 27B GPU Requirements: One GPU Is Enough](/blog/qwen-3-8-27b-gpu-requirements.html.md): Qwen3.8 27B GPU requirements: 67 GB in 16-bit, 33 GB in 8-bit, 17 GB in 4-bit. One A100, L40S or RTX 4090 runs it. Pick the card, deploy in one call.
- [Gemma 4 31B Self Host: One GPU, One API Call](/blog/gemma-4-31b-self-host.html.md): Self host Gemma 4 31B on one rented GPU: 75 GB in 16-bit fits an A100 80 GB, 19 GB in 4-bit fits an RTX 4090. Your own endpoint and key, by the hour.

Every post: [/blog](/blog.html.md). RSS: [/blog/feed.xml](/blog/feed.xml).
