api-media
БесплатноБез исполняемых скриптовНе проверенCall nodetool.media or nodetool.generations from a code action: generate or edit images, video, speech and music with a picked model, transcribe and embed…
от nodetool-ai★ 674 звезды на GitHubОб этом скилле
nodetool.media and nodetool.generations
nodetool.media makes one result with one picked model and saves it as an
asset. No workflow is needed. nodetool.generations is the record of every
media generation: status, cost, and the assets it made. The model comes from
nodetool.models.pick (see api-models). How to word a prompt for one model
line is the *-prompting skill that find_model names in prompting_skill.
Generation calls
Each call takes model as a pick/find result, {provider, model_id}, or
a "provider/model_id" string.
| Call | Options | Capability to pick |
|---|---|---|
generateImage(prompt, model, opts) |
width, height, quality, negative_prompt, output_file, background |
text_to_image |
editImage(inputFile, prompt, model, opts) |
reference_files, strength, target_width, target_height, negative_prompt, output_file, background |
image_to_image |
generateVideo(prompt, model, opts) |
duration_seconds, aspect_ratio, resolution, num_frames, negative_prompt, output_file, background |
text_to_video |
animateImage(inputFile, model, opts) |
prompt, duration_seconds, aspect_ratio, resolution, num_frames, output_file, background |
image_to_video |
videoFromReferences(referenceFiles, model, opts) |
prompt, use_reference_video_audio, negative_prompt, num_frames, duration_seconds, aspect_ratio, resolution, output_file, background |
reference_to_video |
speak(text, model, opts) |
voice, speed, output_file, background |
text_to_speech |
generateMusic(prompt, model, opts) |
lyrics, duration_seconds, output_file, background |
text_to_music |
transcribe(inputFile, model, opts) |
language, prompt |
automatic_speech_recognition |
embed(text, model, opts) |
dimensions. text is a string or an array. |
generate_embedding |
A generation answers with asset_id, asset_uri (asset://…),
generation_id, mime_type and bytes, plus path when you passed
output_file. An input file (inputFile, reference_files) is an
asset:// URI or a workspace path.
editImageis the call for "make it like this". Pass the attached image or an approved earlier result asinputFile, and further images to match inreference_files.videoFromReferencesis for a shot that more than one reference defines: a character plus a garment, a product plus a location. The prompt then says the action and the camera, not the subjects.- Models honour
duration_secondsloosely. Measure the result withprobebefore you cut to it. - To put words on a picture, draw them yourself with
createCanvasandfillText, or withrenderTextfrom@nodetool-ai/sandbox-flow/lib.image.draw.
Background generations
background is the async flag on every generation call, not a transparent
background. background: true returns at once with
{generation_id, status: "running", background: true}. Collect the result
with nodetool.generations.wait(receipt). A run can have 16 open at most.
Each one is billed, so confirm the count and the cost with the user before
you fan out paid video. Start several, then wait for all of them in the same
action:
const model = await nodetool.models.pick("text_to_video");
const receipts = await Promise.all(prompts.map((p) =>
nodetool.media.generateVideo(p, model, { background: true })));
const done = await Promise.all(receipts.map((r) =>
nodetool.generations.wait(r, { timeout_seconds: 480 })));
A code action stops after 600 s. Keep each wait under that budget. A wait
that times out answers the current record, so wait again in the next action
for any that are still running.
Handles and saving
image.*, audio.* and video.* (guest globals, no nodetool. prefix) take
a generation result, its asset_uri or an asset id, and answer run-local
handles. video.addAudio(videoHandle, audioHandle) combines media, for
example. Save a finished handle with nodetool.media.toImage(handle),
toAudio(handle) or toVideo(handle) before the action ends. A handle is dead
in the next action. Do not pull bytes into the guest.
Hold each result in a local variable and feed it straight into the next call.
Record the uris a later action or turn will need with nodetool.memory.save,
and never re-run generation for something already saved.
Judging
The judge is a chat model that reads images (pick("generate_message") on a
vision model), not the model that made the picture.
| Call | Answers |
|---|---|
critique(image, brief, visionModel, {taste_profile}) |
A pass/revise verdict and concrete defects with locations and fixes. Feed the fixes into the next prompt. When it names no defect, make fresh variations. |
compare(images, brief, visionModel, {taste_profile}) |
The winner of 2–8 candidates by a pairwise knockout, each match judged twice with the order swapped, plus every verdict |
| `sco |
Установить api-media в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл api-media?
Call nodetool.media or nodetool.generations from a code action: generate or edit images, video, speech and music with a picked model, transcribe and embed, judge images with a vision model, read a video, probe or edit a media file, download a video, and read the status and cost of a generation. Load before the first call into these namespaces.
Как установить скилл api-media?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл api-media запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic