Source profileQuality 67/100Review permissions

affaan-m/ECC/docs/zh-CN/skills/fal-ai-media/SKILL.md

fal-ai-media

Use it for engineering tasks; the detail page covers purpose, installation, and practical steps.

Source repository stars
234,327
Declared platforms
0
Static risk flags
2
Last source update
2026-07-27
Source checked
2026-07-28

Decision brief

What it does—and where it fits

通过 MCP 使用 fal.ai 模型生成图像、视频和音频。

Best for

    Not for

    • Tasks that require unconfirmed production actions or broad system permissions.
    • Environments where the pinned source and install steps cannot be inspected.

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeNot declaredNo explicit evidencePortability before use
    CursorNot declaredNo explicit evidencePortability before use
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/affaan-m/ECC --skill "docs/zh-CN/skills/fal-ai-media"
    Safe inspection promptEditorial

    Inspect the Agent Skill "fal-ai-media" from https://github.com/affaan-m/ECC/blob/4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38/docs/zh-CN/skills/fal-ai-media/SKILL.md at commit 4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      何时激活

      用户希望根据文本提示生成图像 根据文本或图像创建视频 生成语音、音乐或音效 任何媒体生成任务 用户提及“生成图像”、“创建视频”、“文本转语音”、“制作缩略图”或类似表述

      用户希望根据文本提示生成图像根据文本或图像创建视频生成语音、音乐或音效
    2. 02

      MCP 要求

      必须配置 fal.ai MCP 服务器。添加到 /.claude.json:

      必须配置 fal.ai MCP 服务器。添加到 /.claude.json:
    3. 03

      MCP 工具

      search — 通过关键词查找可用模型 find — 获取模型详情和参数 generate — 使用参数运行模型 result — 检查异步生成状态 status — 检查作业状态 cancel — 取消正在运行的作业 estimatecost — 估算生成成本 models — 列出热门模型 upload — 上传文件用作输入

      search — 通过关键词查找可用模型find — 获取模型详情和参数generate — 使用参数运行模型
    4. 04

      图像生成

      使用 Nano Banana 2 并输入图像进行修复、扩展或风格迁移:

      使用 Nano Banana 2 并输入图像进行修复、扩展或风格迁移:

    Permission review

    Static risk signals and limitations

    Sends data out

    high · line 220

    The documentation includes sending, uploading, or posting data to a remote service.

    resp = requests.post(

    Network access

    medium · line 220

    The documentation includes network, browsing, or remote request actions.

    resp = requests.post(

    Network access

    medium · line 221

    The documentation includes network, browsing, or remote request actions.

    "https://api.elevenlabs.io/v1/text-to-speech/<voice_id>",

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score67/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars234,327SourceRepository attention, not individual Skill quality
    Compatibility0 platformsSourceDeclared in the catalog source record
    Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    affaan-m/ECC
    Skill path
    docs/zh-CN/skills/fal-ai-media/SKILL.md
    Commit
    4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38
    License
    MIT
    Collected
    2026-07-28
    Default branch
    main
    View the original SKILL.md

    fal.ai 媒体生成

    通过 MCP 使用 fal.ai 模型生成图像、视频和音频。

    何时激活

    • 用户希望根据文本提示生成图像
    • 根据文本或图像创建视频
    • 生成语音、音乐或音效
    • 任何媒体生成任务
    • 用户提及“生成图像”、“创建视频”、“文本转语音”、“制作缩略图”或类似表述

    MCP 要求

    必须配置 fal.ai MCP 服务器。添加到 ~/.claude.json

    "fal-ai": {
      "command": "npx",
      "args": ["-y", "fal-ai-mcp-server"],
      "env": { "FAL_KEY": "YOUR_FAL_KEY_HERE" }
    }
    

    fal.ai 获取 API 密钥。

    MCP 工具

    fal.ai MCP 提供以下工具:

    • search — 通过关键词查找可用模型
    • find — 获取模型详情和参数
    • generate — 使用参数运行模型
    • result — 检查异步生成状态
    • status — 检查作业状态
    • cancel — 取消正在运行的作业
    • estimate_cost — 估算生成成本
    • models — 列出热门模型
    • upload — 上传文件用作输入

    图像生成

    Nano Banana 2(快速)

    最适合:快速迭代、草稿、文生图、图像编辑。

    generate(
      app_id: "fal-ai/nano-banana-2",
      input_data: {
        "prompt": "未来主义日落城市景观,赛博朋克风格",
        "image_size": "landscape_16_9",
        "num_images": 1,
        "seed": 42
      }
    )
    

    Nano Banana Pro(高保真)

    最适合:生产级图像、写实感、排版、详细提示。

    generate(
      app_id: "fal-ai/nano-banana-pro",
      input_data: {
        "prompt": "专业产品照片,无线耳机置于大理石表面,影棚灯光",
        "image_size": "square",
        "num_images": 1,
        "guidance_scale": 7.5
      }
    )
    

    常见图像参数

    参数类型选项说明
    prompt字符串必需描述您想要的内容
    image_size字符串squareportrait_4_3landscape_16_9portrait_16_9landscape_4_3宽高比
    num_images数字1-4生成数量
    seed数字任意整数可重现性
    guidance_scale数字1-20遵循提示的紧密程度(值越高越贴近字面)

    图像编辑

    使用 Nano Banana 2 并输入图像进行修复、扩展或风格迁移:

    # 首先上传源图像
    upload(file_path: "/path/to/image.png")
    
    # 然后使用图像输入进行生成
    generate(
      app_id: "fal-ai/nano-banana-2",
      input_data: {
        "prompt": "same scene but in watercolor style",
        "image_url": "<uploaded_url>",
        "image_size": "landscape_16_9"
      }
    )
    

    视频生成

    Seedance 1.0 Pro(字节跳动)

    最适合:文生视频、图生视频,具有高运动质量。

    generate(
      app_id: "fal-ai/seedance-1-0-pro",
      input_data: {
        "prompt": "a drone flyover of a mountain lake at golden hour, cinematic",
        "duration": "5s",
        "aspect_ratio": "16:9",
        "seed": 42
      }
    )
    

    Kling Video v3 Pro

    最适合:文生/图生视频,带原生音频生成。

    generate(
      app_id: "fal-ai/kling-video/v3/pro",
      input_data: {
        "prompt": "海浪拍打着岩石海岸,乌云密布",
        "duration": "5s",
        "aspect_ratio": "16:9"
      }
    )
    

    Veo 3(Google DeepMind)

    最适合:带生成声音的视频,高视觉质量。

    generate(
      app_id: "fal-ai/veo-3",
      input_data: {
        "prompt": "夜晚熙熙攘攘的东京街头市场,霓虹灯招牌,人群喧嚣",
        "aspect_ratio": "16:9"
      }
    )
    

    图生视频

    从现有图像开始:

    generate(
      app_id: "fal-ai/seedance-1-0-pro",
      input_data: {
        "prompt": "camera slowly zooms out, gentle wind moves the trees",
        "image_url": "<uploaded_image_url>",
        "duration": "5s"
      }
    )
    

    视频参数

    参数类型选项说明
    prompt字符串必需描述视频内容
    duration字符串"5s""10s"视频长度
    aspect_ratio字符串"16:9""9:16""1:1"帧比例
    seed数字任意整数可重现性
    image_url字符串URL用于图生视频的源图像

    音频生成

    CSM-1B(对话语音)

    文本转语音,具有自然、对话式的音质。

    generate(
      app_id: "fal-ai/csm-1b",
      input_data: {
        "text": "Hello, welcome to the demo. Let me show you how this works.",
        "speaker_id": 0
      }
    )
    

    ThinkSound(视频转音频)

    根据视频内容生成匹配的音频。

    generate(
      app_id: "fal-ai/thinksound",
      input_data: {
        "video_url": "<video_url>",
        "prompt": "ambient forest sounds with birds chirping"
      }
    )
    

    ElevenLabs(通过 API,无 MCP)

    如需专业的语音合成,直接使用 ElevenLabs:

    import os
    import requests
    
    resp = requests.post(
        "https://api.elevenlabs.io/v1/text-to-speech/<voice_id>",
        headers={
            "xi-api-key": os.environ["ELEVENLABS_API_KEY"],
            "Content-Type": "application/json"
        },
        json={
            "text": "Your text here",
            "model_id": "eleven_turbo_v2_5",
            "voice_settings": {"stability": 0.5, "similarity_boost": 0.75}
        }
    )
    with open("output.mp3", "wb") as f:
        f.write(resp.content)
    

    VideoDB 生成式音频

    如果配置了 VideoDB,使用其生成式音频:

    # Voice generation
    audio = coll.generate_voice(text="Your narration here", voice="alloy")
    
    # Music generation
    music = coll.generate_music(prompt="upbeat electronic background music", duration=30)
    
    # Sound effects
    sfx = coll.generate_sound_effect(prompt="thunder crack followed by rain")
    

    成本估算

    生成前,检查估算成本:

    estimate_cost(
      estimate_type: "unit_price",
      endpoints: {
        "fal-ai/nano-banana-pro": {
          "unit_quantity": 1
        }
      }
    )
    

    模型发现

    查找特定任务的模型:

    search(query: "text to video")
    find(endpoint_ids: ["fal-ai/seedance-1-0-pro"])
    models()
    

    提示

    • 在迭代提示时,使用 seed 以获得可重现的结果
    • 先用低成本模型(Nano Banana 2)进行提示迭代,然后切换到 Pro 版进行最终生成
    • 对于视频,保持提示描述性但简洁——聚焦于运动和场景
    • 图生视频比纯文生视频能产生更可控的结果
    • 在运行昂贵的视频生成前,检查 estimate_cost

    相关技能

    • videodb — 视频处理、编辑和流媒体
    • video-editing — AI 驱动的视频编辑工作流
    • content-engine — 社交媒体平台内容创作

    Alternatives

    Compare before choosing