</figure>  
<hfoptions id="first-block-cache">
<hfoption id="FLUX-1.dev">  
To apply first block cache on FLUX.1-dev, call `apply_cache_on_pipe` as shown below. 0.08 is the default residual difference value for FLUX models.  
```python
import time
import torch
from diffusers import FluxPipeline