Skills IMA AI Video Generator
install
source · Clone the upstream repo
git clone https://github.com/openclaw/skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/allenfancy-gan/ima-video-ai" ~/.claude/skills/clawdbot-skills-ima-ai-video-generator && rm -rf "$T"
manifest:
skills/allenfancy-gan/ima-video-ai/SKILL.mdsource content
IMA Video AI
When To Use
Use this repository for
text-to-video, image-to-video, reference-image video generation, and first/last-frame interpolation. This repo is video-only; do not route image editing, audio, or non-video tasks here.
Quick Start
- Get your API key at
, then export it:https://www.imaclaw.ai/imaclaw/apikeyexport IMA_API_KEY="your-api-key" - Run a low-cost health probe before spending credits:
python3 scripts/ima_runtime_doctor.py --task-type text_to_video - First-time setup:
python3 scripts/ima_runtime_setup.py - Manual first-run alternative if you skip setup: in an interactive terminal,
now prompts for a suggested model; non-interactive callers should still usepython3 scripts/ima_runtime_cli.py --task-type text_to_video --prompt "..."
or--model-id--list-models - Natural-language wrapper:
for parse + validate + executepython3 scripts/route_and_execute.py --request "做一个 10 秒的产品视频"
First-Run Rules
- Runtime model resolution is fixed:
-> saved preference -> interactive TTY prompt -> fail; there is no hidden default model.--model-id - First use can run
, accept the first-run CLI prompt in a terminal, or choosepython3 scripts/ima_runtime_setup.py
after--model-id
; setup writes only--list-models
, never~/.openclaw/memory/ima_prefs.json
.IMA_API_KEY - Install Python dependencies with
;pip install -r requirements.txt
is used for image-dimension probing.Pillow - Ensure
is onffprobe
for video/audio metadata probing andPATH
is onffmpeg
for derived video cover extraction.PATH
Picks And Errors
- Start with
forima-pro-fast
/text_to_video
; start withimage_to_video
forkling-video-o1
/reference_image_to_video
. Full matrix: references/shared/model-selection-policy.mdfirst_last_frame_to_video
or invalid key -> regenerate at401
and rerunhttps://www.imaclaw.ai/imaclaw/apikey
;ima_runtime_doctor.py
/403
-> subscribe or switch to4014
;ima-pro-fast
/6009
-> remove custom params and confirm the live catalog with6010--list-models
Video Modes
means explicit start/end frames with generated motion between them;first_last_frame
means style or character guidance, not literal frame 1.reference
Gateway Contract
Treat this file as the public gateway, not the full rulebook.
- The generation entrypoint is
.python3 scripts/ima_runtime_cli.py ...
is the natural-language wrapper over the structured runtime.python3 scripts/route_and_execute.py
andpython3 scripts/ima_runtime_setup.py
are onboarding helpers, not alternate generation runtimes.python3 scripts/ima_runtime_doctor.py- No other generation CLI path is part of the active runtime contract.
- Remote HTTPS reference media must be direct public URLs. The runtime may temporarily download them locally for metadata probing, Seedance preflight checks, and video-cover extraction; private/internal hosts, credentialed URLs, redirects, and oversized downloads are rejected.
- Local media files and derived video cover frames use IMA's upload-token flow and then upload to the pre-signed HTTPS storage URL returned by that service.
- Build a
for a video target.GatewayRequest - Resolve task type before execution, and clarify when image roles are ambiguous.
- Query the product list before task creation so
,attribute_id
, and defaults come from the live catalog.model_version - Return video results as remote HTTPS URLs; do not convert them into local file attachments.
Read Order
references/README.md, references/gateway/entry-and-routing.md, references/gateway/workflow-confirmation.md, references/shared/model-selection-policy.md, references/shared/error-policy.md, references/shared/security-and-network.md, capabilities/video/CAPABILITY.md
Boundary
references/gateway/* covers entry/routing, references/shared/* covers shared runtime policy, capabilities/video/* owns video behavior, and _meta.json plus clawhub.json remain metadata inputs.