---
title: "Working with fal.ai in Pixeltable"
description: "Pixeltable's fal.ai integration enables you to access fal.ai's fast inference models via the fal.ai API."
url: "https://www.pixeltable.com/notebooks/working-with-fal"
updated: "2026-08-03"
---

# Working with fal.ai in Pixeltable

Pixeltable's fal.ai integration enables you to access fal.ai's fast inference models via the fal.ai API.

- **Type:** Notebook
- **Group:** Providers

## What it covers

- Text-to-image generation with FLUX Schnell
- Advanced image generation with Fast SDXL
- Generating multiple images per prompt
- Using Higher Quality Models
- Exploring Available Models
- Working with Batch Processing
- Tips and Best Practices

## What it uses

- **Install:** `pip install fal-client`
- **Environment variables it names:** `FAL_API_KEY`
- **Pixeltable calls:** `fal.run()`, `pxt.create_table()`, `add_computed_column()`, `insert()`

## A look at the code

```python
from pixeltable.functions import fal

# Create a table for image generation
t = pxt.create_table('fal_demo/images', {'prompt': pxt.String})

# Add a computed column that calls the FLUX Schnell model
t.add_computed_column(
    response=fal.run(
        input={'prompt': t.prompt}, app='fal-ai/flux/schnell'
    )
)
```

## Open it

- **Open in Colab:** https://colab.research.google.com/github/pixeltable/pixeltable/blob/release/docs/release/howto/providers/working-with-fal.ipynb
- **Docs page:** https://docs.pixeltable.com/howto/providers/working-with-fal
- **Source on GitHub:** https://github.com/pixeltable/pixeltable/blob/release/docs/release/howto/providers/working-with-fal.ipynb
