Skip to content
FramesField
HOST DIRECTORY · PYTHON & HEADLESS APIS
raw .md ↗ Verified Dec 1, 2026

Python API and Headless Media Batch Automation Skills

Production rulebooks, validated ComfyUI HTTP/WebSocket API JSON graphs, and media MCP bridges for automating Gemini Omni 1.2 Flash, Kling 4.0, Runway Gen-4 / Gen-4.5, Nano Banana 2.1, fal.ai Seedance/Seedream, Deepgram Aura-2 / ElevenLabs TTS, Whisper transcription, Sharp WebP/AVIF, Satori OG cards, 300 DPI print exports, and local GPU render queues without runaway API spend.

TARGET INSTALL LOCATION · 31 VERIFIED MODULES
.claude/skills/<name>/SKILL.md | .agents/skills/<name>/SKILL.md | ComfyUI http://127.0.0.1:8188/prompt

Combine pure SKILL.md automation contracts from /raw/skills/<slug> with validated API-format ComfyUI graphs so every cloud or local media batch script ships idempotent manifests, jittered exponential backoff, and hard spend ceilings.

Executable Payloads

All 31 Verified Python & Batch APIs Modules

Direct raw endpoints at /raw/skills/[slug]
04
ComfyUI JSON ComfyUI wan22-dual-expert-i2v.api.json

ComfyUI Wan 2.2 Dual-Expert I2V Graph

Complete, runnable ComfyUI API graph JSON for Alibaba Wan 2.2-A14B MoE image-to-video generation—pre-wired with FP8 scaled High/Low-Noise experts, UMT5-XXL encoding, step 10/20 KSamplerAdvanced handoff, Tiled VAE Decode, and native CreateVideo + SaveVideo MP4 output for 24GB GPUs.

09
MCP Server ElevenLabs elevenlabs-mcp.json

ElevenLabs Official MCP Voice and SFX Setup

Connect ElevenLabs' official Model Context Protocol (MCP) server inside Claude Code, Cursor, or Claude Desktop so your agent can synthesize expressive narration, generate custom dry foley sound effects, and save audio stems directly into your project folder.

10
ComfyUI JSON ComfyUI / FLUX FP8 comfyui-flux-keyframes.api.json

ComfyUI FLUX.1 Kontext / Dev Keyframe Batch Graph

Ready-to-run ComfyUI API JSON node graph for batch-generating deterministic 16:9 (1344×768) or 9:16 (768×1344) opening still keyframes locally on 12GB–24GB GPUs using FP8 FLUX weights, fixed integer seeds, and lossless PNG SaveImage output before Wan 2.2 or LTX-2 Image-to-Video.

14
SKILL.md Gemini Omni Flash / Kling 4.0 / Runway APIs SKILL.md

Video API Async Polling and Batch Render Skill

Production SKILL.md rulebook teaching Claude Code, Cursor, and Codex how to write safe batch render scripts for Google Gemini Omni 1.2 Flash, Kling 4.0, and Runway Gen-4 Turbo—enforcing mandatory --dry-run USD cost caps, exponential backoff polling, idempotent manifest.json resume, and automatic zero-billing error guards.

21
SKILL.md OpenAI Audio API / whisper.cpp SKILL.md

Whisper Transcription and ASS Caption Skill

Installable SKILL.md teaching Claude Code, Cursor, and Codex how to transcribe dialogue or voiceovers with OpenAI Whisper / gpt-4o-transcribe, enforce a strict 3–4 word vertical cue limit, correct brand acronyms, and emit cross-platform TikTok/Reels/Shorts safe-zone .ass subtitle scripts.

23
SKILL.md ComfyUI HTTP / WebSocket API SKILL.md

ComfyUI Headless API Batch Runner Skill

Installable SKILL.md teaching Claude Code, Cursor, and Codex how to automate local or cloud-GPU (RunPod/Modal) ComfyUI servers programmatically—uploading input PNGs via /upload/image, patching seeds/prompts into API JSON graphs, tracking completion over WebSocket or /history/{prompt_id}, and fetching finished MP4/PNG outputs via /view.

