fal-platform by fal-ai-community/skills
npx skills add https://github.com/fal-ai-community/skills --skill fal-platform用于模型管理、定价、使用追踪和成本估算的平台 API。
| 脚本 | 用途 |
|---|---|
setup.sh | 设置 FAL_KEY 和配置 |
pricing.sh | 获取模型定价信息 |
usage.sh | 检查使用情况和账单 |
estimate-cost.sh | 估算操作成本 |
requests.sh | 列出和管理请求 |
广告位招租
在这里展示您的产品或服务
触达数万 AI 开发者,精准高效
# 交互式设置
bash /mnt/skills/user/fal-platform/scripts/setup.sh --add-fal-key
# 直接设置密钥
bash /mnt/skills/user/fal-platform/scripts/setup.sh --add-fal-key "your_key_here"
# 显示当前配置
bash /mnt/skills/user/fal-platform/scripts/setup.sh --show-config
这将把 FAL_KEY 添加到您的 .env 文件中以供持久使用。
获取任何模型的定价信息:
# 单个模型定价
bash /mnt/skills/user/fal-platform/scripts/pricing.sh --model "fal-ai/flux/dev"
# 多个模型
bash /mnt/skills/user/fal-platform/scripts/pricing.sh --model "fal-ai/flux/dev,fal-ai/kling-video/v2/master/text-to-video"
# 某个类别的所有定价
bash /mnt/skills/user/fal-platform/scripts/pricing.sh --category "text-to-image"
输出示例:
fal-ai/flux/dev
价格:每张图片 $0.025
单位:image
fal-ai/kling-video/v2/master/text-to-video
价格:每秒 $0.50
单位:video_second
检查您的使用情况和花费:
# 当前周期使用情况
bash /mnt/skills/user/fal-platform/scripts/usage.sh
# 按模型筛选
bash /mnt/skills/user/fal-platform/scripts/usage.sh --model "fal-ai/flux/dev"
# 日期范围
bash /mnt/skills/user/fal-platform/scripts/usage.sh --start "2024-01-01" --end "2024-01-31"
# 特定时间范围
bash /mnt/skills/user/fal-platform/scripts/usage.sh --timeframe "day"
时间范围选项: minute, hour, day, week, month
在运行前估算成本:
# 按 API 调用次数估算(基于历史定价)
bash /mnt/skills/user/fal-platform/scripts/estimate-cost.sh \
--model "fal-ai/flux/dev" \
--calls 100
# 按单位数量估算
bash /mnt/skills/user/fal-platform/scripts/estimate-cost.sh \
--model "fal-ai/kling-video/v2/master/text-to-video" \
--units 60 \
--type "unit_price"
输出示例:
fal-ai/flux/dev 的成本估算
数量:100 次调用
估算成本:$2.50
列出和管理请求:
# 列出最近的请求
bash /mnt/skills/user/fal-platform/scripts/requests.sh --model "fal-ai/flux/dev" --limit 10
# 删除请求负载(清理)
bash /mnt/skills/user/fal-platform/scripts/requests.sh --delete "request_id_here"
| 操作 | 端点 | 方法 |
|---|---|---|
| 模型搜索 | GET /models | GET |
| 定价 | GET /models/pricing | GET |
| 使用情况 | GET /models/usage | GET |
| 列出请求 | GET /models/requests/by-endpoint | GET |
| 删除负载 | DELETE /models/requests/{id}/payloads | DELETE |
基础 URL: https://api.fal.ai/v1
所有脚本都支持以下通用标志:
--add-fal-key [KEY] # 在 .env 中添加/更新 FAL_KEY
--help, -h # 显示帮助信息
--json # 输出原始 JSON
--quiet, -q # 抑制状态消息
错误:此操作需要 FAL_KEY
运行:bash /mnt/skills/user/fal-platform/scripts/setup.sh --add-fal-key
错误:API 密钥没有此操作的权限
某些操作需要管理员 API 密钥。请在以下位置检查您的密钥权限:
https://fal.ai/dashboard/keys
每周安装量
121
代码仓库
GitHub 星标数
39
首次出现
2026年1月27日
安全审计
安装于
gemini-cli94
opencode94
claude-code94
codex92
github-copilot89
cursor78
Platform APIs for model management, pricing, usage tracking, and cost estimation.
| Script | Purpose |
|---|---|
setup.sh | Setup FAL_KEY and configuration |
pricing.sh | Get model pricing information |
usage.sh | Check usage and billing |
estimate-cost.sh | Estimate costs for operations |
requests.sh | List and manage requests |
# Interactive setup
bash /mnt/skills/user/fal-platform/scripts/setup.sh --add-fal-key
# Set key directly
bash /mnt/skills/user/fal-platform/scripts/setup.sh --add-fal-key "your_key_here"
# Show current config
bash /mnt/skills/user/fal-platform/scripts/setup.sh --show-config
This adds FAL_KEY to your .env file for persistent use.
Get pricing for any model:
# Single model pricing
bash /mnt/skills/user/fal-platform/scripts/pricing.sh --model "fal-ai/flux/dev"
# Multiple models
bash /mnt/skills/user/fal-platform/scripts/pricing.sh --model "fal-ai/flux/dev,fal-ai/kling-video/v2/master/text-to-video"
# All pricing for a category
bash /mnt/skills/user/fal-platform/scripts/pricing.sh --category "text-to-image"
Output:
fal-ai/flux/dev
Price: $0.025 per image
Unit: image
fal-ai/kling-video/v2/master/text-to-video
Price: $0.50 per second
Unit: video_second
Check your usage and spending:
# Current period usage
bash /mnt/skills/user/fal-platform/scripts/usage.sh
# Filter by model
bash /mnt/skills/user/fal-platform/scripts/usage.sh --model "fal-ai/flux/dev"
# Date range
bash /mnt/skills/user/fal-platform/scripts/usage.sh --start "2024-01-01" --end "2024-01-31"
# Specific timeframe
bash /mnt/skills/user/fal-platform/scripts/usage.sh --timeframe "day"
Timeframes: minute, hour, day, week, month
Estimate costs before running:
# Estimate by API calls (historical pricing)
bash /mnt/skills/user/fal-platform/scripts/estimate-cost.sh \
--model "fal-ai/flux/dev" \
--calls 100
# Estimate by units
bash /mnt/skills/user/fal-platform/scripts/estimate-cost.sh \
--model "fal-ai/kling-video/v2/master/text-to-video" \
--units 60 \
--type "unit_price"
Output:
Cost Estimate for fal-ai/flux/dev
Quantity: 100 calls
Estimated Cost: $2.50
List and manage requests:
# List recent requests
bash /mnt/skills/user/fal-platform/scripts/requests.sh --model "fal-ai/flux/dev" --limit 10
# Delete request payloads (cleanup)
bash /mnt/skills/user/fal-platform/scripts/requests.sh --delete "request_id_here"
| Operation | Endpoint | Method |
|---|---|---|
| Model Search | GET /models | GET |
| Pricing | GET /models/pricing | GET |
| Usage | GET /models/usage | GET |
| List Requests | GET /models/requests/by-endpoint | GET |
| Delete Payloads | DELETE /models/requests/{id}/payloads |
Base URL: https://api.fal.ai/v1
All scripts support these common flags:
--add-fal-key [KEY] # Add/update FAL_KEY in .env
--help, -h # Show help
--json # Output raw JSON
--quiet, -q # Suppress status messages
Error: FAL_KEY required for this operation
Run: bash /mnt/skills/user/fal-platform/scripts/setup.sh --add-fal-key
Error: API key doesn't have permission for this operation
Some operations require admin API keys. Check your key permissions at:
https://fal.ai/dashboard/keys
Weekly Installs
121
Repository
GitHub Stars
39
First Seen
Jan 27, 2026
Security Audits
Gen Agent Trust HubPassSocketPassSnykFail
Installed on
gemini-cli94
opencode94
claude-code94
codex92
github-copilot89
cursor78
AI Elements:基于shadcn/ui的AI原生应用组件库,快速构建对话界面
66,200 周安装
Reddit帖子分析器 - 深度分析讨论情绪、关键论点与社区共识 | AI驱动
225 周安装
Symfony有效上下文技能:优化架构与安全执行复杂变更的PHP框架工作流指南
222 周安装
研究流程技能:结构化研究方法论,全面指导研究规划、执行、分析与综合
224 周安装
HuggingFace Tokenizers:NLP快速分词工具,Rust性能Python易用,支持自定义训练
226 周安装
执行计划技能:AI辅助代码开发与任务批量执行工具 - 高效项目管理
223 周安装
NeMo Curator - NVIDIA GPU加速的大语言模型数据整理工具包,16倍去重速度
223 周安装
| DELETE |