1892/fal-image/SKILL.md
Generate images using Fal.ai (Flux Pro, Flux Ultra, and other models). Use when you need to create AI-generated images, artwork, visuals, or any image content. Supports Flux Pro 1.1 Ultra (best quality), Flux Pro 1.1, Flux Dev, and more.
npx skillsauth add starchild-ai-agent/community-skills @1892/fal-imageInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Fal.ai is one of the most widely used API platforms for AI image generation, offering fast inference on top models including Flux Pro, Stable Diffusion, and more. To use this skill, create a free API key at fal.ai/dashboard/keys and add it to your .env as FAL_API_KEY.
Generate high-quality images via Fal.ai's API. The key is already in .env as FAL_API_KEY — the client needs it as FAL_KEY.
import fal_client, os
os.environ['FAL_KEY'] = os.environ['FAL_API_KEY'] # required alias
result = fal_client.run(
'fal-ai/flux-pro/v1.1-ultra', # best model
arguments={
'prompt': 'your prompt here',
'image_size': 'square_hd', # 1:1 for Instagram feed
'num_images': 1,
'output_format': 'jpeg',
'safety_tolerance': '5' # 1=strict, 6=permissive
}
)
url = result['images'][0]['url'] # direct CDN URL, download with requests
| Endpoint | Quality | Speed | Use for |
|---|---|---|---|
| fal-ai/flux-pro/v1.1-ultra | ⭐⭐⭐⭐⭐ | ~8s | Hero shots, campaign images |
| fal-ai/flux-pro/v1.1 | ⭐⭐⭐⭐ | ~5s | Batch content, iterations |
| fal-ai/flux/dev | ⭐⭐⭐ | ~3s | Rapid prototyping |
| fal-ai/flux-realism | ⭐⭐⭐⭐ | ~6s | Photorealistic shots |
Default to flux-pro/v1.1-ultra unless speed matters more than quality.
| Value | Pixels | Use for |
|---|---|---|
| square_hd | 1024×1024 | Instagram feed (1:1) |
| portrait_4_3 | 768×1024 | Instagram portrait feed |
| portrait_16_9 | 576×1024 | Instagram Stories / Reels cover |
| landscape_4_3 | 1024×768 | Wide format |
| landscape_16_9 | 1024×576 | YouTube thumbnail |
result = {
'images': [{'url': str, 'width': int, 'height': int, 'content_type': str}],
'timings': {'inference': float},
'seed': int,
'has_nsfw_concepts': [bool],
'prompt': str # may be refined by model
}
import requests
response = requests.get(url)
with open('output/image.jpg', 'wb') as f:
f.write(response.content)
For on-brand Starchild content, prompts should include:
deep black background, dark cinematic atmosphereamber orange glow, #F84600 orange lightabstract, minimal, geometric, high contrastGood prompt template:
[abstract concept], deep black background, [specific visual element],
amber orange light refraction, cinematic, ultra detailed,
8k, high contrast, minimal composition, no text
After generating, apply the brand composition script:
skills/fal-image/scripts/compose_instagram.py
This adds:
os.environ['FAL_KEY'] = os.environ['FAL_API_KEY'] — the client looks for FAL_KEY not FAL_API_KEYsafety_tolerance: '5' is fine for abstract/artistic content; lower it for anything near real peoplefal_client.submit() + fal_client.result() for batch jobstools
TQX (tqx.trade) HK/US stock quant workflow via tqx-cli: cross-sectional factor analysis, event-driven strategy backtests on the panda_backtest engine, and agent-driven automated paper trading. Use when the user wants to run factor IC/IR analysis, backtest a Python trading strategy on Hong Kong or US stocks, or set up agent-automated trading (e.g. "backtest a moving-average strategy on AAPL", "analyze a momentum factor on HK stocks", "let the agent trade my paper account").
tools
中学物理实验教学参赛方案套件。包含四个完整实验(单摆测g、声悬浮测声速、向心力定量演示仪、电磁阻尼定量研究),每套含固件源码、3D打印图纸、教学PPT、教学文稿、采购清单、调试手册、视频分镜脚本、模拟器。Use when a teacher/student needs a complete, classroom-ready physics experiment package for competition or teaching.
development
End-to-end blog management for AI agents. Write, import, build, preview, and publish articles using the blog template. Covers draft workflow, article import, SEO, OG images, and deployment.
development
ESP8266/ESP32 + 磁簧开关/霍尔传感器 单摆测重力加速度实验套件。 硬件搭建→固件烧录→数据采集→Web仪表盘→g值计算→教学文档,一站式完成。 Use when the user wants to build a pendulum g-measurement experiment, measure gravity with a micro-controller, or needs a complete physics experiment package with hardware + firmware + dashboard + teaching materials.