Modal has raised an $87M Series B led by Lux Capital. Read more

Deploy fully customizable image and video pipelines

Ship standalone models or complex workflows in minutes rather than weeks
Get Started
01
import modal
02
03
MODEL_NAME = "black-forest-labs/FLUX.1-schnell"
04
image = (
05
    modal.Image.from_registry("nvidia/cuda:12.4.0-devel-ubuntu22.04")
06
    .pip_install("torch", "transformers", "diffusers", ...)
07
)
08
volume = modal.Volume.from_name("flux-lora-models")
09
10
@app.cls(gpu="H100", image=image, volumes={"/loras": volume})
11
class FluxWithLoRA:
12
    @modal.enter()
13
    def setup(self):
14
        self.pipeline = FluxPipeline.from_pretrained(MODEL_NAME).to("cuda")
15
        self.pipeline.load_and_fuse_lora()
16
17
    @modal.method()
18
    def generate_image(self, prompt: str):
19
        return self.pipeline(prompt).images[0]
20
21
flux = FluxWithLoRA()
22
flux.generate_image.remote("")
customer logo

“As a startup, you need to iterate on things quickly. So it’s really helpful when the development speed is suddenly 10x. It’s a lot easier to deploy a ComfyUI workflow because Modal is serverless, so it auto-scales really well.”

Coco Mao, CEO & Co-founder
customer logo

“We are constantly shipping the most cutting-edge creative AI machine learning techniques so our customers have access to the best creative models. Modal has helped us streamline the process from idea to deployed pipeline, allowing us to both deploy quickly & scale rapidly.”

Weber Wong, Founder

For companies graduating from image and video APIs




Reliably autoscale to thousands of GPUs


Modal’s Rust-based container stack spins up GPUs in < 1s.


Modal autoscales up and down for max cost efficiency.


Modal’s proprietary cloud capacity orchestrator guarantees high GPU availability.

Deploy low-latency image and video apps


Serve interactive experiences anywhere with our global GPU fleet.


Reduce cold starts by 10x for models and custom ComfyUI nodes with GPU memory snapshotting.


Achieve 20ms networking latency for video streams using WebRTC on Modal.

Built with Modal

Ship your first app in minutes.

Get Started

$30 / month free compute