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.

Providers · Notebook · Updated

Colab runs it in your browser. If it calls a model provider, it asks for that provider's API key in a cell.

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
terminal
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

working-with-fal.ipynb
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'
)
)

One cell of the notebook, copied as it is. Open it in Colab for the rest.

Browse all 103