Use this skill to generate image-to-video clips through the user's GTtoken/OpenAI-compatible relay.
Default target:
https://api.modagent-homing.com/v1happyhorse-1.0-i2vchat/completions with image input.This skill is for video generation only. Keep OpenClaw's normal Models page on a working chat model such as deepseek-v4-flash; do not set happyhorse-1.0-i2v as the default chat model.
Set one API key variable before using the script:
export GTTOKEN_API_KEY="sk-..."
Optional overrides:
export GTTOKEN_BASE_URL="https://api.modagent-homing.com/v1"
export HAPPYHORSE_I2V_MODEL="happyhorse-1.0-i2v"
HAPPYHORSE_API_KEY is accepted as a fallback if GTTOKEN_API_KEY is missing.
scripts/generate_happyhorse_i2v.py with --prompt plus either --image-url or --image-file.Using an image URL:
python scripts/generate_happyhorse_i2v.py \
--image-url "https://example.com/input.jpg" \
--prompt "把这张图生成5秒视频,镜头缓慢推进,电影感,4K画质" \
--duration 5 \
--aspect-ratio 16:9 \
--output-dir /tmp/happyhorse-i2v
Using a local image file:
python scripts/generate_happyhorse_i2v.py \
--image-file /path/to/input.jpg \
--prompt "人物自然微笑,头发轻微飘动,镜头缓慢推进,画面稳定" \
--duration 5 \
--output-dir /tmp/happyhorse-i2v
For best results, include:
16:9, 9:16, 1:1, 4:3, or 3:4Prefer one clear visual beat, for example: "镜头缓慢推进,主体保持一致,背景轻微运动,电影感光影".
401 or invalid api key: the GTtoken key is wrong, expired, or not authorized for HappyHorse.model not found: the exact model id is wrong or unavailable to this key. Use happyhorse-1.0-i2v from the GTtoken model page. response: the base URL is wrong; use https://api.modagent-homing.com/v1, not /console/token or the website homepage.bad_response_body when testing in OpenClaw Models: expected for video models. Use this skill instead of the Models connectivity test.--payload-mode simple or --payload-mode image_url_field.共 1 个版本