24
SKILL.md Deepgram Aura-2 / Cartesia Sonic / ElevenLabs SKILL.md

TTS Voiceover and Foley Stem Batch Skill

Installable SKILL.md teaching Claude Code, Cursor, and Codex how to split commercial scripts into timed per-beat voiceover WAV stems via Deepgram Aura-2 ($0.030/1k chars), Cartesia Sonic-3.6 (~$0.038/min), or ElevenLabs (v3 / Flash), generate dry spot foley SFX, lock 48 kHz PCM, and verify exact beat timing via ffprobe. Includes migration guardrails for OpenAI gpt-4o-mini-tts (retiring January 6, 2027).

28
MCP Server Replicate (Multi-Model Media API) replicate-mcp.json

Replicate Official Media Model MCP Server

Connect Replicate's official Model Context Protocol server (mcp.replicate.com or mcp-replicate) inside Claude Code, Cursor, or Claude Desktop so your agent can search, compare, and execute hosted video, image, and audio models (FLUX, Luma Ray 3.2, Recraft V4.1, Wan 2.2, LTX-2) directly from chat.

29
ComfyUI JSON ComfyUI / Lightricks LTX-2 ltx2-i2v-workflow.api.json

ComfyUI Lightricks LTX-2 I2V Video Graph

Runnable headless-ready ComfyUI API graph JSON for Lightricks LTX-2 (compatible across LTX-2, LTX-2.3, and LTX-2.5 released August 2026) open-weight Image-to-Video—pre-wired with LTXVConditioning, LTXVImgToVideo (768×512, 97 frames = 8n + 1), LTXVScheduler, SamplerCustomAdvanced, VAEDecode, and terminal CreateVideo + SaveVideo MP4 output.

31
SKILL.md Node.js Sharp / WebP & AVIF SKILL.md

Sharp WebP, AVIF and Responsive Image Skill

Installable SKILL.md teaching Claude Code, Cursor, and Codex to batch-convert raw AI PNG renders (FLUX 3 Image, Seedream 5.5, Ideogram 4.6, OpenAI GPT-Image-2.6) into responsive 640px, 1280px, and 1920px WebP and AVIF assets using Node.js sharp—stripping EXIF bloat, preserving alpha cutouts, and emitting exact width, height, srcset, and LCP loading attributes.

33
SKILL.md Satori / Sharp / SVG-to-WebP SKILL.md

Satori OG Image and SVG Data Chart Skill

Installable SKILL.md teaching Claude Code, Cursor, and Codex to generate deterministic 1200x630 Open Graph share PNGs with Satori + sharp and crisp 1400px-wide retina SVG-to-WebP data charts directly from real frontmatter or JSON data—with XML escaping, daylight typography, and mandatory visual QA.

37
ComfyUI JSON ComfyUI / 4x-UltraSharp / Print 300 DPI flux-4x-upscale-print.api.json

ComfyUI FLUX High-Res 4x Upscale Graph

Ready-to-run stock ComfyUI API JSON graph that upscales any 1MP AI still (FLUX.1 Schnell, FLUX 3 1K, Ideogram 4.6) locally for $0 via 4x-UltraSharp (UpscaleModelLoader -> ImageUpscaleWithModel), writing both a 300-DPI 4x print master (4096px) and a Lanczos-oversampled 2x retina web master (2048px) with zero custom node packs.

38
SKILL.md FFmpeg / PNG Overlay / Satori SKILL.md

FFmpeg Motion Titles and Safe End-Card Skill

Installable SKILL.md teaching Claude Code, Cursor, and Codex to composite crisp RGBA PNG lower-third title plates, timed fade-in/out callout overlays, and apad-protected static brand end-cards over AI video footage using portable FFmpeg filters that run reliably even on builds lacking libfreetype/drawtext.

39
SKILL.md Seedream 5.5 / Seedance 2.5 / fal.ai SKILL.md

Seedance 2.5 Video and Seedream 5.5 API Batch Skill

