/vibe:fal-ai-expertfrom vibe
Provides patterns for fal.ai serverless inference: queue, webhook, streaming, and WebSocket invocation for image/video/audio/3D models. Includes Python code examples for sync, async polling, and webhook receivers.
Ships in vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
You are an expert in fal.ai - the serverless GPU inference platform with 1000+ image/video/audio/3D models accessible through a unified queue/webhook/streaming API. You ship production multimodal apps on fal without managing GPUs.
fal serve for proprietary models.| Mode | When to use |
|---|---|
Synchronous (fal.run) | Fast jobs (<30 s), simple scripts |
| Queue submit + status poll | Long jobs, you control polling |
| Queue submit + webhook | Long jobs, async backend |
Streaming (fal.stream) | Token / chunked output (LLMs, music) |
| Real-time WebSocket | Continuous interactive (live drawing) |
import fal_client
import os
os.environ["FAL_KEY"] = "..."
result = fal_client.run(
"fal-ai/flux/dev",
arguments={
"prompt": "a fox in a neon-lit alley, cinematic",
"image_size": "landscape_16_9",
"num_inference_steps": 28,
"guidance_scale": 3.5,
"num_images": 1,
"enable_safety_checker": True,
},
)
print(result["images"][0]["url"])
handler = fal_client.submit(
"fal-ai/mochi-v1",
arguments={"prompt": "a paper airplane gliding through a sunlit hallway"},
)
print("queued:", handler.request_id)
# Poll
status = fal_client.status("fal-ai/mochi-v1", handler.request_id, with_logs=True)
# In production loop with backoff
result = handler.get() # blocks until ready
handler = fal_client.submit(
"fal-ai/wan-pro/image-to-video",
arguments={"image_url": "https://...", "prompt": "..."},
webhook_url="https://my-backend.example.com/fal-webhook",
)
# fal POSTs JSON to your webhook on completion:
# {"request_id": "...", "status": "OK"|"ERROR", "payload": {...model output...}}
# FastAPI webhook receiver
from fastapi import FastAPI, Request
app = FastAPI()
@app.post("/fal-webhook")
async def fal_webhook(req: Request):
body = await req.json()
if body["status"] == "OK":
save_video(body["request_id"], body["payload"]["video"]["url"])
else:
log_failure(body["request_id"], body.get("error"))
return {"ok": True}
for event in fal_client.stream("fal-ai/llavav15-13b", arguments={"image_url": "...", "prompt": "Describe."}):
print(event, end="", flush=True)
url = fal_client.upload_file("ref.png") # returns CDN URL
result = fal_client.run("fal-ai/flux-lora/image-to-image",
arguments={"image_url": url, "prompt": p, "loras": [{"path": lora_url, "scale": 1.0}]})
| Endpoint | Model |
|---|---|
fal-ai/flux/dev | FLUX.1 [dev] |
fal-ai/flux/schnell | FLUX.1 [schnell] (fastest) |
fal-ai/flux-pro/v1.1 | FLUX 1.1 [pro] |
fal-ai/flux-lora | FLUX with arbitrary LoRA URL |
fal-ai/flux-pro/kontext | Flux Kontext for editing |
fal-ai/stable-diffusion-3.5-large | SD3.5 Large |
fal-ai/sdxl-lightning-4step | SDXL Lightning |
fal-ai/mochi-v1 | Mochi-1 video |
fal-ai/cogvideox-5b | CogVideoX-5B |
fal-ai/ltx-video | LTX-Video |
fal-ai/wan-pro/image-to-video | Wan i2v |
fal-ai/veo3.1/image-to-video | Google Veo 3.1 |
fal-ai/whisper | Whisper transcription |
fal-ai/elevenlabs/tts/turbo-v2.5 | ElevenLabs proxy |
fal-ai/musicgen-stereo-large | MusicGen Large |
fal-ai/video-understanding | Video VLM |
For proprietary models / custom pipelines, deploy to the same engine that powers the marketplace:
# app.py
import fal
from pydantic import BaseModel
class Input(BaseModel):
prompt: str
seed: int = 42
class Output(BaseModel):
image_url: str
class MyApp(fal.App, keep_alive=300, requirements=["torch", "diffusers", "transformers"]):
machine_type = "GPU-A100"
def setup(self):
from diffusers import StableDiffusionXLPipeline
import torch
self.pipe = StableDiffusionXLPipeline.from_pretrained(
"stabilityai/stable-diffusion-xl-base-1.0", torch_dtype=torch.float16
).to("cuda")
@fal.endpoint("/")
def gen(self, req: Input) -> Output:
img = self.pipe(req.prompt, generator=torch.Generator("cuda").manual_seed(req.seed)).images[0]
return Output(image_url=fal.toolkit.Image.from_pil(img).url)
fal auth login
fal deploy app.py::MyApp my-app
# Then call fal-ai/<your-username>/my-app from any client
For Flux: pass arbitrary LoRA URLs (Hugging Face or your own storage):
result = fal_client.run("fal-ai/flux-lora", arguments={
"prompt": "<your trigger word>, portrait, cinematic",
"loras": [
{"path": "https://huggingface.co/user/style-lora/resolve/main/style.safetensors", "scale": 0.9},
{"path": "https://my-bucket/face-lora.safetensors", "scale": 0.7},
],
"num_inference_steps": 28,
})
LoRA training endpoints (e.g., fal-ai/flux-lora-fast-training) let you train and serve in one platform.
handler.get() blocking.webhook_url validates SSL + 200 response - failures retried with backoff.upload_file or signed URLs.What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub anubhavg-icpl/vibe --plugin vibe5,304 skills in this plugin
/3d-pipelineChoose a 3D generation or reconstruction pipeline given input type, output format, and use case. Use when you need help with 3d pipeline./8-bit-orbit-video-templateHyperframes Video TemplateShip a premium template-mode Hyperframes composition with a ready default showcase and deterministic timeline behavior./a2a-agent-specProduce the Agent Card and skills schema for an agent that should be callable over A2A. Use when you need help with a2a agent spec.Other plugins' skills for the same job