Turn one topic into a finished Vox-style paper-collage explainer/ad video — automated end to end on Atlas Cloud + ffmpeg. An agent skill.
Python aiai-videoclaude-codeclaude-skillcollage-videodsh-pluginexplainer-videoffmpeggenerative-aillmmotion-graphicspythontext-to-videottsvideovideo-generationvox
images: default 1k + configurable image_model (adds GPT Image 2)
Alisa08081f42111e3765
diff --git a/.gitignore b/.gitignoreindex 3cfd56e..a4163e2 100644--- a/.gitignore+++ b/.gitignore@@ -17,8 +17,9 @@ credentials.jsontoken.json*.key-# internal working notes (Chinese-only; kept local, not published)+# internal working notes (kept local, not published)PROGRESS.md+PROMO_SUBMISSIONS.md# references/: publish only the English .md docs; keep local reference# material (videos, images, non-English notes) out of the repodiff --git a/SKILL.md b/SKILL.mdindex dbd5e1e..2bd59d7 100644--- a/SKILL.md+++ b/SKILL.md@@ -138,6 +138,8 @@ Add a `shots` array to each beat (see schema). Give each shot its own short `sce"theme": "american-retro", // THEME_PRESET (styles.THEME_PRESETS) — the LOOK layer"arc": "timeline", // narrative arc (beat-layer.md) — the STORY skeleton"video_model": "google/gemini-omni-flash/image-to-video", // Kling for real people+ "image_model": "google/nano-banana-2/text-to-image", // keyframes; or openai/gpt-image-2/text-to-image+ "image_resolution": "1k", // 1k (default) | 2k | 4k"motion_style": "punchy", // amplitude: calm | punchy | max (theme sets a default)"constraints": "strict", // strict = defect guards on | loose = let AI explore + re-roll"voice": {"voice_id": "leo", "language": "en", "speed": 1.0},@@ -173,7 +175,8 @@ Model IDs change — fetch the live list first: `GET https://api.atlascloud.ai/a| Job | Model | Note ||---|---|---|-| Keyframe / collage poster | `google/nano-banana-2/text-to-image` | renders CN+EN text well |+| Keyframe / collage poster | `google/nano-banana-2/text-to-image` | default; renders CN+EN text well; `image_resolution` 1k/2k/4k |+| Keyframe (alternative) | `openai/gpt-image-2/text-to-image` | set via `image_model`; size+quality auto-mapped from aspect+resolution || Cut out an element | `youchuan/v8.1/remove-background` | advanced path only || Animate (non-real content) | `google/gemini-omni-flash/image-to-video` | keeps text stable, layered motion || Animate (**real people / brands**) | `kwaivgi/kling-video-o3-pro/image-to-video` | Omni & Seedance BLOCK celebrities |diff --git a/SKILL.zh.md b/SKILL.zh.mdindex 31d5154..fc20166 100644--- a/SKILL.zh.md+++ b/SKILL.zh.md@@ -108,6 +108,8 @@ Vox 拼贴的**样子**和**动效**是两件事、两步:"theme": "american-retro", // 主题预置(styles.THEME_PRESETS)——"看的层""arc": "timeline", // 叙事弧(beat-layer.md)——"故事骨架""video_model": "google/gemini-omni-flash/image-to-video", // 真人用 Kling+ "image_model": "google/nano-banana-2/text-to-image", // 关键帧;也可换 openai/gpt-image-2/text-to-image+ "image_resolution": "1k", // 1k(默认)| 2k | 4k"motion_style": "punchy", // 幅度:calm | punchy | max(主题给默认)"constraints": "strict", // strict = 开防缺陷护栏 | loose = 放开探索 + 抽卡"voice": {"voice_id": "leo", "language": "en", "speed": 1.0},@@ -142,7 +144,8 @@ Vox 拼贴的**样子**和**动效**是两件事、两步:| 环节 | 模型 | 说明 ||---|---|---|-| 关键帧 / 拼贴海报 | `google/nano-banana-2/text-to-image` | 中英文字都好 |+| 关键帧 / 拼贴海报 | `google/nano-banana-2/text-to-image` | 默认;中英文字都好;`image_resolution` 1k/2k/4k |+| 关键帧(备选)| `openai/gpt-image-2/text-to-image` | 设 `image_model` 即用;size+quality 按 aspect+分辨率自动映射 || 抠单个零件 | `youchuan/v8.1/remove-background` | 仅高阶路线 || 动效(非真人) | `google/gemini-omni-flash/image-to-video` | 文字稳、分层运动 || 动效(**真人 / 品牌**) | `kwaivgi/kling-video-o3-pro/image-to-video` | Omni 和 Seedance 拦名人 |diff --git a/scripts/keyframes.py b/scripts/keyframes.pyindex 858ccd2..6c42e4d 100644--- a/scripts/keyframes.py+++ b/scripts/keyframes.py@@ -14,7 +14,7 @@ import osimport sysfrom provider import get_provider, run_jobs-from styles import compose_keyframe_prompt, compose_collage_prompt, resolve_theme+from styles import compose_keyframe_prompt, compose_collage_prompt, resolve_theme, image_paramsIMAGE_MODEL = "google/nano-banana-2/text-to-image"@@ -33,6 +33,8 @@ def run(project_dir):with open(bpath) as f:doc = json.load(f)aspect = doc.get("aspect", "16:9")+ img_model = doc.get("image_model", IMAGE_MODEL) # default nano-banana-2; e.g. openai/gpt-image-2/text-to-image+ img_res = doc.get("image_resolution", "1k") # 1k (default) | 2k | 4kstyle = doc.get("style", "painterly")theme = resolve_theme(doc.get("theme")) or {} # theme preset -> full look bundlecollage_style = theme.get("idiom") or doc.get("collage_style", "american-retro")@@ -61,8 +63,8 @@ def run(project_dir):prompt = compose_keyframe_prompt(era, scene, beat["title_cn"],beat["title_en"], aspect)shot["keyframe_prompt"] = prompt- specs[key] = (lambda p=prompt: prov.submit_image(IMAGE_MODEL, p,- aspect_ratio=aspect, resolution="2k"))+ specs[key] = (lambda p=prompt: prov.submit_image(img_model, p,+ **image_params(img_model, aspect, img_res)))by_key[key] = shotdone = run_jobs(prov, specs, poll_s=3, stall_s=75, max_retries=2, deadline_s=300)diff --git a/scripts/style_bakeoff.py b/scripts/style_bakeoff.pyindex d9d09a9..bd396da 100644--- a/scripts/style_bakeoff.py+++ b/scripts/style_bakeoff.py@@ -17,7 +17,7 @@ import osimport sysfrom provider import get_provider, run_jobs-from styles import compose_collage_prompt, STYLE_LIBRARY, THEME_PRESETS, resolve_theme+from styles import compose_collage_prompt, STYLE_LIBRARY, THEME_PRESETS, resolve_theme, image_paramsIMAGE_MODEL = "google/nano-banana-2/text-to-image"# candidates are THEME names (full look bundles); Claude picks topic-fitting ones@@ -33,6 +33,8 @@ def run(project_dir, styles=None, beat_index=0):with open(os.path.join(project_dir, "beats.json")) as f:doc = json.load(f)aspect = doc.get("aspect", "16:9")+ img_model = doc.get("image_model", IMAGE_MODEL)+ img_res = doc.get("image_resolution", "1k")beat = doc["beats"][beat_index]shot = first_shot(beat)scene, bg = shot["scene"], beat.get("bg", "warm ochre")@@ -46,8 +48,8 @@ def run(project_dir, styles=None, beat_index=0):prompt = compose_collage_prompt(scene, tcn, ten, bg, aspect,style=tp.get("idiom", name), palette=tp.get("palette"),type_style=tp.get("type_style"), finish=tp.get("finish"))- specs[name] = (lambda p=prompt: prov.submit_image(IMAGE_MODEL, p,- aspect_ratio=aspect, resolution="2k"))+ specs[name] = (lambda p=prompt: prov.submit_image(img_model, p,+ **image_params(img_model, aspect, img_res)))tag = "library" if name in STYLE_LIBRARY else "custom"print(f"[{name}] ({tag}) queued")diff --git a/scripts/styles.py b/scripts/styles.pyindex 91a0f59..4fa68d0 100644--- a/scripts/styles.py+++ b/scripts/styles.py@@ -134,6 +134,26 @@ def resolve_theme(name):return THEME_PRESETS.get(name)+# GPT-Image takes absolute size + quality; nano-banana/seedream/etc take aspect_ratio + resolution.+_GPT_SIZE = {+ "16:9": {"1k": "1536x1024", "2k": "2048x1152", "4k": "3840x2160"},+ "9:16": {"1k": "1024x1536", "2k": "1152x2048", "4k": "2160x3840"},+ "1:1": {"1k": "1024x1024", "2k": "2048x2048", "4k": "2048x2048"},+ "3:4": {"1k": "768x1024", "2k": "2160x2880", "4k": "2160x2880"},+ "4:3": {"1k": "1024x768", "2k": "2880x2160", "4k": "2880x2160"},+}+_GPT_QUALITY = {"1k": "medium", "2k": "high", "4k": "high"}+++def image_params(model, aspect="16:9", resolution="1k"):+ """Per-model text-to-image params. GPT-Image needs size+quality; most other+ text-to-image models (nano-banana, seedream, ...) take aspect_ratio + resolution."""+ if "gpt-image" in model:+ return {"size": _GPT_SIZE.get(aspect, {}).get(resolution, "1024x1024"),+ "quality": _GPT_QUALITY.get(resolution, "medium")}+ return {"aspect_ratio": aspect, "resolution": resolution}++def _headline(title_cn, title_en, style, type_style=None):if title_cn: # bilingual (CJK styles)return (" " + TITLE_TREATMENT.format(title_cn=title_cn, title_en=title_en))diff --git a/vox-director.skill b/vox-director.skillindex 6db3421..9f0067c 100644Binary files a/vox-director.skill and b/vox-director.skill differ