grok-media
하는 일
이 스킬은 xAI의 Grok 이미지 및 영상 모델을 다룹니다. 이미지, 이미지 편집, 또는 영상 클립에 Grok을 쓰려는 제작자를 위한 스킬입니다.
사용하는 경우
- ✓Grok 이미지 모델로 이미지를 만들고 싶을 때.
- ✓기존 이미지를 편집하거나 여러 이미지를 Grok으로 합치고 싶을 때.
- ✓텍스트, 이미지, 또는 참고 이미지로 짧은 영상을 원할 때.
스킬 링크
https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/grok-media/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“Grok으로 해질녘 도시 스카이라인 포스터 이미지를 만든 뒤, 그것으로 짧은 영상도 만들어 주세요.”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 프롬프트나 이미지를 API 키와 함께 Grok 서비스에 보냅니다. 영상의 경우 완료될 때까지 작업 상태를 확인한 뒤 결과를 저장합니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Grok Media
Use this skill when working with xAI media models in OpenMontage.
Models
grok-imagine-imagefor image generation and image editinggrok-imagine-videofor text-to-video, image-to-video, and reference-image video
Authentication
- Env var:
XAI_API_KEY - Base URL:
https://api.x.ai/v1 - Header:
Authorization: Bearer $XAI_API_KEY
Image API
Text-to-image
- Endpoint:
POST /images/generations - Core fields:
modelpromptnaspect_ratioresolution
Image edit
- Endpoint:
POST /images/edits - Use
imagefor one source image - Use
imagesfor multi-image compositing - Each source image can be:
- a public HTTPS URL
- a base64 data URI
Image prompting
- Grok responds well to direct natural language
- For edits, describe only the intended change and preserve everything else implicitly
- For multi-image merges, explicitly name how each source contributes
- Prefer one strong scene description over long style-stacking
Video API
Generation
- Endpoint:
POST /videos/generations - Polling endpoint:
GET /videos/{request_id} - Success state:
status == "done" - Failure states to handle explicitly:
failed,expired
Modes
- Text-to-video:
- prompt-only generation
- Image-to-video:
- use
image: {"url": ...} - this anchors the starting frame
- use
- Reference-to-video:
- use
reference_images: [{"url": ...}, ...] - this influences who/what appears in the video without locking the first frame
- prompts can reference inputs with placeholders like
<IMAGE_1>,<IMAGE_2>
- use
Video constraints
- Grok video is best treated as short-form generation
- Current output resolutions are
480pand720p - Reference-image video supports multiple images and is useful for product placement, wardrobe transfer, and identity consistency
- Download outputs promptly; provider URLs may be temporary
Pricing
grok-imagine-image:$0.02per generated imagegrok-imagine-imageedits/composites: add$0.002per input imagegrok-imagine-video:480p:$0.05per second720p:$0.07per second
grok-imagine-videoimage-conditioned requests: add$0.002per input image
Grok-Specific Prompt Guidance
Images
- Start with subject, action, setting
- Add one style anchor, not five
- For edits:
- describe the desired modification
- keep the rest of the image stable by omission, not by writing a giant preservation list
Video
- Keep prompts scene-local: one shot, one main motion idea, one emotional beat
- For reference-conditioned video, explicitly map source images to roles:
- person from
<IMAGE_1> - jacket from
<IMAGE_2> - product from
<IMAGE_3>
- person from
- Camera and pacing language helps:
- slow push-in
- handheld follow
- locked-off medium shot
- high-energy whip pan transition
Good Fits
- Image style transfer
- Image compositing from multiple sources
- Reference-conditioned short video
- Product-led motion clips
- Character-consistent scenes without hard first-frame lock
Weak Fits
- Long-form clip generation
- Heavy reliance on deterministic seeds
- Overloaded prompts with multiple scene changes
Failure Handling
- If generation submission succeeds but polling expires, surface it as a provider/runtime issue
- If a request fails, preserve the endpoint, mode, and prompt summary in the error
- Do not silently substitute a different provider after xAI was selected without user approval
자주 묻는 질문
무엇을 설정해야 하나요?
환경 변수에 XAI_API_KEY가 필요합니다.
이미지는 어떻게 편집하나요?
바꾸고 싶은 부분만 설명하면, 나머지 부분은 그대로 유지됩니다.
영상 작업이 실패하면 어떻게 하나요?
스킬이 실패하거나 만료된 작업을 확인하고, 그 내용을 분명하게 보고합니다.
상세 정보
작성자의 원본 설명
xAI Grok image and video generation guide covering authentication, endpoints, prompt structure, image editing, reference-image video, and async polling.
repo: calesthio/OpenMontage
인기도
- GitHub 스타
- 75k
- 순위
- #2659
- 라이선스
- AGPL-3.0
- 업데이트
- 2026. 10. 28.
댓글
- …
이 저장소의 다른 스킬
3d-asset-generation
75k카탈로그, 텍스트·이미지 3D 변환 도구, Blender를 활용해 장면에 쓸 3D 오브젝트를 만드는 방법을 고르도록 돕습니다.
acestep
75k오픈소스 ACE-Step 음악 생성기를 사용해 영상에 쓸 배경 음악, 노래, 징글, 스템을 만들도록 돕습니다.
agents
75kElevenLabs로 고객 응대 봇이나 대화형 음성 캐릭터 같은 음성 AI 에이전트를 만들도록 돕습니다.
ai-video-gen
75k텍스트 설명이나 참고 이미지로 AI 영상 클립을 만들며, 여러 영상 생성 서비스 중에서 고르도록 돕습니다.