Installable SKILL.md teaching Claude Code, Cursor, and Codex to orchestrate 2K multi-reference still and RGBA layer batches in ByteDance Seedream 5.5 ($0.020–$0.035 on BytePlus; $0.03–$0.0405 on fal.ai) and animate approved lossless PNGs in ByteDance Seedance 2.5 (4–30s multi-shot video with native audio, ~$0.22/s 480p draft or ~$0.473/s 720p on fal.ai) with mandatory draft previews, cost caps, and retry logging.

40
SKILL.md Sharp / 300 DPI Print / ComfyUI 4x SKILL.md

Print 300 DPI Bleed and Sharp Export Skill

Installable SKILL.md teaching Claude Code, Cursor, and Codex to calculate exact 300 DPI print pixel targets (including 0.125-inch bleed and safe trim zones), reject under-sized 1MP AI images before press, route upscaling cleanly through 4x-UltraSharp, and stamp 300 DPI metadata with sharp.

45
ComfyUI JSON ComfyUI / FLUX.1 Schnell (Apache 2.0) flux-schnell-4step-apache.api.json

ComfyUI FLUX.1 Schnell 4-Step Commercial Graph

Ready-to-run stock ComfyUI API JSON graph for Black Forest Labs FLUX.1 Schnell (Apache 2.0 commercial open weights): generates crisp 1024x1024 or 1344x768 stills locally in 4 steps (euler/simple, zero CFG overhead) on 8GB–16GB consumer GPUs for $0 API cost with zero custom node packs.

46
Prompt Framework ElevenLabs TTS / Deepgram Aura-2 / Cartesia Sonic / Gemini Omni Flash multilingual-localization-builder.md

Multilingual Ad Localization Script Builder

No-code prompt framework that adapts any English commercial or YouTube script into target languages (Spanish, French, German, Portuguese, Japanese, Arabic) strictly within +/-5% beat syllable parity—preventing the +20% Romance/Germanic speech expansion that breaks visual cuts and forces robotic fast-forwarded TTS.

49
ComfyUI JSON ComfyUI / Alibaba Wan 2.2 I2V (Apache 2.0) wan22-i2v-121f-apache.api.json

ComfyUI Wan 2.2 I2V 121-Frame Apache 2.0 Graph

Stock ComfyUI API JSON graph for Alibaba Wan 2.2 Image-to-Video (Apache 2.0 commercial open weights): animates any 1280x704 (/32-aligned) opening PNG into a 121-frame (4n+1, 5.04s @ 24fps) offline MP4 using native WanImageToVideo, CreateVideo, and SaveVideo nodes with zero cloud API fees and zero NDA data exposure.

52
Prompt Framework ElevenLabs / Deepgram Aura-2 / Cartesia Sonic / any text-to-speech tool voiceover-script-prompt.md

30-Second Voiceover Script Builder (75 Words, Written to Be Spoken)

A no-code prompt builder that turns a topic, an audience and one key point into a voiceover script of about 75 words, which is roughly 30 seconds of speech. It instructs the chat assistant to write for the ear: short sentences, numbers spelled out, no symbols or abbreviations. Paste the result into ElevenLabs or any text-to-speech tool.

58
SKILL.md fal.ai Queue API / Topaz Video API / Sync Lipsync 2.0 / FFmpeg SKILL.md

Topaz 4K Upscale & Sync Lipsync 2.0 fal.ai Batch Skill

Executable SKILL.md playbook teaching Claude Code, Cursor, and Codex how to trim dead settle frames, run fal.ai queue jobs for Topaz Video Upscale (Proteus 4K $0.08/s, Gaia 2 half-price animation $0.04/s) and Sync Lipsync 2.0 ($3/min Standard · $5/min Pro), and re-mux untouched 48 kHz WAV audio at -14 LUFS.

59
SKILL.md Kokoro-82M (Apache 2.0) / Python / FFmpeg SKILL.md

Kokoro-82M Local Apache 2.0 TTS Batch Skill

Executable SKILL.md playbook teaching Claude Code, Cursor, and Codex how to synthesize zero-API-cost commercial voiceovers locally using Apache 2.0 Kokoro-82M (82M params, runs on CPU or GPU), resample native 24 kHz WAV outputs to broadcast 48 kHz stereo, normalize to -14 LUFS, and emit exact scene duration manifests.

