fal-recipes

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

fal.ai Recipes

fal.ai 流程库

Runtime: All endpoint calls run via the genmedia CLI. See the
genmedia
skill for command syntax; run
genmedia init
once if not yet installed.
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
genmedia
for execution and
fal-models-catalog
for endpoint defaults. They differ from
fal-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
运行环境: 所有端点调用均通过 genmedia CLI 执行。有关命令语法请查看
genmedia
技能;若尚未安装,请先运行
genmedia init
流程(Recipe)是一种基于用例的流水线,它会告知你需要收集的输入信息、要串联的genmedia调用,以及返回结果前需要验证的质量标准。
流程使用
genmedia
执行,使用
fal-models-catalog
获取端点默认值。它们与
fal-workflow
的区别如下:
  • fal-workflow = 如何构建流水线(JSON创作或CLI编排模式),通用性强
  • fal-recipes = 如何生成特定类型的内容,针对用例有明确的倾向性

Available recipes

可用流程

ReferenceUse for
cinematography.mdCinematic stills and video, shot language, lighting, lens, color grade
character-design.mdOriginal characters with consistent identity across shots
commercial.mdProduct photography, ads, e-commerce batches, hero shots
storytelling.mdMulti-shot narratives, short films, ads, brand films, social stories
character-lipsync.mdTalking head / lip-sync video (TTS → animated portrait)
image-restoration.mdSmart-dispatch restoration, deblur, denoise, dehaze, fix faces, document restore
virtual-tryon.mdApply a garment onto a person photo (with optional cleanup chain)
video-with-audio.mdAdd narration / SFX / music to a silent video
product-shot.mdHero product photography from a packshot reference
realism.mdPhotoreal 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

如何选择流程

  1. Match the user's intent to a use case in the table above.
  2. If multiple recipes apply (e.g., "commercial featuring a consistent character"), load both and run the dominant one, usually the more specific one (
    character-design
    first, then commercial framing).
  3. If no recipe matches but the task is multi-step, fall back to
    fal-workflow
    Mode B (CLI orchestration) and design the pipeline from scratch.
  4. If the task is a single endpoint call, skip recipes, go directly to the right
    fal-models-catalog
    reference.
  1. 将用户的意图与上表中的用例匹配。
  2. 若多个流程适用(例如:“包含一致性角色的商业广告”),则加载两个流程并运行优先级更高的那个,通常是更具体的流程(先运行
    character-design
    ,再应用商业广告框架)。
  3. 若没有匹配的流程但任务是多步骤的,则 fallback 到
    fal-workflow
    模式B(CLI编排)并从头设计流水线。
  4. 若任务是单一端点调用,则跳过流程,直接使用对应的
    fal-models-catalog
    参考文档。

Universal recipe structure

通用流程结构

Every reference follows the same skeleton so the agent knows where to look:
  1. Inputs to collect: only what changes the pipeline.
  2. Genmedia workflow: endpoint discovery, schema inspection, upload, run, status, download.
  3. Prompt build order: domain-specific structure (e.g., SCLCAM for cinema, anchor + variable for character).
  4. Patterns / examples: concrete prompt templates and finished examples.
  5. Quality bar: explicit checks before returning.
每个参考文档都遵循相同的框架,以便Agent知道查找方向:
  1. 需要收集的输入信息:仅收集会改变流水线的信息。
  2. Genmedia 工作流:端点发现、模式检查、上传、运行、状态查询、下载。
  3. 提示词构建顺序:特定领域的结构(例如:电影领域的SCLCAM,角色领域的锚点+变量)。
  4. 模式/示例:具体的提示词模板和成品示例。
  5. 质量标准:返回结果前的明确检查项。

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
信息仅存于一处。若某个流程需要使用目录中列出的端点,会直接链接到目录而非重复列出。