Clean Audio
hassancs91/claude-youtube-editor
Voice/audio cleanup step of the AI Video Editor pipeline — diagnose a video's background noise, pick the right denoise method, and produce a cleaned master (voice isolated, levels preserved, video…
Generate or edit images, videos, or audio in the current task.
$ npx skills add clacky-ai/openclacky --skill media-gen -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install clacky-ai/openclacky media-gen --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/clacky-ai/openclacky.git skills-src && mkdir -p .claude/skills && cp -r skills-src/lib/clacky/default_skills/media-gen .claude/skills/media-gen && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "media-gen" agent skill from https://github.com/clacky-ai/openclacky/tree/main/lib/clacky/default_skills/media-gen into .claude/skills/media-gen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "media-gen", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/clacky-ai/openclacky/tree/main/lib/clacky/default_skills/media-genType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add clacky-ai/openclacky --skill media-gen -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install clacky-ai/openclacky media-gen --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/clacky-ai/openclacky.git skills-src && mkdir -p .agents/skills && cp -r skills-src/lib/clacky/default_skills/media-gen .agents/skills/media-gen && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "media-gen" agent skill from https://github.com/clacky-ai/openclacky/tree/main/lib/clacky/default_skills/media-gen into .agents/skills/media-gen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "media-gen", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add clacky-ai/openclacky --skill media-gen -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install clacky-ai/openclacky media-gen --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/clacky-ai/openclacky.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/lib/clacky/default_skills/media-gen .cursor/skills/media-gen && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "media-gen" agent skill from https://github.com/clacky-ai/openclacky/tree/main/lib/clacky/default_skills/media-gen into .cursor/skills/media-gen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "media-gen", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/clacky-ai/openclacky.git --path lib/clacky/default_skills/media-gen--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add clacky-ai/openclacky --skill media-gen -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install clacky-ai/openclacky media-gen --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/clacky-ai/openclacky.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/lib/clacky/default_skills/media-gen .gemini/skills/media-gen && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "media-gen" agent skill from https://github.com/clacky-ai/openclacky/tree/main/lib/clacky/default_skills/media-gen into .gemini/skills/media-gen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "media-gen", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install clacky-ai/openclacky media-genInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add clacky-ai/openclacky --skill media-gen -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/clacky-ai/openclacky.git skills-src && mkdir -p .github/skills && cp -r skills-src/lib/clacky/default_skills/media-gen .github/skills/media-gen && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "media-gen" agent skill from https://github.com/clacky-ai/openclacky/tree/main/lib/clacky/default_skills/media-gen into .github/skills/media-gen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "media-gen", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add clacky-ai/openclacky --skill media-gen -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install clacky-ai/openclacky media-gen --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/clacky-ai/openclacky.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/lib/clacky/default_skills/media-gen .opencode/skills/media-gen && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "media-gen" agent skill from https://github.com/clacky-ai/openclacky/tree/main/lib/clacky/default_skills/media-gen into .opencode/skills/media-gen/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "media-gen", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
media-genGenerate or edit images, videos, or audio in the current task.
Media Gen is an agent skill from clacky-ai/openclacky. Generate or edit images, videos, or audio in the current task. Use whenever the user asks to create/generate/produce or edit/modify a picture / image / illustration / cover / poster / icon / artwork, a video / clip / animation, or speech / voiceover / narration / TTS / ambient audio / soundscapes — e.g. generate image, draw, design a cover, edit this image, change the background, text-to-video, generate speech; 画一张, 配图, 编辑图片, 改图, 换背景, 做个视频, 配音, 文字转语音, 环境音. Also use when a document (slides, poster, README hero)…
Its SKILL.md is about 7.5k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including scripts (for example `scripts/video_seq.sh`).
It sits in Media & Creative, covering Text to speech and voice, Image generation and Image editing. The repository describes itself as: The most Token-efficient open-source AI Agent. The licence is MIT.
3 steps, taken from the step headings in SKILL.md.
Read from SKILL.md and the folder at commit 7e41f3a. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
Ships 1 file in scripts/ (Shell), which the agent can run.
Shell commands in SKILL.md call:
curlmagickFrom the folder's file list and the shell code blocks in SKILL.md.
Hosts in commands or code, which the agent is likely to contact:
api.openai.comFrom URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Media Gen loads about 7.5k tokens when it runs. Until then it costs about 137 tokens; SKILL.md has 3,112 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); the scripts in this folder are not scanned.
The full file from clacky-ai/openclacky at commit 7e41f3a, republished under its MIT licence (© clacky-ai). 3,112 words, ~7,490 tokens.
.claude/skills/media-gen/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.Generate and edit images on demand by calling the local Clacky HTTP server, which dispatches to whichever image-generation model the user configured (type=image in their model settings). Editing (image-in → image-out) works with any image model that accepts image input — most current ones do.
POST http://${CLACKY_SERVER_HOST}:${CLACKY_SERVER_PORT}/api/media/image
GET http://${CLACKY_SERVER_HOST}:${CLACKY_SERVER_PORT}/api/media/typesBefore generating anything, confirm the user has a type=image model set up:
curl -s http://${CLACKY_SERVER_HOST}:${CLACKY_SERVER_PORT}/api/media/typesIf the response shows image.configured = false, stop and tell the user:
还没有配置生图模型。请打开设置页 → 添加模型 → 类型选
image(走 openclacky 官方网关时推荐or-gemini-3-pro-image或or-gpt-image-2)。配好后再让我生图。
Do NOT try to fall back to terminal + a hand-written curl https://api.openai.com/... — that bypasses the user's configured backend and won't be billed correctly.
You do NOT configure models — the user does, in the settings page. Never
edit the user's config.yml to add or change a model, and never invent a model
name from memory (e.g. or-gpt-5.4-image-2 does not exist). The real, current
model is whatever /api/media/types reports under image.model. If you think a
different model is needed, tell the user which one to set in the settings page —
don't touch the config file yourself.
There is no size / width / height field — the only shape control is
aspect_ratio (landscape / square / portrait), and even that is just a
rough hint (ask for 576x96 and you may get 1408x768). When the user needs an
exact pixel size, a grid, an icon at NxN, or a spritesheet, generate first at
whatever size the model gives, then resize / crop / tile to the exact pixels with
ImageMagick (magick). Verify with magick identify before reporting done.
curl commands simultaneously or in a script loop). Each call consumes significant server-side resources, and parallel requests will almost certainly cause timeouts. If the user wants several images, generate them sequentially, one after another.curl -s -X POST http://${CLACKY_SERVER_HOST}:${CLACKY_SERVER_PORT}/api/media/image \
-H "Content-Type: application/json" \
-d '{
"prompt": "A clean, modern hero illustration for a tech startup landing page. Soft gradient background, abstract geometric shapes in blue and purple, minimal style, 4K quality.",
"aspect_ratio": "landscape",
"output_dir": "'"$(pwd)"'/assets/generated",
"session_id": "<%= session_id %>"
}'.sh file and run it, don't paste a multi-line curl.400 / INVALID_ARGUMENT, drop the aspect_ratio field and retry once before reporting the error.unknown image model (400), the configured model name isn't recognized by its backend — tell the user to fix the model name in the settings page; do NOT guess another name and retry.If a call fails with no image and mentions content_filter / safety / blocked (or HTTP 422), the prompt was blocked. Don't resend as-is — rephrase the prompt (soften the sensitive part, keep the intent) and retry, up to 3 times, checking each returned image. Still blocked? Stop and ask the user to adjust.
| Field | Required | Values | Notes |
|---|---|---|---|
prompt | yes | string | Be detailed and concrete. See prompt tips below. |
aspect_ratio | no | landscape / square / portrait | Defaults to landscape. |
output_dir | no | absolute path | The exact directory the file is written to — nothing is appended. Use the directory the user asked for; otherwise $(pwd)/assets/generated as shown in the example. |
session_id | yes | string | Current Clacky session ID. Always pass the rendered value shown in the request example. |
image | no | file path / base64 / data URL | A single input image to edit. Triggers image-edit mode (see below). |
images | no | array of the above | Multiple input images for a multi-image edit. Takes precedence over image. |
Images passed as image / images must be PNG, JPEG, or WebP. Other formats (SVG, GIF, BMP, TIFF, …) are rejected upstream and fail the call — convert them to one of the supported formats first.
To edit instead of generate from scratch, pass the existing image as image
(a local file path is easiest — the skill reads and encodes it for you) plus a
prompt describing the change. The configured image model receives the
image alongside the prompt and returns an edited result.
curl -s -X POST http://${CLACKY_SERVER_HOST}:${CLACKY_SERVER_PORT}/api/media/image \
-H "Content-Type: application/json" \
-d '{
"prompt": "change the background to a starry night sky, keep the cat unchanged",
"image": "/abs/path/to/input.png",
"session_id": "<%= session_id %>"
}'output_dir — the original file is never modified in place.images: ["/path/a.png", "/path/b.png"]
and describe the composition in the prompt.{
"success": true,
"image": "/abs/path/to/working_dir/assets/generated/img_20260525_011820_a1b2c3d4.png",
"model": "<the configured image model>",
"provider": "openclacky",
"prompt": "A clean, modern hero illustration ...",
"aspect_ratio": "landscape",
"size": "1536x1024",
"usage": {
"prompt_tokens": 50,
"completion_tokens": 4500,
"cache_read_tokens": 0,
"cache_write_tokens": 0,
"total_tokens": 4550
}
}The image field is an absolute path on disk. To embed it in markdown, slides, or HTML, convert it to a path relative to the document you're writing.
usage may be absent when the configured backend doesn't return token counts. Treat it as optional.
{
"success": false,
"image": null,
"error": "Upstream 401: Invalid API key",
"error_type": "api_error",
"model": "...",
"provider": "..."
}Common error_type values: not_configured, auth_required, network_error, api_error, empty_response. Tell the user the error plainly; if it's auth_required or api_error 401/403, point them at settings to fix the api_key.
Read does NOT show the image to the user — it only feeds it into your own context. To make the user actually see it, write a markdown tag in your reply:
Take the image field from the response and prefix file:// (three slashes, since the path is absolute).
If you're also embedding it in a document (README, PPT, etc.), convert the returned path to one relative to that document.
A good image prompt has 4 layers, in this order:
For PPT / slide decks specifically:
aspect_ratio: landscape, prompt should emphasise "clean", "minimal", "negative space" so text overlays wellaspect_ratio: landscape, abstract or pattern-style works better than literal subjectsaspect_ratio: square or portrait, more literal subject is fineWhen the user gives a vague request like "给我配张图", ask one clarifying question (subject? style?) before calling the API — costs real money per image.
The same /api/media/ namespace serves video generation. The user must
configure a type=video model in settings (recommended: or-veo-3-1).
POST http://${CLACKY_SERVER_HOST}:${CLACKY_SERVER_PORT}/api/media/videoCheck GET /api/media/types first — if video.configured = false, tell the
user to add a type=video model in settings before generating.
curl -s -X POST http://${CLACKY_SERVER_HOST}:${CLACKY_SERVER_PORT}/api/media/video \
-H "Content-Type: application/json" \
-d '{
"prompt": "A cinematic drone shot flying over a misty mountain range at sunrise, golden light, 4K.",
"aspect_ratio": "landscape",
"duration_seconds": 8,
"output_dir": "'"$(pwd)"'/assets/generated",
"session_id": "<%= session_id %>"
}'| Field | Required | Values | Notes |
|---|---|---|---|
prompt | yes | string | Same prompt-craft tips as images apply. |
aspect_ratio | no | landscape / portrait | Defaults to landscape (16:9). |
duration_seconds | no | 4–8 | Defaults to 8. |
image | no | { "b64_json": "...", "mime_type": "image/png" } | Optional first frame for image-to-video. |
output_dir | no | absolute path | The exact directory the file is written to — nothing is appended. Use the directory the user asked for; otherwise $(pwd)/assets/generated as shown in the example. |
session_id | yes | string | Current Clacky session ID. Always pass the rendered value shown in the request example. |
{
"success": true,
"video": "/abs/path/to/working_dir/assets/generated/vid_20260615_011820_a1b2c3d4.mp4",
"model": "or-veo-3-1",
"provider": "openclacky",
"prompt": "A cinematic drone shot ...",
"aspect_ratio": "landscape",
"duration_seconds": 8,
"cost_usd": 2.688
}The video field is an absolute path on disk. Show it to the user with a
markdown link or an HTML5 <video> tag pointing at the file:// path; embed
it in documents with a path relative to the document.
Same shape and error_type values as image generation, but with "video": null.
not_configured means no type=video model is set up.
A single Veo call maxes out at 8 seconds, and separate calls are visually
unrelated (the character, lighting and framing jump between clips). To make
several clips flow as one continuous shot, chain them: take the last frame
of clip N and feed it as the image (first frame) of clip N+1. Veo's
image-to-video then continues from exactly where the previous clip ended, so
the seam is smooth.
Use the helper script (it only does the ffmpeg mechanics — you drive the
generation with the same /api/media/video curl as above). The script's
absolute path is given in the Supporting Files block; assign it once:
SEQ="SKILL_DIR/scripts/video_seq.sh" # SKILL_DIR is provided in Supporting Files
# subcommands: lastframe | tob64 | payload | concat | probeWorkflow for an N-segment continuous video:
.jpg extension):"$SEQ" lastframe seg1.mp4 /tmp/seg1_last.jpgpayload, then post it with
curl --data @file. Do NOT inline the base64 into -d "{…}" — a frame's
base64 is ~150KB+ and overflows the shell's argument limit ("Argument list
too long"). The payload subcommand reads the frame, base64-encodes it, and
writes a ready-to-send JSON file:"$SEQ" payload /tmp/seg2.json /tmp/seg1_last.jpg 8 landscape "$OUT_DIR" \
"Continuing the same scene, the camera keeps pushing forward…" "<%= session_id %>"
curl -s -X POST .../api/media/video -H "Content-Type: application/json" \
--data @/tmp/seg2.jsonpayload <out.json> <frame> <duration_seconds> <aspect_ratio> <output_dir> <prompt> [session_id],
where OUT_DIR is the same directory you'd pass as output_dir above)"$SEQ" concat final.mp4 seg1.mp4 seg2.mp4 seg3.mp4Rules & caveats:
concat falls back to a
slower re-encode (and may letterbox). Use the same aspect_ratio everywhere.extend
(148s) is not wired into this endpoint yet.When the configured type=video model is a ByteDance Doubao Seedance
model, the same POST /api/media/video endpoint drives it. No separate
endpoint — the server routes by Base URL automatically. Seedance adds richer
inputs on top of the common fields (all optional, Seedance-only), split below
into a common set that works on any Seedance gateway and an Ark-only
set that takes effect only on the native Volcengine Ark transport (Base URL
under *.volces.com). On any other OpenAI-compatible Seedance gateway, stick
to the common fields.
Cost gate — ask before EVERY generation. Resolution is the main driver of Seedance's price (4k costs far more than 720p). So once you've confirmed via
GET /api/media/typesthat thetype=videoBase URL is under*.volces.com, you MUST ask the user which resolution they want before EACH AND EVERY billable call — this covers not just a brand-new clip but also editing, multimodal reference, and extending/continuing an existing video (they all cost the same as a fresh render). Offer480p/720p/1080p/4kand state the default is720p. Only after they answer (or explicitly say "use the default") do you proceed, passing their choice asresolution. Ask again every single time — a resolution the user picked for one clip is NEVER carried over to the next generation. Do not assume, do not reuse a prior answer, do not batch. One generation = one fresh resolution question. When editing or continuing/extending an existing video, default to that source video's resolution — never silently upgrade it (e.g. don't turn a 720p source into a 4k render). If the user gave no answer and you didn't ask, the server pins720p. These Seedance-only fields have NO effect on Veo or Qwen/DashScope backends — never send them there. (And within Seedance, the Ark-only table additionally requires a*.volces.comBase URL.)
Common fields — work on any Seedance gateway (native Ark or an OpenAI-compatible host):
| Field | Values | Notes |
|---|---|---|
aspect_ratio | landscape/portrait/square, or a raw Ark ratio like 16:9, 9:16, 4:3, 3:4, 21:9, adaptive | Raw ratios pass through unchanged. |
duration_seconds | integer, or -1 | -1 lets the model pick the length (Seedance 2.0 / 1.5 Pro). |
first_frame | media ref (see below) | First frame → image-to-video. |
reference_images | array of media refs (0–9) | Reference images. |
Ark-only fields — only take effect on the native Volcengine Ark transport
(video.base_url under *.volces.com). On any other OpenAI-compatible
Seedance gateway, resolution / generate_audio / watermark / seed are
silently ignored, and last_frame / reference_videos / reference_audios
are rejected outright — so don't send any of them there:
| Field | Values | Notes |
|---|---|---|
resolution | 480p / 720p / 1080p / 4k | Defaults to 720p when omitted (cost control). Ask the user before every generation — never reuse a prior answer. See the cost gate above. Model-dependent; unsupported values are rejected upstream. |
generate_audio | true / false | Seedance 2.0 / 1.5 Pro can synthesize a synced audio track. |
watermark | true / false | |
seed | integer | Reproducibility. |
last_frame | media ref | Together with first_frame → first+last-frame video. |
reference_videos | array of media refs (0–3) | Reference videos. |
reference_audios | array of media refs (0–3) | Reference audio (background music / voice). |
Which fields for which task — Seedance covers six capabilities; pick the fields by intent, and never mix the two families below:
| Task | What you want | Fields to send |
|---|---|---|
| Text-to-video | a clip from a prompt only | prompt (no media) |
| Image-to-video (first frame) | animate a still image forward | first_frame |
| Image-to-video (first + last frame) | interpolate between two stills | first_frame + last_frame |
| Multimodal generation | new clip guided by reference images/videos/audio | reference_images / reference_videos / reference_audios |
| Edit an existing video | replace/add/remove/repaint something inside a given video | reference_videos: [<the video to edit>] (+ optional reference_images / reference_audios) + a prompt describing the edit |
| Extend / continue a video | prepend/append or stitch clips into one | reference_videos: [<clip1>, <clip2>, ...] (up to 3) + a prompt describing the join |
🚫 Hard rule — the two families are mutually exclusive.
first_frame/last_framecannot be combined with anyreference_*field; Ark rejects the request. If the user wants to edit or extend an existing video, that is areference_videostask — do NOT fall back to extracting a frame and usingfirst_frame(that produces a brand-new clip and silently loses the "edit the original" intent). The server also enforces this and returns a clearinvalid_argumenterror if you mix them.
A media ref may be:
http(s):// URL, or a data: URL, or{ "b64_json": "...", "mime_type": "image/png" } hash.Note: audio cannot be sent alone — pair it with at least one image or video. Prefer passing large videos/audios as public URLs; base64-encoding a big local file can exceed upstream size limits.
Example — first + last frame (image-to-video, no reference_*):
curl -s -X POST http://${CLACKY_SERVER_HOST}:${CLACKY_SERVER_PORT}/api/media/video \
-H "Content-Type: application/json" \
-d '{
"prompt": "First-person POV, a hand raises a cup of fruit tea toward the camera, bright and refreshing lighting",
"aspect_ratio": "9:16",
"duration_seconds": 8,
"resolution": "720p",
"first_frame": "'"$(pwd)"'/assets/frame_first.jpg",
"last_frame": "'"$(pwd)"'/assets/frame_last.jpg",
"output_dir": "'"$(pwd)"'/assets/generated",
"session_id": "<%= session_id %>"
}'Example — edit an existing video (replace/add/remove something inside it;
uses reference_videos, NOT first_frame):
curl -s -X POST http://${CLACKY_SERVER_HOST}:${CLACKY_SERVER_PORT}/api/media/video \
-H "Content-Type: application/json" \
-d '{
"prompt": "Add a small wooden fishing boat with a warm lantern drifting slowly across the lake in the foreground, keep everything else unchanged",
"resolution": "720p",
"reference_videos": ["'"$(pwd)"'/assets/original.mp4"],
"output_dir": "'"$(pwd)"'/assets/generated",
"session_id": "<%= session_id %>"
}'Seedance is asynchronous — POST only submits, it does NOT return the video. Unlike Veo (which blocks and returns the mp4 in one call), the Seedance POST returns immediately with a task id:
{ "success": true, "status": "submitted", "task_id": "cgt-2024...-xxxx", "provider": "volcengine" }status: "submitted" means the render is now running on Volcengine's servers
and is already being billed — it does NOT mean it is done. You MUST now
poll for completion: sleep ~15 seconds, then query the status endpoint, and
repeat until it is succeeded (or failed):
curl -s "http://${CLACKY_SERVER_HOST}:${CLACKY_SERVER_PORT}/api/media/video/status?task_id=cgt-2024...-xxxx&output_dir=$(pwd)/assets/generated&session_id=<%= session_id %>"Status responses:
{ "success": true, "status": "running" } // keep polling
{ "success": true, "status": "succeeded", "video": "/abs/path.mp4" } // done — this is the file
{ "success": false, "status": "failed", "error": "..." } // give up, report to userOnly once you receive status: "succeeded" and the absolute video path may
you present the result to the user. Do NOT end your turn while the task is
still submitted/running — the user is waiting for the finished video.
A minimal poll loop:
TASK_ID=$(curl -s -X POST http://${CLACKY_SERVER_HOST}:${CLACKY_SERVER_PORT}/api/media/video \
-H "Content-Type: application/json" \
-d '{"prompt":"...","resolution":"720p","output_dir":"'"$(pwd)"'/assets/generated","session_id":"<%= session_id %>"}' \
| sed -n 's/.*"task_id"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p')
while true; do
sleep 15
RESP=$(curl -s "http://${CLACKY_SERVER_HOST}:${CLACKY_SERVER_PORT}/api/media/video/status?task_id=${TASK_ID}&output_dir=$(pwd)/assets/generated&session_id=<%= session_id %>")
STATUS=$(echo "$RESP" | sed -n 's/.*"status"[[:space:]]*:[[:space:]]*"\([^"]*\)".*/\1/p')
echo "poll: $STATUS"
[ "$STATUS" = "succeeded" ] && echo "$RESP" && break
[ "$STATUS" = "failed" ] && echo "$RESP" && break
doneHard rules — a broken version of this once doubled a user's bill:
task_id, the
only valid next action is polling /api/media/video/status. A slow render
is not a failed one./api/media/* to call Volcengine's native API directly.
All submission and status checks must go through this server (it meters
cost). There is no reason to touch the raw Ark API.running, stop
polling and tell the user the task is still rendering in the background,
give them the task_id, and let them check again later — do NOT resubmit.Ambient audio includes rain, ocean waves, wind, and café background sounds. Generate it programmatically, verify the audio, and provide it for playback or download.
The same /api/media/ namespace serves text-to-speech. The user must
configure a type=audio model in settings (recommended:
or-tts-gemini-2-5-flash, the cheap+fast default).
POST http://${CLACKY_SERVER_HOST}:${CLACKY_SERVER_PORT}/api/media/audio/speechCheck GET /api/media/types first — if audio.configured = false, tell the
user to add a type=audio model in settings before generating.
curl -s -X POST http://${CLACKY_SERVER_HOST}:${CLACKY_SERVER_PORT}/api/media/audio/speech \
-H "Content-Type: application/json" \
-d '{
"input": "Hello and welcome to openclacky. Today we will explore...",
"voice": "Kore",
"output_dir": "'"$(pwd)"'/assets/generated",
"session_id": "<%= session_id %>"
}'| Field | Required | Values | Notes |
|---|---|---|---|
input | yes | string | The text to speak. Plain prose works best; you can prefix with style cues like "Say cheerfully:" or "In a calm tone:". |
voice | no | string voice name | Defaults to Kore. Common Gemini voices: Kore, Puck, Charon, Fenrir, Aoede. |
output_dir | no | absolute path | The exact directory the file is written to — nothing is appended. Use the directory the user asked for; otherwise $(pwd)/assets/generated as shown in the example. |
session_id | yes | string | Current Clacky session ID. Always pass the rendered value shown in the request example. |
Generation typically takes 2–10 seconds depending on length. The request blocks until the WAV is ready.
{
"success": true,
"audio": "/abs/path/to/working_dir/assets/generated/tts_20260615_233522_4ff02705.wav",
"model": "or-tts-gemini-2-5-flash",
"provider": "openclacky",
"input": "Hello and welcome to openclacky...",
"voice": "Kore",
"mime_type": "audio/wav",
"usage": { "prompt_tokens": 13, "completion_tokens": 122, "total_tokens": 135 },
"cost_usd": 0.000259
}The audio field is an absolute path on disk. Output is mono 16-bit PCM at
24 kHz wrapped in a standard WAV container — playable by any browser, OS
player, or <audio> tag without conversion.
To let the user hear it, write a markdown link in your reply:
[🔊 听一下](file:///abs/path/from/response.wav)For embedding in HTML documents, use:
<audio controls src="./xxx.wav"></audio>Same shape and error_type values as image generation, but with "audio": null.
not_configured means no type=audio model is set up.
voice name across calls in one project to keep the
narrator consistent.© clacky-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 1 other file (scripts) in lib/clacky/default_skills/media-gen of clacky-ai/openclacky.
Open the folder on GitHubat commit 7e41f3a
Media Gen next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Media Gen this skillclacky-ai/openclacky | 1.2k | — | ~7.5k | Automated safety check: Pass | MIT | |
| Clean Audiohassancs91/claude-youtube-editor | 328 | — | ~1.8k | Automated safety check: Pass | MIT | |
| Atlas Cloudcalesthio/OpenMontage | 66k | — | ~1.2k | Automated safety check: Pass | AGPL-3.0 | |
| AI Mediaericrisco/rsc-harness | 190 | — | ~3.3k | Automated safety check: Pass | MIT | |
| Ergo Remotion Videoitwanger/toBeBetterJavaer | 18k | — | ~1.1k | Automated safety check: Pass | None | |
| Wedding Video Guided Wizardaaronyi97/wedding-video-guided-wizard | 310 | — | ~1k | Automated safety check: Pass | MIT |
hassancs91/claude-youtube-editor
Voice/audio cleanup step of the AI Video Editor pipeline — diagnose a video's background noise, pick the right denoise method, and produce a cleaned master (voice isolated, levels preserved, video…
calesthio/OpenMontage
Generate or edit images and videos through the Atlas Cloud gateway.
ericrisco/rsc-harness
A skill your agent uses when a creative goal must become a finished media file: pick and order generative-media models per modality — AI voiceover, image-to-video clips, score — then glue them with…
itwanger/toBeBetterJavaer
把口播稿做成二哥风格的 Remotion 视频,包括整理视频用稿、火山 TTS 配音、音画对齐、逐章动画预览和导出带配音的 MP4。用户说“做视频”“口播稿转视频”“Remotion”“继续做下一章”“出片”“渲染”“改读音”“配音读错了”,或给出 docs/src/ai/video/ 下的稿子要做成视频时使用。共享工具、配置和素材在…
aaronyi97/wedding-video-guided-wizard
Guide a creator through a real couple's custom wedding video, from a shareable story intake card and Kimi writing pack through narration, external GPT image prompts, image-to-video packs, music and…
LiamGvchi/gc-still-image-motion-director
Analyze still images and design restrained, image-specific motion for image-to-video generation.
clacky-ai/openclacky
Install skills from a zip URL or local zip file path. An agent skill from clacky-ai/openclacky.
clacky-ai/openclacky
Configure the browser tool for Clacky. An agent skill from clacky-ai/openclacky.
clacky-ai/openclacky
Create, manage, and run scheduled automated tasks (cron jobs) in Clacky.
clacky-ai/openclacky
Deploy Rails applications to Railway. An agent skill from clacky-ai/openclacky.
clacky-ai/openclacky
Manage MCP (Model Context Protocol) servers for openclacky: add, list, probe, remove, reconfigure.
clacky-ai/openclacky
Create a new project to start development quickly. An agent skill from clacky-ai/openclacky.
Categories
Generate or edit images, videos, or audio in the current task. Media Gen is an agent skill from clacky-ai/openclacky. Generate or edit images, videos, or audio in the current task.
Media Gen fits situations like: the user asks to create/generate/produce; edit/modify a picture / image / illustration / cover / poster / icon / artwork; A video / clip / animation; speech / voiceover / narration / TTS / ambient audio / soundscapes — e.g.
Run `npx skills add clacky-ai/openclacky --skill media-gen -a claude-code`. Or copy the skill folder (lib/clacky/default_skills/media-gen in clacky-ai/openclacky) into .claude/skills/media-gen in your project. Claude Code loads it when a task matches its description.
Run `npx skills add clacky-ai/openclacky --skill media-gen -a codex`. Or copy the skill folder (lib/clacky/default_skills/media-gen in clacky-ai/openclacky) into .agents/skills/media-gen in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add clacky-ai/openclacky --skill media-gen -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/media-gen, .gemini/skills/media-gen, .github/skills/media-gen and .opencode/skills/media-gen in your project.
Going by SKILL.md and its folder, Media Gen needs a shell for the scripts in its folder and the command-line tools its instructions call (curl and magick). Our summary lists: A Bash shell.
SKILL.md names 1 domain. In commands or code: api.openai.com; the agent is likely to contact it when it follows the instructions. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. The check reads SKILL.md only: the scripts in the folder are not scanned, so read them before running anything.
Media Gen is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 7.5k tokens (SKILL.md is roughly 30k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Media Gen: Clean Audio (hassancs91/claude-youtube-editor, 328 stars), Atlas Cloud (calesthio/OpenMontage, 66k stars), AI Media (ericrisco/rsc-harness, 190 stars) and Ergo Remotion Video (itwanger/toBeBetterJavaer, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
clacky-ai (a GitHub organization) maintains it in clacky-ai/openclacky, which has 1,202 GitHub stars. The repository holds 20 skills in this directory. The repository was last updated on October 11, 2026.
Source: clacky-ai/openclacky on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.