Using Flux.1 [dev] Locally for Commercial Use! How to Use Fal.ai's API Node

![A photorealistic illustration of a man wearing sunglasses, generated by Flux.1[dev]. The background is a dimly lit indoor setting, with detailed rendering of the man's face and sunglasses.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiYcHDChK51T-laAV1jcVbYlfqC3OMd0uyKoIAbJDJW4kjpiSMCEw0vi5NM3DN54cQ-Q6uLyyHO1dWJKs4MD0YwhzbDJA-TcejUI6emfa3OtJOTCR3jCIOzjX94IprmopPMbh_2XfVAqDbH53Jd0Coffd0GhSTFuvgHd1E0AtIyTQ5d3Q/w800-e90-rw/Flux1-dev_00020_close%20up.png)
- Fal.ai’s API enables commercial use of Flux.1[dev].
- Online generation is fast.
- Quality remains a challenge.
Introduction
Hello, I'm Easygoing.
This time, we'll explore how to create illustrations for commercial use with the Flux.1[dev] model.
![A photorealistic illustration of a Japanese woman in a traditional kimono, generated by Flux.1[dev]. The background is simple, emphasizing the woman's face and kimono details.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjK2dXW9H0zISluSIBALJapJXsD3L2UGbuZD73OlFhRgjvCYV-RG2UX29z3uiTSkRs6cu0W4vknqro4dtzKtOUSuaSSF5MAZYNNNrNigR_OIURTf0CvuR-cjcooak-iYDNRKbH4tQ1982kXfogvnqCHikaJGXd4-5cY8V_6_h_7kDhQRA/w800-e90-rw/Flux1-dev_00010_.png)
Flux.1[dev]: A High-Quality Photorealistic Model
Flux.1[dev] is an AI model that emerged in August 2024, capable of generating high-quality photorealistic illustrations.
Download numbers for major photorealistic models on Hugging Face over the past month
Although about a year has passed since its debut, Flux.1[dev] continues to enjoy broad support as a high-quality photorealistic model.
Two Types of Licenses for Flux.1[dev]
Flux.1[dev] comes with two types of licenses:
Flux.1[dev] Non-Commercial License
The Flux.1[dev] model distributed for free on Hugging Face is under a non-commercial research license.
The Flux.1[dev] Non-Commercial License has had ambiguous provisions regarding the commercial use of outputs. Initially, it included wording that could be interpreted as allowing commercial use of outputs, but on June 28, 2025, this section was removed in a license revision, only to be reinstated the next day following user inquiries.

This section remains (likely intentionally) ambiguous, and Black Forest Labs, the company behind Flux.1[dev], may not explicitly permit commercial use of outputs, so caution is advised.
For delivering illustrations for commercial purposes, it’s safer to avoid using the Flux.1[dev] Non-Commercial License.
Commercial License for Service Providers
In contrast, the license starting at $999/month is designed for AI service providers. Platforms like Fal.ai and Replicate offering Flux.1[dev] image generation services explicitly allow commercial use of outputs.
When delivering illustrations for commercial use, this commercial license ensures you can use Flux.1[dev] outputs with confidence.
Using Both Licenses!
When creating AI illustrations, you often need to generate multiple images and select the best ones. Generating everything with the paid commercial license can be inefficient.
So, I devised a method to use both licenses.
![A photorealistic illustration of a woman in a red dress, generated by Flux.1[dev]. The bright outdoor background highlights the vibrant color of the dress and the woman's pose.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgXWNpuZKbeSylxH8RD7sVmwhwclhqXBSOijrXbcSnOlxT8Ps_7B2Y4pb5aTR0d8E2VukoDgiH3BAnutmdHGhMV6jUz_P2O3INWrldxCdzYj1462KuqNEGP4VMvoLbE9YGjW53zypAaUTssfsi_9rotP_f2hCIvHOa5qwhFfhascVyGog/w800-e90-rw/Flux1-dev_00017_.png)
Specifically, I use the non-commercial license for the “gacha” phase—adjusting prompts or seeds—and once a satisfactory illustration is achieved, I use the same prompt and seed with the commercial license to generate the final illustration.
Workflow!
Here’s the workflow I used:
![A diagram showing the Flux.1[dev] image generation workflow using Fal.ai's API, comparing local and online generation processes with node connections displayed.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitX4zNZJd2NXrQ-OeepeJ4kOcldqBImglpWPCwjiwOtZQ5qd-93IwZUyAEMWDoNJpSoTEO423WlMUBmzo0aEvw9j1-Gsp6GJCDvelMIzH8NznyWvxoxUKLdqqv0CJgjxTKHznh1XSBrDfOU78AqLetefr8oRhipgcUnuSWNCgG-KoLHw/w800-e90-rw/SDXL_Detailer_20250726.png)
The upper-right part of the workflow represents standard local Flux.1[dev] generation.
The lower-right part uses the Fal API Flux Dev custom node to run Flux.1[dev] online via Fal.ai’s API.

Standardizing on the Original Flux.1[dev] Model
To ensure consistent results between local and online generation, I standardized on the original Flux.1[dev] model, including the text encoder.
Models Used
- Text Encoder
- Flux.1[dev] Model
- VAE
Since online services likely use FP8 format to save VRAM and computational resources, I also configured the local setup to use FP8 format in ComfyUI.
ComfyUI Launch Settings
--fp8e4m3fn-unet
--fp8e4m3fn-text-enc
Comparing Actual Illustrations!
Let’s compare illustrations generated locally and online.
City Nightscape
![A local Flux.1[dev] illustration of a city nightscape along a river, with detailed building lights and river reflections.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZuHmI-ESsiDNVUjB7qLVpFA9dilkK17RL_jexYdU7agGuQ1dIXXoPwaFM5rZMziiQ2YoFWRpVjVgDVTUV2H85cftksEDGucpcV76C6LxPpK0W8g_hMeEK7zP7v5fYQGiB9OKB-rXj552LqT31I3ynM-LW_OK0YsgOw-_DF0v9mqNWFQ/w800-e90-rw/Local_00007_.png)
![A Fal API node Flux.1[dev] illustration of a city nightscape along a river. Compared to local, details are simplified, and the image appears whiter.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi7VYuquYyghlAOuvNVLIzIavBhTf8lRdSHhYt8_9t9WkS4vI5cCrmXO9KiFlhd0NnaCzcS85ACzwVsohceJuerxGbQgVNBA_T0dCX4_5QipC0oRkgCIZhfcJc5BH28qS9pla1x3T1wKP1Bvz41rI3QlGCDICvzey6GSbISXGP8fg8Jqg/w800-e90-rw/Fal_API_00006_.png)
Woman in a White Shirt
![A local Flux.1[dev] photorealistic illustration of a woman in a white shirt. The simple background highlights her expression and clothing.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh-tVdZF0YyiThPffZF0FYjx5VVnPYBLT0AQcWMlX48XuleQcZP_pWgidSggxQCoWQ6M9Me4xcLwLt04OUbJ3l2qHK7rrdJyFoQxJg3vWo2DKZgHN8-TM9QU3mYuAHce0wHwg1opiUFqmPrvcPm95Xp0JXvyHHrQnBozVuyjn7FhD7qNQ/w800-e90-rw/Local_00011_.png)
![A Fal API node Flux.1[dev] photorealistic illustration of a woman in a white shirt. Compared to local, details are fewer, and the image appears blurrier.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEij1Odhyphenhyphen_uxhyofz3VRH_O2I_peoyY6l8Az_wEHXX3DEggWJ7hyIl1pPi1xILvTay-5EUoKJ3gW2xGqm2CHTnMTBw5b6RY9MiaX2GkZEXjV02scwnzlHj0KWV3M0fgUuUYC5b1seaRe2g04g4Zn0dmUaN3iI8pB6Dmx5TlN7t2bCr5QYQ/w800-e90-rw/Fal_API_00010_.png)
Office with Greenery
![A local Flux.1[dev] illustration of a modern office with green plants, with detailed rendering of desks, chairs, and plants.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEinEBs9cK5x7h36Nm8gDg9y_PeZY-QZ6iyAZ7R3y0rfm0jIzNbA7t5O7hSPCAmkHTIR_l5Ca1zYkO1VpCMIwXxvAPtZDXC0vFWFu9FgOS6XfTrVkDNzFAPBedX-LT0YjFwXAa_2IjKgByav_0QE7sBuHUCL-uAd1V59-MMEolaffFE7Fw/w800-e90-rw/Local_00021_.png)
![A Fal API node Flux.1[dev] illustration of an office with green plants. Compared to local, the composition is simplified, and the image appears whiter.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgLmt7or5mtFVYCW3HcZSjkPYd3Z52IPWzSXVXIb-G0AMYmrDFpjRen4fckPdGAXgF3Y4xl2iVxC67CMeSYICTQyx-s4HXGW2WRECur2_NV_EaYAQB9xDWMyIfBCw9nj_GhvM5M72MpKG24rYCCGsc8G92paCv84dnpC6X-c_CNb-gYyA/w800-e90-rw/Fal_API_00019_.png)
Online Flux.1[dev] Has Lower Image Quality!
Online Flux.1[dev] illustrations are significantly lower in quality compared to local ones.
Online images tend to have simplified, near-symmetrical compositions, fewer details, and a hazy, whitish appearance.
This is a phenomenon observed in previous tests when computational precision is reduced.
Both local and online setups used the same model and FP8 format, so why the difference?
Online Generation Is Extremely Fast!
Comparing generation times, local generation takes 1–2 minutes per image, while online generation completes in just a few seconds.
Fal.ai’s GPU service, primarily for business use, provides NVIDIA H100 GPUs, which are about three times more powerful than the consumer-grade RTX 4090. Even so, the generation speed is remarkably fast.
Is Online Using Full Optimization Techniques?
Image generation AI employs various optimization techniques, such as caching, to speed up processing.
Caching (WaveSpeed)
Caching (TeaCache) and Sage Attention
These techniques reduce computational load and speed up generation but often come at the cost of lower image quality, and controlling them is challenging.
I suspect online generation uses these optimization techniques extensively to reduce computational load.
![A Fal API node Flux.1[dev] photorealistic illustration of a woman wearing sunglasses, generated with 20 steps, appearing blurry and incomplete.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidccuxTC6M4hlIMJn8bINUGBWA3cOrl8xFlYcUYsH5t0HT8Y1gnYn7H-J12evjpgdVBMFY25Ip5-B9meGDxGEe7rkiRpOurGesX5JMFmOWpTpAOK1RWhOhV8aNOpah_1GczIfH_J7KSzWQfQoQnBzYG2XqBTjromVRgevYxI3qewo2dA/w800-e90-rw/Fal_API_00013_.png)
Even with a 20-step setting, online generation sometimes produces clearly incomplete illustrations, likely due to caching, making it difficult to achieve local-level quality.
Comparing with the Highest-Precision Local Model!
Now, let’s compare online results with illustrations generated locally using the highest-precision model, with the same prompt and seed.
- Text Encoder
- Flux.1[dev] Model
Anime-Style Woman in a Kimono
![A local Flux.1[dev] anime-style illustration of a woman in a kimono, with a simple background and detailed kimono patterns and expression.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhvRtIkFGp6FXTcWYqrp2qA9KxyXM2r8JKr2MoGwRbvmvKxZ6JNOgWE7hGYgyyhGRtVvgrEWqHUtjFEeTtEOCKoojgi-rrMTEbJbgBsu9hzIUHHx49CAY0OBuDLE5ol4hICMIk-HfAancx2A21DmmWd9wumlsxZR7082LRJvKxecoOk8g/w800-e90-rw/Local_00024__cleanup.png)
![A Fal API node Flux.1[dev] anime-style illustration of a woman in a kimono. Compared to local, details are fewer, and the image appears whiter.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhEg6tCfgRTLi2Uqxrb30QDvs-fBYb1aw-hrKelKL5egRnCh2AhR34FaW9cFrZaLTcRmbihXGLyhv1aswPmSqg5reihHJaWgDhHxOk3fE4t3ezqryyy0YONBTpXFhYkytgdmza3RXKpJAMJ89ar4svQ-gNepJYigSE-6cFRzg4x5PhIQg/w800-e90-rw/Fal_API_00023_.png)
Woman in a Black Shirt
![A local Flux.1[dev] anime-style illustration of a woman in a black shirt, with a simple background and vivid shirt texture and expression.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi5lN-TEu82vFWTn37m-OXtbCWSGxabHK5FlXwbdqSo1X53ydDNmY0iiI7yhByttnmnElXNK444gi9_cRnKJEMXmOS4_Ff4MAjk5G64eXVZwcAlQd5WHQcr5IHEvLjE1KfroTgjEsga9WWu7bDJNIzfsuq4_gW9GMN47UqAR8_H9nEHtQ/w800-e90-rw/Local_00027_.png)
![A Fal API node Flux.1[dev] anime-style illustration of a woman in a black shirt. Compared to local, details are simplified, and the image appears blurrier.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgs90xmuk0Wv_9ibMZn1YAUBgJjchkuBptaRC6v150qlUnWzu76BblBByAVATs5rTyNaXWWM3RNu0rEJC688JUmPoTOPBvoM4NSRcB6raSjqmApQs3K0OxH9tg0UQFI-gCb7zteaecTodwqp8StlOGifdzHJ9vbo-F2dO4DOgnGAHIXgg/w800-e90-rw/Fal_API_00026_.png)
Local illustrations not only have higher quality but also depict characters with more convincing presence.
High-precision models and text encoders seem to capture not just the words in the prompt but also the contextual meaning, translating it into the illustration.
How to Use Fal.ai’s API
Here’s how I used Fal.ai’s API.
Signing Up for Fal.ai
To use Fal.ai, you need to sign up.


You can sign up using GitHub, Google, or an enterprise domain.
Upon registration, you receive $1.00 in free credit.
Issuing an API Token
After signing up, go to the API Keys tab from the homepage and click “Add key.”


Enter a name for the key, click “Done” to create it, and copy the API key.
Installing the ComfyUI-Fal-API-Flux Custom Node
Next, launch ComfyUI locally and install the ComfyUI-Fal-API-Flux custom node.

After installation, a config.ini file is created in the custom_nodes\comfyui-fal-api-flux
folder. Paste the API key into this file:
[falai]
api_key = 🔵🔵🔵🔵🔵
Then, run the workflow to generate Flux.1[dev] illustrations online.
API usage fees vary by computational load but are generally around $0.025 per run, which is very reasonable.
Be sure not to share the API key or config.ini file with others.
Conclusion: Online Quality Is a Challenge
- Fal.ai’s API enables commercial use of Flux.1[dev].
- Online generation is fast.
- Quality remains a challenge.
The Flux.1[dev] model excels in photorealistic illustrations, but its licensing is often debated.
This time, I aimed to create high-quality, commercially usable illustrations using Fal.ai’s Flux.1[dev], but unfortunately, I couldn’t replicate local quality.
![A photorealistic illustration of a woman in a red dress looking at the viewer in a city setting, generated by Flux.1[dev]. The urban background has slightly simplified details.](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgG8LRPHjZ6wJICc5KWGpsWAqhmoorf7dvUExgxoM0DRG0lKZ9DXesl051pNxztDRUGYiMY-0Gr9NyrTyi1JLYZ_zRpFPh1lIjBa3a8POSZe5oPViOtZdhRi5eXvluMsbX4hD_Jz-s2zOYStVEdw7hyUUFspge8UKFY2rM6HD2CjeGq_w/w800-e90-rw/Flux1-dev_00019_.png)
It would be ideal if online Flux.1[dev] allowed choosing compression formats or optimization settings, but such options are currently unavailable.
I’ll continue exploring ways to generate high-quality illustrations for commercial use.
Thank you for reading!