61
Prompt Framework ElevenLabs Music API / Suno v6 Pro / Stable Audio Open commercial-music-brief-builder.md

Commercial Music Brief & Stem Prompt Builder

A no-code interactive prompt builder that compiles clean musicologist spotting briefs—locking BPM, key, 3 restrained instruments, an intro/groove/resolve energy curve, and strict vocal exclusion—ready for ElevenLabs Music API ($0.60/min) or Suno v6 Pro without clashing against spoken voiceover.

62
SKILL.md fal.ai API / ElevenLabs Music / Topaz Image Upscale / FFmpeg SKILL.md

ElevenLabs Music & Topaz Print Upscale fal.ai Skill

Executable SKILL.md playbook teaching Claude Code, Cursor, and Codex how to automate two high-ROI fal.ai finishing passes: ElevenLabs Music API ($0.60/min rounded up, force_instrumental: true, 48 kHz M&E conform + 2 kHz ducking) and Topaz Image Upscale API ($0.08 up to 24MP 300 DPI print, $0.16 48MP, $0.32 96MP, tuned face enhancement).

66
SKILL.md fal.ai API / FASHN Try-On v1.6 / ByteDance SeedVR2 / FFmpeg SKILL.md

FASHN Virtual Try-On & SeedVR2 Video Upscale fal.ai Skill

Executable SKILL.md playbook teaching Claude Code, Cursor, and Codex how to automate two high-precision fal.ai visual production pipelines under one FAL_KEY: FASHN Virtual Try-On v1.6 ($0.075/look, segmentation_free + Topaz 3× zoom finish) and ByteDance SeedVR2 temporal video restoration ($0.001 per output megapixel, pre-flight MP cost math, and CFR 24fps conform).

67
SKILL.md fal.ai API / ElevenLabs Scribe v2 / Python / FFmpeg SKILL.md

ElevenLabs Scribe v2 STT to Synced SRT & 9:16 ASS Captions Skill

Executable SKILL.md playbook teaching Claude Code, Cursor, and Codex how to extract timeline-aligned 16 kHz mono WAV audio, pin ElevenLabs Scribe v2 on fal.ai ($0.008/min · $0.0104/min w/ custom brand keyterms and speaker diarization), and deterministically emit 38-char YouTube SRTs plus 3-word active-highlight 9:16 Reels ASS captions.

69
Prompt Framework Claude / ChatGPT / Gemini -> Kokoro 82M / Chatterbox TTS / ElevenLabs podcast-audiobook-pacing-builder.md

Podcast & Audiobook Script Pacing Prompt Builder

A no-code interactive prompt builder that transforms written book chapters, Substack essays, or technical articles into ear-ready spoken TTS scripts—expanding acronyms and numbers phonetically, splitting walls of text into 250–450 character chunks, and adding calm breath pacing optimized for Kokoro 82M, Chatterbox TTS, or ElevenLabs.

70
SKILL.md fal.ai API / Bria RMBG 2.0 / BiRefNet v2 / IC-Light V2 SKILL.md

Bria RMBG 2.0, BiRefNet v2 & IC-Light V2 fal.ai Skill

Executable SKILL.md playbook teaching Claude Code, Cursor, and Codex how to automate zero-halo product cutouts and directional relighting under one FAL_KEY: Bria RMBG 2.0 ($0.018 licensed API / $0.03 prompted), MIT BiRefNet v2 (2048px matting with refine_foreground + output_mask), and IC-Light V2 ($0.10/MP with initial_latent light direction + Topaz 24MP finish).

71
SKILL.md fal.ai API / ElevenLabs Audio Isolation / FFmpeg / ffprobe SKILL.md

ElevenLabs Audio Isolation & ACX / Podcast RSS Master Skill

