Skip to main content
xAI빠름높음

Grok Imagine Video

xAI 직결 API로 제공되는 Grok Imagine Video 모델입니다. 텍스트-비디오, 이미지-비디오 생성과 동기화된 오디오를 지원합니다. 기존 클립 편집은 xai/grok-imagine-video/edit 모델을 사용하세요.

1300 크레딧
8초 기준(기본값) — 초당 과금 (480p 116/초, 720p 163/초)
텍스트-비디오 및 이미지-비디오 생성 지원
동기화된 오디오 트랙 포함
480p 또는 720p 출력, 1~15초
해상도별 차등 초당 과금

지금 바로 실행해보세요

콘솔의 Playground에서 별도 코드 없이 이 모델을 즉시 테스트할 수 있어요

로그인 후 사용해보기

AI 어시스턴트에서 사용하기

이 모델의 사용법을 Claude, ChatGPT 등에 복사

빠른 시작

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "xai/grok-imagine-video",
  "input": {
    "prompt": "a penguin walks away from the camera, towards a large snowy mountaintop in the distance",
    "duration": 8,
    "resolution": "720p",
    "aspect_ratio": "16:9"
  }
}'

파라미터

파라미터타입필수기본값설명
promptstringYes-비디오 생성을 위한 텍스트 프롬프트
imagestringNo-비디오 생성 기준이 되는 입력 이미지 (이미지-비디오). jpg, jpeg, png, webp 지원
durationintegerNo8비디오 길이 초 (1~15)
resolutionstringNo-비디오 해상도. 미지정 시 720p 요율로 과금되므로 명시적으로 지정하세요
480p720p
aspect_ratiostringNo16:9출력 비디오의 화면 비율 (직결 xAI API는 'auto'를 허용하지 않습니다)
16:94:31:19:163:43:22:3

파일 입력 방법

이 모델의 image 파라미터에 파일을 전달하는 방법은 3가지입니다.

추천

이미지 URL 전달

공개 접근 가능한 URL을 직접 전달합니다. Storage API(POST /v1/files/upload-url)로 업로드하면 파일이 S3로 직접 올라가고(파일당 50MB), 반환된 file_url을 그대로 쓰면 됩니다.

{
  "model": "xai/grok-imagine-video",
  "input": {
    "prompt": "your prompt here",
    "image": "https://example.com/image.jpg"
  }
}

간편 업로드 (Multipart)

POST /v1/predictions/upload에 파일을 직접 첨부합니다. 별도 업로드 과정이 없는 대신, 파일이 API 서버를 거치므로 요청 전체 10MB 제한이 적용됩니다.

curl -X POST "https://api.core.today/v1/predictions/upload" \
  -H "X-API-Key: cdt_your_api_key" \
  -F "model=xai/grok-imagine-video" \
  -F 'input={"prompt":"your prompt here"}' \
  -F "file:image=@your_file.png"
File Upload 문서에서 Presigned URL 방식 등 더 자세한 업로드 방법을 확인하세요.

공통 파라미터

POST /v1/predictions 요청 시 사용되는 공통 파라미터입니다.

파라미터타입필수기본값설명
modelstringYes-모델 식별자
inputobjectYes-위 테이블의 모델별 파라미터를 포함하는 객체
output_folderstringNo-결과물 저장 폴더 경로 (최대 256자, '..' 사용 불가)
webhook_urlstringNo-완료 시 호출할 Webhook URL
is_publicbooleanNofalsetrue 시 결과물을 영구 공개 URL로도 제공

예제

텍스트-비디오 (720p)

텍스트 프롬프트만으로 8초 클립 생성

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "xai/grok-imagine-video",
  "input": {
    "prompt": "a penguin walks away from the camera, towards a large snowy mountaintop in the distance",
    "duration": 8,
    "resolution": "720p",
    "aspect_ratio": "16:9"
  }
}'

저비용 클립 (480p)

480p는 720p보다 초당 약 28% 저렴합니다

curl -X POST "https://api.core.today/v1/predictions" \
  -H "Content-Type: application/json" \
  -H "X-API-Key: cdt_your_api_key" \
  -d '{
  "model": "xai/grok-imagine-video",
  "input": {
    "prompt": "a lone astronaut walking across a red Martian desert as twin suns set on the horizon",
    "duration": 15,
    "resolution": "480p",
    "aspect_ratio": "16:9"
  }
}'

팁 & 모범 사례

1resolution을 항상 명시하세요 — 미지정 시 720p 요율로 과금됩니다
2길이는 1~15초이며 비용은 초당 선형으로 증가합니다
3기존 클립 편집은 xai/grok-imagine-video/edit를 사용하세요 (이 모델은 더 이상 video 입력을 받지 않습니다)
4네이티브 1080p와 더 높은 품질이 필요하면 xai/grok-imagine-video-1.5를 사용하세요

사용 사례

소셜 콘텐츠용 빠른 텍스트-비디오 클립
정지 이미지를 짧은 모션으로 애니메이션화
최대 15초까지 길이 실험
명시적 화면비를 활용한 세로·정사각형 클립 제작