FLUX.1-Kontext
==============

.. image:: https://huggingface.co/datasets/nunchaku-tech/cdn/resolve/main/nunchaku/assets/kontext.png
   :alt: FLUX.1-Kontext-dev integration with Nunchaku

Nunchaku supports `FLUX-Kontext-dev <hf_flux-kontext-dev_>`_,
an advanced model that enables precise image editing through natural language prompts.
The implementation follows the same pattern as described in :doc:`Basic Usage <./basic_usage>`.

.. literalinclude:: ../../../examples/flux.1-kontext-dev.py
   :language: python
   :caption: Running FLUX.1-Kontext-dev (`examples/flux.1-kontext-dev.py <https://github.com/nunchaku-tech/nunchaku/blob/main/examples/flux.1-kontext-dev.py>`__)
   :linenos:
