본문으로 건너뛰기
Skillpedia
모션 및 애니메이션12k · #11583

grok-image-to-video

하는 일

이 스킬은 Hermes Web UI를 거쳐 xAI Grok Imagine으로 정지 이미지를 짧은 영상으로 만듭니다. 이미 가진 사진으로 움직이는 짧은 클립을 원하는 사람을 위한 스킬입니다.

사용하는 경우

  • ✓사진이나 그림이 있고 그것으로 짧은 애니메이션 클립을 만들고 싶을 때.
  • ✓정지 이미지에 부드러운 카메라 움직임이나 자연스러운 움직임을 더하고 싶을 때.
  • ✓완성된 MP4 파일을 저장해서 공유하고 싶을 때.

스킬 링크

https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/skills/grok-image-to-video/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/skills/grok-image-to-video/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“이 풍경 사진을 천천히 줌인하는 짧은 영상으로 만들어 주세요.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

에이전트는 이미지와 움직임 프롬프트를 Hermes Web UI 미디어 엔드포인트로 보냅니다. 서버가 자격 증명을 확인하고 영상이 끝날 때까지 기다리며, 요청하면 MP4 파일을 저장할 수 있습니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Grok Image To Video

Use this skill when the user wants to animate a local image into a short video with xAI Grok Imagine.

Do not use any built-in image or video generation tool as a fallback. If the Hermes Web UI endpoint returns 401, 403, connection failure, or any other error, stop and report the Hermes Web UI error to the user.

Workflow

Call the local Hermes Web UI media endpoint. Pass a local image path; the server will check for xAI credentials, read the file, convert it to a base64 data URI, call xAI, poll until completion, and optionally save the generated mp4.

Endpoint:

POST <Hermes Web UI base URL>/api/studio/media/grok-image-to-video

Resolve the Hermes Web UI base URL in this order:

  1. HERMES_WEB_UI_URL environment variable, if set.
  2. http://127.0.0.1:${PORT}, if PORT is set.
  3. http://127.0.0.1:8648 for the Web UI single-server default.

Common local ports:

  • Development API backend: http://127.0.0.1:8647. Use this with npm run dev; do not target the Vite frontend port.
  • Web UI single-server default: http://127.0.0.1:8648.
  • Desktop app default: http://127.0.0.1:8748.
  • Custom port: set HERMES_WEB_UI_URL to the full base URL, or set PORT to use http://127.0.0.1:${PORT}.

When Hermes Web UI is running from the provided Docker Compose setup, the default external URL is http://127.0.0.1:6060.

Authentication:

The endpoint is protected by Hermes Web UI auth. Always send the Hermes Web UI server bearer token. This token is accepted only by Hermes Web UI media generation endpoints for agent skills; it is not a general Web UI login token.

Resolve the token in this order:

  1. AUTH_TOKEN environment variable, if set.
  2. ${HERMES_WEB_UI_HOME}/.token, if HERMES_WEB_UI_HOME is set.
  3. ${HERMES_WEBUI_STATE_DIR}/.token, if HERMES_WEBUI_STATE_DIR is set.
  4. ~/.hermes-web-ui/.token.

Profile selection:

Use the current Hermes profile from the run instructions by sending X-Hermes-Profile.

If the run instructions include [Current Hermes profile: <name>], include:

-H "X-Hermes-Profile: <name>"

Replace <name> with the exact profile name from the run instructions. Never send a placeholder value such as <name> or <current-hermes-profile>.

If no current profile is provided, omit the header and let the server fall back to the current Hermes active profile.

Required JSON fields:

  • image_path: local path to a png, jpeg, or webp image.
  • prompt: motion and style instructions for the generated video.

Optional JSON fields:

  • duration: seconds, 1 to 15. Defaults to 8.
  • output_path: local path where the server should save the mp4. If omitted, the server saves to ${HERMES_WEB_UI_HOME:-~/.hermes-web-ui}/media/<request_id>.mp4 and creates the media directory if needed.
  • timeout_ms: maximum wait time. Defaults to 600000.

Example:

TOKEN="${AUTH_TOKEN:-}"
if [ -z "$TOKEN" ] && [ -n "${HERMES_WEB_UI_HOME:-}" ] && [ -f "$HERMES_WEB_UI_HOME/.token" ]; then
  TOKEN="$(cat "$HERMES_WEB_UI_HOME/.token")"
fi
if [ -z "$TOKEN" ] && [ -n "${HERMES_WEBUI_STATE_DIR:-}" ] && [ -f "$HERMES_WEBUI_STATE_DIR/.token" ]; then
  TOKEN="$(cat "$HERMES_WEBUI_STATE_DIR/.token")"
fi
if [ -z "$TOKEN" ] && [ -f "$HOME/.hermes-web-ui/.token" ]; then
  TOKEN="$(cat "$HOME/.hermes-web-ui/.token")"
fi
if [ -z "$TOKEN" ]; then
  echo "Missing Hermes Web UI token. Check AUTH_TOKEN, HERMES_WEB_UI_HOME, HERMES_WEBUI_STATE_DIR, or ~/.hermes-web-ui/.token." >&2
  exit 1
fi

BASE_URL="${HERMES_WEB_UI_URL:-}"
if [ -z "$BASE_URL" ]; then
  BASE_URL="http://127.0.0.1:${PORT:-8648}"
fi
BASE_URL="${BASE_URL%/}"

curl -sS -X POST "$BASE_URL/api/studio/media/grok-image-to-video" \
  -H "Authorization: Bearer $TOKEN" \
  -H 'Content-Type: application/json' \
  -d '{
    "image_path": "/absolute/path/to/input.png",
    "prompt": "Animate the subject with a slow cinematic push-in and subtle natural motion.",
    "duration": 8,
    "output_path": "/absolute/path/to/output.mp4"
  }'

If the response has code: "missing_xai_token", tell the user to set XAI_API_KEY or complete xAI OAuth login in Hermes Web UI before retrying.

Return the generated output_path.

자주 묻는 질문

이 도구가 실패하면 다른 영상 도구를 쓸 수 있나요?

아닙니다. 스킬은 다른 생성기로 바꾸지 말고 멈춘 뒤 오류를 알리라고 안내합니다.

채팅에 xAI 키를 붙여 넣나요?

아닙니다. 서버가 xAI 자격 증명을 직접 확인하므로 키가 대화에 나타날 필요가 없습니다.

Web UI 주소는 어디서 찾나요?

먼저 환경에 설정된 주소를 확인하고, 그다음 포트 설정, 마지막으로 기본 로컬 주소를 확인합니다.

상세 정보

작성자의 원본 설명

Animate a local image into a short mp4 video through Hermes Web UI using xAI Grok Imagine.

repo: EKKOLearnAI/ekko-studio

인기도

GitHub 스타
12k
순위
#11583
라이선스
—
업데이트
2026. 11. 2.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