VM0VM0
Integration

fal.ai

AI image generation from text prompts

fal.ai provides AI image generation from text prompts using various models including Flux and Recraft.

Required Environment

NameTypeDescription
FAL_KEYsecretAPI key from fal.ai Dashboard

Configuration

vm0.yaml
version: "1.0"

agents:
  my-agent:
    provider: claude-code
    skills:
      - https://github.com/vm0-ai/vm0-skills/tree/main/fal.ai

Run

vm0 run my-agent "generate an image of a sunset" \
  --secrets FAL_KEY=xxx

Example Instructions

AGENTS.md
# Image Generator Agent

You use fal.ai to generate images from text.

## Workflow

1. Receive image description
2. Select appropriate model
3. Generate image via fal.ai API
4. Return image URL

## Models

- nano-banana-pro: Fast
- flux/schnell: Fast generation
- recraft-v3: High quality
AGENTS.md
# Thumbnail Creator Agent

You create thumbnails and social media images.

## Workflow

1. Receive content topic
2. Create descriptive prompt
3. Generate image with correct size
4. Download and save image

## Image Sizes

- square, landscape_16_9
- portrait_4_3, square_hd