Skip to content

simo8902/FLUX

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

BLACK FOREST LABORATORY - Text 2 Image Generator

#prodbysimo - 112725

Basic Usage

python flux.py -prompt "simple cute forest nature"
python flux.py --width 1920 --height 1080 -prompt "cyberpunk city at night"
python flux.py --help-models

FLUX-2-PRO (fast, efficient, tiered pricing)

python flux.py --model pro -prompt "photorealistic portrait of a woman"
python flux.py --model pro --width 2048 --height 2048 -prompt "luxury watch product photo, studio lighting"
python flux.py --model pro --seed 12345 -prompt "mountain landscape at sunset" --format png

FLUX-2-FLEX (maximum quality, adjustable controls)

python flux.py --model flex -prompt "detailed fantasy artwork with dragons"
python flux.py --model flex --steps 50 --guidance 7.5 -prompt "hyperrealistic close-up of eyes"
python flux.py --model flex --width 1920 --height 1080 --steps 40 --guidance 5.0 -prompt "futuristic spaceship interior"

PRO-1.0 (original model)

python flux.py --model pro-1.0 -prompt "vintage car on empty road"
python flux.py --model pro-1.0 --width 1536 --height 1024 -prompt "architectural rendering of modern house"

PRO-1.1-ULTRA (photo-realistic, raw mode)

python flux.py --model pro-1.1-ultra -prompt "professional headshot, natural lighting"
python flux.py --model pro-1.1-ultra --raw -prompt "extreme close-up of human skin texture, pores visible"
python flux.py --model pro-1.1-ultra --raw --width 2048 --height 2048 -prompt "macro photography of water droplets on leaf"

FLUX-PRO-1.1 (efficient for large-scale jobs)

python flux.py --model flux-pro-1.1 -prompt "corporate office interior design"
python flux.py --model flux-pro-1.1 --width 1920 --height 1080 -prompt "e-commerce product photography, white background"

PRO-1.0-FILL (inpainting / outpainting)

Requires a mask file.

python flux.py --model pro-1.0-fill --mask-image mask.png -prompt "replace background with tropical beach"
python flux.py --model pro-1.0-fill --mask-image mask.png --image original.jpg -prompt "remove object and fill with grass"
python flux.py --model pro-1.0-fill --mask-image face_mask.png --image portrait.jpg -prompt "change facial expression to smile"

KONTEXT-PRO (editing, consistency)

python flux.py --model kontext-pro -prompt "modern minimalist logo design"
python flux.py --model kontext-pro --image base_character.jpg -prompt "same character but in medieval armor"
python flux.py --model kontext-pro --image scene.jpg -prompt "add dramatic storm clouds to sky"

KONTEXT-MAX (premium, best typography)

python flux.py --model kontext-max -prompt "professional poster with text 'INNOVATION 2024' color #ff0000"
python flux.py --model kontext-max -prompt "magazine cover layout, bold typography 'FUTURE' in color #0066cc, modern design"
python flux.py --model kontext-max --image logo_draft.jpg -prompt "refine typography and add gradient background #ff6600 to #ffcc00"

HEX Color Control

python flux.py --model kontext-max -prompt "Abstract geometric artwork with gradient from color #ff0066 to color #00ccff"
python flux.py --model flex -prompt "Modern website hero section, background color #1a1a1a, button color #00ff88, text color #ffffff"
python flux.py --model kontext-max -prompt "Corporate branding mockup, primary color #2563eb, secondary color #f59e0b, clean layout"

Advanced Workflows

High-resolution consistency

python flux.py --model pro --width 2048 --height 1536 --seed 42 -prompt "cinematic landscape, golden hour"

Multiple generations with the same seed

python flux.py --model flex --seed 999 --steps 50 -prompt "character design, fantasy warrior"
python flux.py --model flex --seed 999 --steps 50 -prompt "character design, fantasy mage"

Iterative editing

python flux.py --model kontext-pro -prompt "base sci-fi character design" --seed 100
python flux.py --model kontext-pro --image flux_kontext-pro_20241127_150000.jpeg -prompt "add futuristic armor details" --seed 100
python flux.py --model kontext-max --image flux_kontext-pro_20241127_150030.jpeg -prompt "refine details and add glowing elements color #00ffff" --seed 100

Safety-focused generation

python flux.py --model pro --safety 6 --width 1920 --height 1080 -prompt "artistic nude sculpture, classical style" --format png

Typography-focused work

python flux.py --model kontext-max -prompt "Minimalist poster: title 'SIMPLICITY' in Helvetica, color #000000, white background"
python flux.py --model kontext-max --width 1080 --height 1920 -prompt "Instagram story template, header 'SALE 50% OFF' color #ff0000, modern layout"

Batch Generation

Variations

for i in {1..5}; do
    python flux.py --model pro -prompt "cute forest creature, variation $i"
done

Compare models

python flux.py --model pro -prompt "sunset over ocean" --seed 777
python flux.py --model flex -prompt "sunset over ocean" --seed 777
python flux.py --model pro-1.1-ultra --raw -prompt "sunset over ocean" --seed 777

Error Handling

Missing required parameter

python flux.py --model pro-1.0-fill -prompt "fill background"
# Error: pro-1.0-fill requires --mask-image parameter

Invalid model

python flux.py --model fake-model -prompt "test"
# Error: tf is this model? 'fake-model'

File not found

python flux.py --model kontext-pro --image nonexistent.jpg -prompt "edit this"
# Error: Image file not found: nonexistent.jpg

About

BLACK FOREST LABORATORY T2I Generator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages