fal.ai AI image generation. Use this skill when you need to use fal, fal.ai, or generate images from text prompts using AI text-to-image models.
/plugin marketplace add vm0-ai/api0/plugin install api0@api0This skill inherits all available tools. When active, it can use any tool Claude has access to.
Use the fal.ai API to generate images from text prompts.
Official docs:
https://fal.ai/docs
Use this skill when you need to:
export FAL_KEY="your-api-key"
Important: When using
$VARin a command that pipes to another command, wrap the command containing$VARinbash -c '...'. Due to a Claude Code bug, environment variables are silently cleared when pipes are used directly.bash -c 'curl -s "https://api.example.com" -H "Authorization: Bearer $API_KEY"' | jq .
bash -c 'curl -s -X POST "https://fal.run/fal-ai/nano-banana-pro" --header "Authorization: Key ${FAL_KEY}" --header "Content-Type: application/json" -d '"'"'{"prompt": "A futuristic city at sunset, cyberpunk style"}'"'"'' | jq -r '.images[0].url
bash -c 'curl -s -X POST "https://fal.run/fal-ai/flux/schnell" --header "Authorization: Key ${FAL_KEY}" --header "Content-Type: application/json" -d '"'"'{"prompt": "A cute cat eating a cookie"}'"'"'' | jq -r '.images[0].url
bash -c 'curl -s -X POST "https://fal.run/fal-ai/recraft-v3" --header "Authorization: Key ${FAL_KEY}" --header "Content-Type: application/json" -d '"'"'{"prompt": "Abstract art, vibrant colors"}'"'"'' | jq -r '.images[0].url
bash -c 'curl -s -X POST "https://fal.run/fal-ai/nano-banana-pro" --header "Authorization: Key ${FAL_KEY}" --header "Content-Type: application/json" -d '"'"'{"prompt": "Mountain landscape", "image_size": "landscape_16_9"}'"'"'' | jq -r '.images[0].url
bash -c 'curl -s -X POST "https://fal.run/fal-ai/nano-banana-pro" --header "Authorization: Key ${FAL_KEY}" --header "Content-Type: application/json" -d '"'"'{"prompt": "A minimalist workspace"}'"'"'' | jq -r '.images[0].url' | xargs curl -sL -o /tmp/image.png
echo "A dragon breathing fire, epic fantasy art" | jq -Rs '{prompt: .}' > /tmp/payload.json
bash -c 'curl -s -X POST "https://fal.run/fal-ai/nano-banana-pro" --header "Authorization: Key ${FAL_KEY}" --header "Content-Type: application/json" -d @/tmp/payload.json' | jq -r '.images[0].url
cat /tmp/prompt.txt | jq -Rs '{prompt: .}' > /tmp/payload.json
bash -c 'curl -s -X POST "https://fal.run/fal-ai/nano-banana-pro" --header "Authorization: Key ${FAL_KEY}" --header "Content-Type: application/json" -d @/tmp/payload.json' | jq -r '.images[0].url
echo "Neon city at night" | jq -Rs '{prompt: ., image_size: "landscape_16_9"}' > /tmp/payload.json
bash -c 'curl -s -X POST "https://fal.run/fal-ai/nano-banana-pro" --header "Authorization: Key ${FAL_KEY}" --header "Content-Type: application/json" -d @/tmp/payload.json' | jq -r '.images[0].url
| Model | Description |
|---|---|
nano-banana-pro | Fast, good quality (recommended) |
flux/schnell | Fast generation |
flux-pro | High quality |
recraft-v3 | High quality vector/illustration |
See more at: https://fal.ai/models
| Size | Aspect Ratio |
|---|---|
square | 1:1 |
square_hd | 1:1 (high res) |
portrait_4_3 | 4:3 |
portrait_16_9 | 16:9 |
landscape_4_3 | 3:4 |
landscape_16_9 | 9:16 |
For best results: