grok-image-to-video
ما الذي تفعله
تحرّك هذه المهارة صورة ثابتة إلى فيديو قصير باستخدام Grok Imagine من xAI، الذي يُوصل إليه عبر Hermes Web UI. وهي مخصصة للأشخاص الذين يريدون مقطعًا متحركًا من صورة لديهم.
متى تستخدمها
- ✓عندما تملك صورة وتريد مقطعًا قصيرًا متحركًا منها.
- ✓عندما تريد حركة كاميرا لطيفة أو حركة طبيعية تُضاف إلى صورة ثابتة.
- ✓عندما تحتاج إلى حفظ ملف MP4 النهائي حتى تشاركه.
رابط المهارة
https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/skills/grok-image-to-video/SKILL.mdانسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.
طريقة الاستخدام
أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.
رسالة جاهزة للصق
لـ Claude Code أو Codex أو Cursor: شغّله داخل مجلد مشروعك وستُثبَّت المهارة.
نزّل ملف SKILL.md وضعه في مجلد مهارات وكيلك.
مثال على ما تطلبه من الذكاء الاصطناعي
“حرّك صورة المنظر الطبيعي هذه في فيديو قصير مع تكبير بطيء.”
5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.
كيف تعمل
يرسل الوكيل الصورة وأمر الحركة إلى نقطة نهاية الوسائط في 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:
HERMES_WEB_UI_URLenvironment variable, if set.http://127.0.0.1:${PORT}, ifPORTis set.http://127.0.0.1:8648for the Web UI single-server default.
Common local ports:
- Development API backend:
http://127.0.0.1:8647. Use this withnpm 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_URLto the full base URL, or setPORTto usehttp://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:
AUTH_TOKENenvironment variable, if set.${HERMES_WEB_UI_HOME}/.token, ifHERMES_WEB_UI_HOMEis set.${HERMES_WEBUI_STATE_DIR}/.token, ifHERMES_WEBUI_STATE_DIRis set.~/.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>.mp4and creates themediadirectory 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
- الترخيص
- —
- آخر تحديث
- 2/11/2026
التعليقات
- …
المزيد من المهارات من هذا المستودع
1password
12kيساعد وكيلك على استخدام واجهة 1Password السطرية للحصول على الأسرار للأوامر وملفات الإعداد، دون إظهارها في المحادثة أو السجلات أو الملفات المحفوظة.
apple-notes
12kيساعد وكيلك على إنشاء ملاحظات Apple والبحث فيها وقراءتها وتعديلها ونقلها وحذفها على Mac، باستخدام أداة سطر الأوامر memo.
apple-reminders
12kيساعد وكيلك على عرض التذكيرات وقوائمها في Apple Reminders على Mac وإنشائها وتعديلها وإكمالها وحذفها، باستخدام أداة remindctl.
document-to-action-items
12kيساعد وكيلك على تحويل مستند أو نص اجتماع أو مجموعة ملاحظات إلى جدول واضح بالمهام والمسؤولين والمواعيد النهائية والقرارات.
مهارات مشابهة
blender-motion-state-inspection
280kيتيح فحص تفاصيل الرسوم المتحركة ثلاثية الأبعاد. مفيد للتحقق من الوضعيات والحركات ومحاذاة الشخصيات في الرسوم المتحركة.
manim-video
280kيتيح لوكيلك إنشاء فيديوهات شرح متحركة. يستخدم Manim لإنشاء رسوم بيانية ومخططات واضحة للمفاهيم التقنية.
remotion-video-creation
280kيرشد وكيلك في إنشاء فيديوهات باستخدام React ومكتبة Remotion. يغطي أفضل الممارسات للرسوم المتحركة والصوت والتعليقات النصية والعناصر البصرية الأخرى.