curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "grok-imagine-video-1.5-preview",
"prompt": "네온이 밝히는 밤거리, 빗속을 천천히 전진하는 카메라",
"duration": 6,
"quality": "480p",
"aspect_ratio": "16:9"
}
'{
"created": 1757169743,
"id": "task-unified-1757169743-7cvnl5zw",
"model": "grok-imagine-video-1.5-preview",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 120
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 26.66,
"user_group": "default"
}
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "Token does not have access to model: grok-imagine-video-1.5-preview",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests, please try again later",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"type": "api_error"
}
}Grok Imagine 1.5 비디오 생성 Preview
- Grok Imagine 1.5 (grok-imagine-video-1.5-preview) 모델은 하나의 모델 이름으로 텍스트-투-비디오, 이미지-투-비디오, 참조-투-비디오를 지원합니다
- 모드 파라미터는 없습니다.
image_urls의 이미지 장수가 모드를 결정합니다 ——0장 = 텍스트-투-비디오,1장 = 이미지-투-비디오(첫 프레임으로 사용),2-7장 = 참조-투-비디오 - 비동기 처리 모드, 반환된 작업 ID를 사용하여 조회
- 생성된 비디오 링크는 24시간 동안 유효하며, 즉시 저장하세요
curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "grok-imagine-video-1.5-preview",
"prompt": "네온이 밝히는 밤거리, 빗속을 천천히 전진하는 카메라",
"duration": 6,
"quality": "480p",
"aspect_ratio": "16:9"
}
'{
"created": 1757169743,
"id": "task-unified-1757169743-7cvnl5zw",
"model": "grok-imagine-video-1.5-preview",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": true,
"estimated_time": 120
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 26.66,
"user_group": "default"
}
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "Token does not have access to model: grok-imagine-video-1.5-preview",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests, please try again later",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"type": "api_error"
}
}인증
##모든 API는 Bearer Token 인증이 필요합니다##
API Key 받기:
API Key 관리 페이지를 방문하여 API Key를 받으세요
요청 헤더에 추가:
Authorization: Bearer YOUR_API_KEY
본문
모델 이름
grok-imagine-video-1.5-preview "grok-imagine-video-1.5-preview"
비디오 설명 프롬프트 (필수, 비어 있을 수 없음)
길이 제한: 최대 4096 문자
"The person starts dancing"
입력 이미지 URL (선택 사항). 이미지 장수가 생성 모드를 결정합니다.
모드 선택:
0장 (필드 생략): 텍스트-투-비디오, 이미지 요금 없음1장: 이미지-투-비디오, 첫 프레임으로 사용2-7장: 참조-투-비디오, 이미지들을 결합
요구사항:
- 최대
7장,8장 이상은 거부됩니다 - 이미지 크기: 장당 최대
10MB - 지원 형식: JPEG, PNG, WebP
7["https://example.com/image.jpg"]
비디오 길이 (초), 1~15초 사이의 임의 정수
1 <= x <= 156
비디오 해상도, 기본값은 480p
설명:
480p: 표준 해상도, 기본값720p: 고해상도1080p: Full HD
참조 이미지 기반 생성(2~7장)은 최대 720p까지 지원합니다. 이미지 2장 이상과 함께 1080p를 보내면 거부됩니다. 1080p는 텍스트-투-비디오와 이미지 1장인 이미지-투-비디오에서는 계속 사용할 수 있습니다.
480p, 720p, 1080p "480p"
출력 화면 비율, 기본값은 auto
적용 대상: 텍스트-투-비디오(0장)와 참조 이미지 기반 생성(2-7장). 입력 이미지가 1장일 때는 출력이 해당 이미지 크기를 따르며 이 파라미터는 무시됩니다.
설명:
auto: 모델이 구도를 결정하므로 생성할 때마다 달라질 수 있으며, 기본값입니다16:9: 가로9:16: 세로1:1: 정사각형3:2: 가로, 클래식 사진 비율2:3: 세로, 클래식 사진 비율
auto, 16:9, 9:16, 1:1, 3:2, 2:3 "16:9"
작업 완료 후 HTTPS 콜백 URL
콜백 시점:
- 작업이 완료, 실패 또는 취소될 때 트리거됩니다
- 과금 확인 후 전송됩니다
보안 제한:
- HTTPS 프로토콜만 지원
- 내부 IP로의 콜백 금지 (127.0.0.1, 10.x.x.x, 172.16-31.x.x, 192.168.x.x 등)
- URL 길이는
2048자를 초과할 수 없습니다
콜백 메커니즘:
- 타임아웃:
10초 - 실패 시 최대
3회 재시도 (1/2/4초 후) - 응답 형식은 작업 조회 API와 동일
- 2xx 상태 코드 = 성공, 그 외는 재시도 트리거
"https://your-domain.com/webhooks/video-task-completed"
응답
비디오 작업이 성공적으로 생성되었습니다
작업 생성 타임스탬프
1757169743
작업 ID
"task-unified-1757169743-7cvnl5zw"
실제 사용된 모델 이름
"grok-imagine-video-1.5-preview"
특정 작업 유형
video.generation.task 작업 진행률 (0-100)
0 <= x <= 1000
작업 상태
pending, processing, completed, failed "pending"
비디오 작업 상세 정보
Show child attributes
Show child attributes
작업 출력 유형
text, image, audio, video "video"
사용량 및 과금 정보
Show child attributes
Show child attributes