Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add S3YED/appie-kit --skill media-generationgit clone --depth 1 https://github.com/S3YED/appie-kitWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/s3yed/appie-kit/media-generation)<a href="https://agentmods.dev/skills/s3yed/appie-kit/media-generation"><img src="https://agentmods.dev/badge/skills/s3yed/appie-kit/media-generation/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/s3yed/appie-kit/media-generation"><img src="https://agentmods.dev/badge/skills/s3yed/appie-kit/media-generation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00040 | $0.01789 |
| Opus 5.5 | $0.00016 | $0.00716 |
| Sonnet 5.5 | $0.00008 | $0.00358 |
| Haiku 4.5 | $0.00004 | $0.00179 |
Grade A, and why
media-generation scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl -X POST "https://queue.fal.run/fal-ai/{app}/requests/{id}/status" \ How it starts
The opening of the file, as written. The whole thing — 184 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AI Media Generation (fal.ai & Similar APIs)
When to Use
- User wants to create a talking-head video from a photo + audio
- User asks for image-to-video, lipsync, or face animation
- Any paid API media generation task (fal.ai, etc.)
- Uploading/serving generated media files
Principles
Always Estimate Costs Before Running
NEVER fire a paid API call without estimating the cost first. This is the #1 rule from Seyed after the $16 fugu-sync3 incident.
# Sync-3 v3 image-to-video: $0.1333 per output second
# 71s audio = 71 × $0.1333 = ~$9.46
Cost estimation checklist:
- Look up the model's pricing (per-second, per-video, per-image)
- Calculate:
duration × unit_price = estimated_cost - Present to user with balance/remaining info
- Only proceed after user confirms
Bulletproof Async Workflow (fal.ai)
The correct sequence for long-running fal.ai jobs is:
1. submit() → get SyncRequestHandle
2. IMMEDIATELY save handle.request_id to disk ← CARDINAL RULE
3. Poll via REST API (GET) until Completed
4. Download result video
5. Compress if needed (Telegram 50MB limit)
6. Clean up temp files
NEVER use subscribe() — it blocks until completion with no request_id fallback. If the client disconnects mid-processing, the result is unrecoverable and credits are wasted.
Request ID Recovery
Even with proper save, if the polling process dies:
- The saved request_id lets you recover via REST API
- Use GET on
https://queue.fal.run/fal-ai/{app}/requests/{request_id} - This returns the full result JSON including video URL
- The
from_request_id()method in fal-client requires anhttpx.Clientinstance (internal) — use raw REST API instead
Supported Models & Pricing
fal.ai — sync-3 Lipsync
| Model | Endpoint | Pricing | Notes |
|---|---|---|---|
| sync-3 image-to-video | fal-ai/sync-lipsync/v3/image-to-video |
$0.1333/sec output | Photo + audio → talking video |
| sync-3 video-to-video | fal-ai/sync-lipsync/v3 |
~$0.13/sec | Existing video + new audio |
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 3mo ago First seen · 184 lines · 40 tokens per session scan A bb76a8d37533
media-generation is a skill published in the GitHub repository S3YED/appie-kit (14 stars, last pushed 3mo ago), licensed MIT. It adds 40 tokens to every session and 1,789 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.
media-generation compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| media-generationS3YED/appie-kit | Skill | 14 | 3mo ago | MIT | A | 40 | Claude Code, Codex |
| seo-geo-optimizerViryaZheng/recomby-geo | Skill | 463 | 5mo ago | MIT | A | 121 | Claude Code |
| internal-linking-optimizerViryaZheng/recomby-geo | Skill | 463 | 5mo ago | MIT | A | 38 | Claude Code |
| geo-pipelineViryaZheng/recomby-geo | Skill | 463 | 5mo ago | MIT | A | 169 | Claude Code |
| geo-review-htmlViryaZheng/recomby-geo | Skill | 463 | 5mo ago | MIT | A | 140 | Claude Code |
| content-quality-auditorViryaZheng/recomby-geo | Skill | 463 | 5mo ago | MIT | C | 44 | Claude Code |
| content-writerViryaZheng/recomby-geo | Skill | 463 | 5mo ago | MIT | C | 163 | Claude Code |