搜索

PythonReactSEOPDF
OpenClaw

fal-api

Generate images, videos, and audio via fal.ai API (FLUX, SDXL, Whisper, etc.)

agmmnn0 来源安装数☆ 0 仓库 Starsv0.1.0

安装与使用

请根据来源仓库和你的 AI 工具说明安装此技能。先阅读技能文件和依赖要求,再添加到工作流。

SkillHub CLI

skillhub install agmmnn/fal-ai

打开来源仓库,查看说明和兼容环境后,按来源提供的命令或步骤安装。

将来源链接提供给你的 Agent,让它先读取说明、核对依赖,并向你说明将执行的安装步骤。

查看来源 ↗使用指南

技能说明

fal.ai API Skill

Generate images, videos, and transcripts using fal.ai's API with support for FLUX, Stable Diffusion, Whisper, and more.

Features

  • Queue-based async generation (submit → poll → result)
  • Support for 600+ AI models
  • Image generation (FLUX, SDXL, Recraft)
  • Video generation (MiniMax, WAN)
  • Speech-to-text (Whisper)
  • Stdlib-only dependencies (no fal_client required)

Setup

  1. Get your API key from https://fal.ai/dashboard/keys
  2. Configure with:
export FAL_KEY="your-api-key"

Or via clawdbot config:

clawdbot config set skill.fal_api.key YOUR_API_KEY

Usage

Interactive Mode
You: Generate a cyberpunk cityscape with FLUX
Klawf: Creates the image and returns the URL
Python Script
from fal_api import FalAPI

api = FalAPI()

# Generate and wait
urls = api.generate_and_wait(
    prompt="A serene Japanese garden",
    model="flux-dev"
)
print(urls)
Available Models
Model Endpoint Type
flux-schnell fal-ai/flux/schnell Image (fast)
flux-dev fal-ai/flux/dev Image
flux-pro fal-ai/flux-pro/v1.1-ultra Image (2K)
fast-sdxl fal-ai/fast-sdxl Image
recraft-v3 fal-ai/recraft-v3 Image
sd35-large fal-ai/stable-diffusion-v35-large Image
minimax-video fal-ai/minimax-video/image-to-video Video
wan-video fal-ai/wan/v2.1/1.3b/text-to-video Video
whisper fal-ai/whisper Audio

For the full list, run:

python3 fal_api.py --list-models

Parameters

| Parameter | Type | Default | Description | | ---------- | ---- | ---------------- | ------...

来源信息

Source
github
Repository
openclaw/skills
Path
skills/agmmnn/fal-ai
Version
0.1.0
Commit
4ff6cc0bef04dcb7fb58871c8c75c72cad23a6dc
分类来源
rules
状态
active
可见性
public

这些信息来自收录时的来源分析,可能滞后;使用前请核对最新来源文件。

README

fal.ai API Skill

See SKILL.md for full documentation.

Quick Start

# Set your API key
export FAL_KEY="your-api-key"

# Generate an image
python3 fal_api.py --prompt "A cute robot cat" --model flux-schnell

# List available models
python3 fal_api.py --list-models

Configure Credentials

# Via environment
export FAL_KEY="your-api-key"

# Or via clawdbot config
clawdbot config set skill.fal_api.key YOUR_API_KEY

Requirements

  • Python 3.7+
  • No external dependencies (uses stdlib)

来源内容

SKILL.md
# fal.ai API Skill

Generate images, videos, and transcripts using fal.ai's API with support for FLUX, Stable Diffusion, Whisper, and more.

## Features

- Queue-based async generation (submit → poll → result)
- Support for 600+ AI models
- Image generation (FLUX, SDXL, Recraft)
- Video generation (MiniMax, WAN)
- Speech-to-text (Whisper)
- Stdlib-only dependencies (no `fal_client` required)

## Setup

1. Get your API key from https://fal.ai/dashboard/keys
2. Configure with:

```bash
export FAL_KEY="your-api-key"
```

Or via clawdbot config:

```bash
clawdbot config set skill.fal_api.key YOUR_API_KEY
```

## Usage

### Interactive Mode

```
You: Generate a cyberpunk cityscape with FLUX
Klawf: Creates the image and returns the URL
```

### Python Script

```python
from fal_api import FalAPI

api = FalAPI()

# Generate and wait
urls = api.generate_and_wait(
    prompt="A serene Japanese garden",
    model="flux-dev"
)
print(urls)
```

### Available Models

| Model         | Endpoint                              | Type         |
| ------------- | ------------------------------------- | ------------ |
| flux-schnell  | `fal-ai/flux/schnell`                 | Image (fast) |
| flux-dev      | `fal-ai/flux/dev`                     | Image        |
| flux-pro      | `fal-ai/flux-pro/v1.1-ultra`          | Image (2K)   |
| fast-sdxl     | `fal-ai/fast-sdxl`                    | Image        |
| recraft-v3    | `fal-ai/recraft-v3`                   | Image        |
| sd35-large    | `fal-ai/stable-diffusion-v35-large`   | Image        |
| minimax-video | `fal-ai/minimax-video/image-to-video` | Video        |
| wan-video     | `fal-ai/wan/v2.1/1.3b/text-to-video`  | Video        |
| whisper       | `fal-ai/whisper`                      | Audio        |

For the full list, run:

```bash
python3 fal_api.py --list-models
```

## Parameters

| Parameter  | Type | Default          | Description                                        |
| ---------- | ---- | ---------------- | ------...
README
![](https://i.imgur.com/tP0xHSp.png)

# fal.ai API Skill

See [SKILL.md](./SKILL.md) for full documentation.

## Quick Start

```bash
# Set your API key
export FAL_KEY="your-api-key"

# Generate an image
python3 fal_api.py --prompt "A cute robot cat" --model flux-schnell

# List available models
python3 fal_api.py --list-models
```

## Configure Credentials

```bash
# Via environment
export FAL_KEY="your-api-key"

# Or via clawdbot config
clawdbot config set skill.fal_api.key YOUR_API_KEY
```

## Requirements

- Python 3.7+
- No external dependencies (uses stdlib)

相关技能

OpenClaw

x402hub

capncoconut

Register, communicate, and earn on the x402hub AI agent marketplace. Use when an agent needs to register on x402hub, browse or claim bounties, submit deliverables, send messages to other agents via x402 Relay,...

OpenClaw

claw

capevace

Real-time event bus for AI agents. Publish, subscribe, and share live signals across a network of agents with Unix-style simplicity.

OpenClaw

captchas-openclaw

captchasco

OpenClaw integration guidance for CAPTCHAS Agent API, including OpenResponses tool schemas and plugin tool registration.