Loading...
Loading...
Generate high-quality images from text prompts using fal.ai's text-to-image models. Supports intelligent model selection, style transfer, and professional-grade outputs.
npx skill4agent add delorenj/skills fal-text-to-imageuv run python fal-text-to-image "A cyberpunk city at sunset with neon lights"uv run python fal-text-to-image -m flux-pro/v1.1-ultra "Professional headshot of a business executive"uv run python fal-text-to-image -i reference.jpg "A mountain landscape" -m flux-2/lora/editfal-ai/flux-pro/v1.1-ultrafal-ai/recraft/v3/text-to-imagefal-ai/flux-2fal-ai/flux-2/lora-ifal-ai/flux-2/lora/editfal-ai/imagen4/previewfal-ai/stable-diffusion-v35-largefal-ai/ideogram/v2fal-ai/bria/text-to-image/3.2uv run python fal-text-to-image [OPTIONS] PROMPT
Arguments:
PROMPT Text description of the image to generate
Options:
-m, --model TEXT Model to use (see model list above)
-i, --image TEXT Path or URL to reference image for style transfer
-o, --output TEXT Output filename (default: generated_image.png)
-s, --size TEXT Image size (e.g., "1024x1024", "landscape_16_9")
--seed INTEGER Random seed for reproducibility
--steps INTEGER Number of inference steps (model-dependent)
--guidance FLOAT Guidance scale (higher = more prompt adherence)
--help Show this message and exitexport FAL_KEY="your-api-key-here".envFAL_KEY=your-api-key-hereuv run python fal-text-to-image \
-m flux-pro/v1.1-ultra \
"Professional headshot of a business executive in modern office" \
-s 2048x2048uv run python fal-text-to-image \
-m recraft/v3/text-to-image \
"Modern tech startup logo with text 'AI Labs' in minimalist style"uv run python fal-text-to-image \
-m flux-2/lora/edit \
-i artistic_style.jpg \
"Portrait of a woman in a garden"uv run python fal-text-to-image \
-m flux-2 \
--seed 42 \
"Futuristic cityscape with flying cars"-m-iflux-2/lora/editrecraft/v3/text-to-imageflux-pro/v1.1-ultrarecraft/v3/text-to-imageflux-2| Problem | Solution |
|---|---|
| Export FAL_KEY environment variable or create .env file |
| Check model name against supported list |
| Ensure image path/URL is accessible |
| Some models take longer; wait or try faster model |
| Check fal.ai dashboard for usage limits |
flux-2stable-diffusion-v35-largeflux-pro/v1.1-ultrafal-text-to-image/
├── SKILL.md # This file
├── pyproject.toml # Dependencies (uv)
├── fal-text-to-image # Main executable script
├── references/
│ └── model-comparison.md # Detailed model benchmarks
└── outputs/ # Generated images (created on first run)uvfal-clientpython-dotenvpillowclick--seed