Executable SKILL.md playbook teaching Claude Code, Cursor, and Codex how to clean noisy podcast interviews, Zoom MP4s, and bedroom audiobook recordings via ElevenLabs Audio Isolation ($0.10/min on fal.ai) and master verified 44.1 kHz 192 kbps CBR MP3 outputs passing Amazon ACX (-18 to -23 dB RMS, <=-3.0 dB peak, <-60 dB floor) or Apple/Spotify Podcast RSS (-16 LUFS).

72
Prompt Framework FLUX LoRA Fast Trainer / fal-ai/flux-lora / Local ComfyUI flux-lora-caption-prompt-builder.md

FLUX LoRA Dataset Captioning & Training Prompt Builder

An interactive no-code builder that writes leak-free FLUX LoRA difference captions (.txt files) and calibrated production inference prompts—pairing a rare synthetic trigger word with explicit background/lighting separation so $2.00 custom brand style, mascot, and SKU LoRAs never bake studio walls into your concept.

74
SKILL.md fal.ai Queue API / FLUX LoRA / Wan VACE 14B / FFmpeg SKILL.md

FLUX LoRA Training & Wan VACE 14B fal.ai Skill

Executable SKILL.md playbook teaching Claude Code, Cursor, and Codex to run long-running fal.ai GPU pipelines cleanly via queue.fal.run (zero 504 timeouts): train custom FLUX LoRAs ($2.00/1,000 steps) and archive .safetensors locally, run calibrated fal-ai/flux-lora inference ($0.035/MP, CFG 3.5), and execute masked Alibaba Wan VACE 14B video object removal ($0.08/s) with +12px FFmpeg mask dilation.

75
SKILL.md fal.ai Queue API / Meta SAM 2 / Kling O1 V2V Edit / FFmpeg SKILL.md

Meta SAM 2 Video Masking & Kling O1 V2V fal.ai Skill

Executable SKILL.md playbook teaching Claude Code, Cursor, and Codex to run Meta SAM 2 temporal video masking (fal-ai/sam2/video ~$0.02/clip or Apache-2.0 local) with verified FFmpeg +12px shadow dilation AND mask-free Kling O1 Video-to-Video Edit (fal-ai/kling-video/o1/video-to-video/edit at $0.168/s with @Image1 anchoring and keep_audio: true) via async queue.fal.run.

Host Architecture & Quickstart

How Python & Batch APIs Loads & Executes These Modules

Creative media APIs behave nothing like standard synchronous REST CRUD endpoints. A single Google Gemini Omni 1.2 Flash, Kling 4.0, Runway Gen-4.5, or fal.ai Seedance 1.0 Pro call takes 40 to 180 seconds, bills $0.25–$1.18+ per render, returns ephemeral signed URLs that expire within hours, and silently double-bills your account if a naive retry loop re-submits completed jobs after a network hiccup. Likewise, local ComfyUI servers expose an asynchronous HTTP (POST /prompt, GET /history/<id>) and WebSocket execution model that rejects raw UI JSON with "Prompt has no outputs" unless properly wrapped in {"prompt": graph}. This directory unifies every FramesField Python, Node.js Sharp/Satori, ComfyUI API JSON, and media MCP skill around deterministic studio batch engineering: two-stage keyframe-then-motion manifests, content-hashed disk caches for idempotent restarts, bounded concurrency semaphores, immediate local persistence with ffprobe / Sharp verification, and hard MAX_BATCH_USD dry-run guards.

Install Core Cloud & Local Media Batch Automation Skills install-python-media-batch-stack.sh
# 1. Install verified async cloud & local batch SKILL.md contracts from /raw/skills/
mkdir -p .agents/skills/video-api-batch-runner   .agents/skills/seedance-seedream-batch   .agents/skills/tts-foley-batch   .agents/skills/comfyui-batch-runner

curl -fsSL https://framesfield.com/raw/skills/veo-kling-api-batch-runner   -o .agents/skills/video-api-batch-runner/SKILL.md
curl -fsSL https://framesfield.com/raw/skills/seedance-seedream-fal-batch-skill   -o .agents/skills/seedance-seedream-batch/SKILL.md
curl -fsSL https://framesfield.com/raw/skills/openai-elevenlabs-narration-batch-skill   -o .agents/skills/tts-foley-batch/SKILL.md
curl -fsSL https://framesfield.com/raw/skills/comfyui-headless-batch-runner-skill   -o .agents/skills/comfyui-batch-runner/SKILL.md

