Skip to main content

DashAI flux Model for DashAI

Project description

Flux Model Plugin for dashAI

This plugin integrates Black Forest Labs' FLUX.1 text-to-image models into the dashAI platform using the Hugging Face diffusers backend. It enables high-quality image generation from text prompts and supports private access using a Hugging Face API token.

Included Models

1. FLUX.1 dev

Guidance-distilled model for high-quality generation, based on black-forest-labs/FLUX.1-dev.

2. FLUX.1 schnell

Timestep-distilled model optimized for fast, few-step generation, based on black-forest-labs/FLUX.1-schnell.

Both models are rectified-flow transformers, designed for high-quality image generation and compatible with CPU or GPU inference through diffusers.

About Flux

FLUX.1 is a family of state-of-the-art text-to-image models from Black Forest Labs, built on a rectified-flow transformer architecture.

Key features of FLUX.1 models:

  • Rectified-flow transformer: strong prompt adherence and image quality
  • Two variants: dev for quality, schnell for speed
  • Text-conditioned: images are guided by natural language prompts
  • Negative prompting: steer the model away from unwanted elements
  • Open weights with access control via Hugging Face

FLUX.1 is designed for deployment on desktops and cloud infrastructure, making advanced image generation more accessible.

Features

  • Image generation from text prompts
  • Both dev and schnell variants selectable at runtime
  • Reproducible generation via fixed random seeds
  • Automatic login to Hugging Face to access gated models
  • Configurable generation parameters:
    • negative_prompt: elements to avoid in the image
    • num_inference_steps: number of denoising steps
    • guidance_scale: how strongly the model follows the prompt
    • width / height: output image dimensions
    • num_images_per_prompt: number of images per prompt
    • device: detected GPU (e.g. "GPU 0: NVIDIA RTX 3090 - Compute Capability 8.6") or "CPU"

Model Parameters

Parameter Description Default
model_name FLUX.1 model ID from Hugging Face "black-forest-labs/FLUX.1-dev"
huggingface_key Hugging Face API token to access restricted models Required
negative_prompt Text prompt for elements to avoid in the image "" (optional)
num_inference_steps Number of denoising steps (higher = better quality, slower) 15
guidance_scale How strongly the model follows the prompt 3.5
seed Random seed for reproducibility (negative = random) -1
width Width of the generated image (multiple of 8) 512
height Height of the generated image (multiple of 8) 512
num_images_per_prompt Number of images to generate per prompt 1
device Inference device — a detected GPU by name (e.g. "GPU 0: NVIDIA RTX 3090 - Compute Capability 8.6") or "CPU" First detected GPU if available, else "CPU"

Requirements

Access Notice: You must accept the model terms on Hugging Face and use a valid Hugging Face token. This repository is publicly accessible, but gated. You need to agree to share your contact information to access the model files.

Notes

This plugin uses the Hugging Face diffusers pipeline for text-to-image generation.

The models are pretrained for inference and are not designed for fine-tuning through this plugin. Image dimensions must be multiples of 8.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dashai_flux_model_package-0.0.5.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dashai_flux_model_package-0.0.5-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file dashai_flux_model_package-0.0.5.tar.gz.

File metadata

File hashes

Hashes for dashai_flux_model_package-0.0.5.tar.gz
Algorithm Hash digest
SHA256 bfcdd4cb3138b98df41a46e76184c8614c7c1d33562bfbbe1687317f0398beed
MD5 ae48781937813a95b57a6a8b6173b221
BLAKE2b-256 4146d3465e252dd2839816ebbd71321d1d54c9da4036cb1ce9567373261c7b8a

See more details on using hashes here.

File details

Details for the file dashai_flux_model_package-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for dashai_flux_model_package-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 e041548a8d584ef145fe9a040ced4895690fb2b7ecde40ef83f1cb712eb6bd32
MD5 839de510e8bd64f0187d7abcafb229aa
BLAKE2b-256 5af9bc1d4cd23124f7e26b40984c3bc8bbbaac732ac7f1622691fde4b1e19b31

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page