Skip to content

Media Generation

Gee-Code integrates with FAL AI to generate images, video, audio, and 3D content directly from the terminal. With access to 600+ models, you can create almost any type of media.

The fastest way to create an image:

GenerateImage(prompt="A futuristic city at sunset, cyberpunk style", output_path="city.png")

This uses the default image model (nano-banana-pro) for fast generation.

For more control, use FalGenerate with any of the 600+ FAL models:

FalGenerate(
model="fal-ai/flux-pro",
prompt="A photorealistic portrait of a robot artist",
output_path="robot-artist.png",
width=1024,
height=1024
)

Video generation runs in the background (it takes minutes):

FalGenerate(
model="fal-ai/kling-video/v2.6/pro/text-to-video",
prompt="A timelapse of flowers blooming in a garden",
output_path="flowers.mp4",
duration="5",
aspect_ratio="16:9",
background=true
)

Check progress and download:

FalJobStatus(job_id="abc123")
FalJobResult(job_id="abc123", output_path="flowers.mp4")

Turn a still image into video:

FalGenerate(
model="fal-ai/kling-video/v2.6/pro/image-to-video",
prompt="Gentle camera pan across the landscape",
image_url="/path/to/landscape.png",
output_path="landscape-video.mp4",
background=true
)
SearchFalModels(query="text to image", limit=10)
SearchFalModels(query="video generation", category="text-to-video")
SearchFalModels(query="3d", limit=5)
SearchFalModels(query="audio", limit=5)
GetFalDocs(model_id="fal-ai/flux-pro")
GetFalModelSchema(model_id="fal-ai/kling-video/v2.6/pro/text-to-video")
CategoryModelDescription
Imagefal-ai/flux-proHigh-quality text-to-image
Imagefal-ai/flux/schnellFast image generation
Videofal-ai/kling-video/v2.6/pro/text-to-videoText-to-video
Videofal-ai/minimax/video-01Another video model
Audio/TTSfal-ai/minimax/speech-2.6-hdText-to-speech

Video and other long-running generations run as background jobs:

FalListJobs() # List all jobs
FalJobStatus(job_id="abc123") # Check specific job
FalJobResult(job_id="abc123", output_path="out.mp4") # Download result

FAL generation requires a FAL_KEY. Set it via:

/credentials set fal

Or set the FAL_KEY environment variable. If you’re authenticated with Gee, your FAL key may already be available through the backend.