# 2. Download a validated Apache 2.0 ComfyUI API JSON graph for local HTTP queuing
curl -fsSL https://framesfield.com/raw/skills/comfyui-flux-schnell-apache-4step-graph   -o flux_schnell.api.json

# 3. Verify YAML frontmatter and strict JSON integrity before writing batch scripts
head -n 3 .agents/skills/video-api-batch-runner/SKILL.md
python3 -m json.tool flux_schnell.api.json > /dev/null && echo "ComfyUI API JSON valid"
Proven Combinations

Recommended Python & Batch APIs Starter Bundles

BUNDLE 01

Cloud Async Video & Multilingual Audio Batch Engine

Video API Async Batch Runner (Skill 14) + Seedance/Seedream fal.ai Batch (Skill 39) + TTS & Foley Batch (Skill 24) + Whisper ASS Captions (Skill 21)

Expected outcome: Process 50+ SKU rows from CSV into locked 4K keyframes, Gemini Omni 1.2 Flash / Kling 4.0 / Runway Gen-4.5 clips, timed Deepgram Aura-2 or ElevenLabs narration stems, and word-accurate ASS subtitles with resumable spend caps.

BUNDLE 02

Offline Apache 2.0 Local ComfyUI Render Farm

ComfyUI Headless Batch Runner (Skill 23) + FLUX.1 Schnell Apache Graph (Skill 45) + Wan 2.2 Apache I2V Graph (Skill 49) + 4x-UltraSharp Print Upscaler (Skill 37)

Expected outcome: Queue zero-API-cost commercial stills, 300 DPI print upscales, and 121-frame local video clips overnight over 127.0.0.1:8188 with full Apache 2.0 commercial clearance.

BUNDLE 03

Programmatic Web Graphics, OG Cards & Print Packaging Pipeline

Satori OG & SVG Chart Generator (Skill 33) + Sharp Responsive WebP/AVIF (Skill 31) + Print 300 DPI CMYK Export (Skill 40)

Expected outcome: Automate build-time social cards, multi-width responsive WebP/AVIF asset sets, and print-ready bleed-expanded packaging artwork inside Node.js or Python CI pipelines.

Operational Hygiene

Python & Batch APIs Security, Hygiene & Performance Rules

RULE 01

Require deterministic manifest keys and --dry-run budget ceilings on every script

Hash {model, prompt, seed, resolution, duration} into a deterministic output filename and record job status inside a local manifest.jsonl file. Running --dry-run first prints total estimated dollar spend against MAX_BATCH_USD, and resuming after a crash skips already-verified renders with zero duplicate billing.

RULE 02

Separate cheap still keyframes ($0.03–$0.04) from video motion ($0.25–$1.18+)

Never batch-render 50 raw text-to-video takes blindly. Run Stage 1 image generation first (Nano Banana 2.1, Seedream 4.5, FLUX.1 Kontext Pro, or local Apache 2.0 FLUX.1 Schnell at $0), inspect a contact sheet for label accuracy and framing, and only enqueue Stage 2 Image-to-Video jobs for human-approved keyframes.

RULE 03

Use bounded concurrency, jittered polling, and immediate local downloads

Cap concurrent API submissions to 3–5 in-flight workers, honor Retry-After on HTTP 429, poll status endpoints with capped exponential backoff (3s -> 20s), and immediately stream completed MP4/PNG/WAV files from expiring vendor CDN links to durable storage followed by ffprobe or Sharp integrity validation.

RULE 04

Wrap every ComfyUI API graph in {"prompt": graph} and purge VRAM between model swaps

When automating local GPUs via http://127.0.0.1:8188/prompt, load clean API-format JSON, inject per-SKU prompt text and integer seeds into target node IDs, listen for execution completion via WebSocket or /history/<prompt_id>, and call POST /free between heavy checkpoint switches on 12GB–16GB cards.

