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.
https://www.imaclaw.ai/imaclaw/apikey, then export it: export IMA_API_KEY="your-api-key"python3 scripts/ima_runtime_doctor.py --task-type text_to_videopython3 scripts/ima_runtime_setup.pypython3 scripts/ima_runtime_cli.py --task-type text_to_video --prompt "..." now prompts for a suggested model; non-interactive callers should still use --model-id or --list-modelspython3 scripts/route_and_execute.py --request "做一个 10 秒的产品视频" for parse + validate + execute--model-id -> saved preference -> interactive TTY prompt -> fail; there is no hidden default model.python3 scripts/ima_runtime_setup.py, accept the first-run CLI prompt in a terminal, or choose --model-id after --list-models; setup writes only ~/.openclaw/memory/ima_prefs.json, never IMA_API_KEY.pip install -r requirements.txt; Pillow is used for image-dimension probing.ffprobe is on PATH for video/audio metadata probing and ffmpeg is on PATH for derived video cover extraction.ima-pro-fast for text_to_video / image_to_video; start with kling-video-o1 for reference_image_to_video / first_last_frame_to_video. Full matrix: references/shared/model-selection-policy.md401 or invalid key -> regenerate at https://www.imaclaw.ai/imaclaw/apikey and rerun ima_runtime_doctor.py; 403 / 4014 -> subscribe or switch to ima-pro-fast; 6009 / 6010 -> remove custom params and confirm the live catalog with --list-modelsfirst_last_frame means explicit start/end frames with generated motion between them; reference means style or character guidance, not literal frame 1.Treat this file as the public gateway, not the full rulebook.
python3 scripts/ima_runtime_cli.py ....python3 scripts/route_and_execute.py is the natural-language wrapper over the structured runtime.python3 scripts/ima_runtime_setup.py and python3 scripts/ima_runtime_doctor.py are onboarding helpers, not alternate generation runtimes.GatewayRequest for a video target.attribute_id, model_version, and defaults come from the live catalog.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
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.
共 6 个版本