fal-recipes
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinesefal.ai Recipes
fal.ai 流程库
Runtime: All endpoint calls run via the genmedia CLI. See theskill for command syntax; rungenmediaonce if not yet installed.genmedia init
A recipe is a use-case-driven pipeline. It tells you the inputs to collect, the genmedia calls to chain, and the quality bar to verify before returning.
Recipes use for execution and for endpoint defaults. They differ from :
genmediafal-models-catalogfal-workflow- fal-workflow = how to build a pipeline (JSON authoring or CLI orchestration patterns), generic
- fal-recipes = how to produce a specific kind of content, opinionated by use case
流程(Recipe)是一种基于用例的流水线,它会告知你需要收集的输入信息、要串联的genmedia调用,以及返回结果前需要验证的质量标准。
流程使用执行,使用获取端点默认值。它们与的区别如下:
genmediafal-models-catalogfal-workflow- fal-workflow = 如何构建流水线(JSON创作或CLI编排模式),通用性强
- fal-recipes = 如何生成特定类型的内容,针对用例有明确的倾向性
Available recipes
可用流程
| Reference | Use for |
|---|---|
| cinematography.md | Cinematic stills and video, shot language, lighting, lens, color grade |
| character-design.md | Original characters with consistent identity across shots |
| commercial.md | Product photography, ads, e-commerce batches, hero shots |
| storytelling.md | Multi-shot narratives, short films, ads, brand films, social stories |
| character-lipsync.md | Talking head / lip-sync video (TTS → animated portrait) |
| image-restoration.md | Smart-dispatch restoration, deblur, denoise, dehaze, fix faces, document restore |
| virtual-tryon.md | Apply a garment onto a person photo (with optional cleanup chain) |
| video-with-audio.md | Add narration / SFX / music to a silent video |
| product-shot.md | Hero product photography from a packshot reference |
| realism.md | Photoreal stills (candid, editorial, documentary, archival, food, nature, architectural) with an anti-AI-look checklist |
| 参考文档 | 适用场景 |
|---|---|
| cinematography.md | 电影级静态画面与视频、镜头语言、灯光、镜头、色彩分级 |
| character-design.md | 在多镜头中保持一致身份的原创角色 |
| commercial.md | 产品摄影、广告、电商批量内容、主视觉镜头 |
| storytelling.md | 多镜头叙事、短片、广告、品牌影片、社交故事 |
| character-lipsync.md | 说话头像/唇形同步视频(文本转语音→动画肖像) |
| image-restoration.md | 智能调度修复、去模糊、去噪、去雾、修复人脸、文档修复 |
| virtual-tryon.md | 将服装应用到人物照片上(可选附带清理流水线) |
| video-with-audio.md | 为静音视频添加旁白/音效/音乐 |
| product-shot.md | 基于产品包装照片生成主视觉产品摄影 |
| realism.md | 照片级真实感静态画面(candid、编辑类、纪实类、档案类、美食、自然风光、建筑),附反AI质感检查清单 |
How to choose a recipe
如何选择流程
- Match the user's intent to a use case in the table above.
- If multiple recipes apply (e.g., "commercial featuring a consistent character"), load both and run the dominant one, usually the more specific one (first, then commercial framing).
character-design - If no recipe matches but the task is multi-step, fall back to Mode B (CLI orchestration) and design the pipeline from scratch.
fal-workflow - If the task is a single endpoint call, skip recipes, go directly to the right reference.
fal-models-catalog
- 将用户的意图与上表中的用例匹配。
- 若多个流程适用(例如:“包含一致性角色的商业广告”),则加载两个流程并运行优先级更高的那个,通常是更具体的流程(先运行,再应用商业广告框架)。
character-design - 若没有匹配的流程但任务是多步骤的,则 fallback 到模式B(CLI编排)并从头设计流水线。
fal-workflow - 若任务是单一端点调用,则跳过流程,直接使用对应的参考文档。
fal-models-catalog
Universal recipe structure
通用流程结构
Every reference follows the same skeleton so the agent knows where to look:
- Inputs to collect: only what changes the pipeline.
- Genmedia workflow: endpoint discovery, schema inspection, upload, run, status, download.
- Prompt build order: domain-specific structure (e.g., SCLCAM for cinema, anchor + variable for character).
- Patterns / examples: concrete prompt templates and finished examples.
- Quality bar: explicit checks before returning.
每个参考文档都遵循相同的框架,以便Agent知道查找方向:
- 需要收集的输入信息:仅收集会改变流水线的信息。
- Genmedia 工作流:端点发现、模式检查、上传、运行、状态查询、下载。
- 提示词构建顺序:特定领域的结构(例如:电影领域的SCLCAM,角色领域的锚点+变量)。
- 模式/示例:具体的提示词模板和成品示例。
- 质量标准:返回结果前的明确检查项。
Cross-references
交叉引用
- For endpoint defaults: fal-models-catalog
- For prompt-craft per model family: fal-prompting
- For pipeline patterns (fan-out, sequential, frame-bridging, etc.): fal-workflow Mode B
- For utility endpoints (resize, composite, audio merge, subtitle, etc.): fal-workflow/references/utility-endpoints.md
Information lives in one place. If a recipe needs an endpoint listed in the catalog, it links to the catalog instead of duplicating the list.
- 端点默认值:fal-models-catalog
- 各模型家族的提示词技巧:fal-prompting
- 流水线模式(扇出、顺序执行、帧桥接等):fal-workflow 模式B
- 工具类端点(调整尺寸、合成、音频合并、字幕等):fal-workflow/references/utility-endpoints.md
信息仅存于一处。若某个流程需要使用目录中列出的端点,会直接链接到目录而非重复列出。