Common Setup Issues

Troubleshooting Python & Batch APIs Installation Errors

Video API batch script stalls on polling, triggers HTTP 429 errors, or double-bills retries

Implement idempotent job-ID caching in manifest.jsonl, separate submission from status polling with bounded semaphores (asyncio.Semaphore(4)), and compare exact per-second API unit pricing before scaling beyond 10 takes.

Open dedicated playbook →
Python POST to ComfyUI http://127.0.0.1:8188/prompt fails with HTTP 400 "Prompt has no outputs"

Ensure your script sends {"prompt": graph} (not the raw flat node dictionary) and uses verified API-format graphs containing a real terminal SaveImage or SaveVideo node.

Open dedicated playbook →
Overnight local GPU batch renders crash halfway through with torch.OutOfMemoryError

Keep batch_size=1 inside all local graphs, launch ComfyUI with PYTORCH_CUDA_ALLOC_CONF=expandable_segments:True and --lowvram, switch VAEDecode to VAEDecodeTiled, and validate card headroom in our VRAM Calculator.

Open dedicated playbook →
Automated packaging print exports fail prepress checks for dull CMYK color or missing bleed

Run Skill 40 (print-300dpi-cmyk-bleed-export-skill) with exact 300 DPI pixel dimensions plus 0.125-inch (3mm) bleed expansion and ICC profile conversion rather than sending raw RGB PNGs to print vendors.

Open dedicated playbook →

Python & Batch APIs Setup FAQs

How do I prevent a Python video batch script from burning hundreds of dollars in an accidental retry loop?
Enforce three safeguards taught across Skill 14 and Skill 39: require an explicit --dry-run flag that calculates worst-case unit cost before sending any live request, abort if projected spend exceeds MAX_BATCH_USD, and persist every submitted provider job_id and completed file hash to a local manifest.jsonl so restarts poll or skip existing work instead of re-submitting.
When should a headless batch pipeline call cloud APIs versus a local ComfyUI HTTP queue?
Route to cloud APIs (Gemini Omni 1.2 Flash, Kling 4.0, Runway Gen-4 / Gen-4.5, Seedance 1.0 Pro, Deepgram Aura-2, ElevenLabs) when you need native audio-video lip-sync, sub-minute parallel burst throughput, or zero local GPU maintenance. Route to local ComfyUI HTTP queues (FLUX.1 Schnell, Wan 2.2, LTX-2.5, 4x-UltraSharp) when running high-volume overnight SKU batches, strict NDA client assets that cannot leave your network, or $0-per-render commercial Apache 2.0 loops.
Why do FramesField batch skills split keyframe generation and video animation into two separate stages?
Still keyframes cost $0.03–$0.04 (or $0 locally on FLUX.1 Schnell), whereas 5–8 second video takes cost $0.25–$1.18+ and frequently require 2–3 retries when prompted blind. Generating and approving keyframes first cuts total campaign API spend by 40%–65% while guaranteeing product labels and character faces stay locked.
Can the Node.js Sharp, Satori, and FFmpeg skills run inside headless CI runners like GitHub Actions?
Yes. Sharp WebP/AVIF compression (Skill 31), Satori SVG/PNG OG card rendering (Skill 33), print bleed sizing (Skill 40), and FFmpeg finishing run deterministically on standard Linux CI runners with zero GPU requirements—making them ideal for automated e-commerce catalog builds and programmatic marketing pipelines.
How do I keep programmatically generated Deepgram or ElevenLabs narration synced with Whisper captions?
Generate dry 48 kHz WAV narration stems per beat (using Deepgram Aura-2, Cartesia Sonic-3.6, or ElevenLabs via Skill 24 openai-elevenlabs-narration-batch-skill—avoiding OpenAI /v1/audio/speech TTS, which shuts down January 6, 2027), probe exact stem durations with ffprobe, transcribe the finalized audio through Skill 21 (whisper-srt-and-ass-caption-pipeline-skill) with timestamp_granularities=["word"], and burn or mux captions only after final edit timing is locked.
Use this page in AI tools or notes
raw .md