Grok Imagine Video 1.5 API
xAI의 Grok Imagine Video 1.5 생성 모델에 대한 전체 API 레퍼런스입니다.
모델 변형
이 API는 하나의 모델 변형을 지원합니다:
지원되는 화면 비율
해상도 옵션
Grok Imagine 1.5 Image to Video
엔드포인트 {#}
POST /api/v1/video/task
요청 파라미터
필수
선택 사항
요청 예시
const response = await fetch('https://api.flaq.ai/api/v1/video/task', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
model_name: 'grok-imagine-v1.5-image-to-video',
image_url: 'https://example.com/reference.jpg',
prompt: 'Subtle camera motion, subject holds pose',
aspect_ratio: '16:9',
duration: 10,
resolution: '720p'
})
});
const { data } = await response.json();
const taskId = data.task_id;
body 전용 예시:
{
model_name: 'grok-imagine-v1.5-image-to-video',
image_url: 'https://example.com/reference.jpg',
prompt: 'Subtle camera motion, subject holds pose',
aspect_ratio: '16:9',
duration: 10,
resolution: '720p'
}
응답 형식
초기 응답
폴링에 사용할 task_id를 반환합니다:
{
"code": 0,
"message": "success",
"data": {
"task_id": "{task_id}",
"response_url": "https://api.flaq.ai/api/v1/video/{task_id}",
"task_status": "submitted"
}
}
폴링 응답
상태를 확인하려면 GET /api/v1/video/{taskId}를 폴링하세요:
{
"code": 0,
"message": "success",
"data": {
"task_id": "{task_id}",
"response_url": "https://api.flaq.ai/api/v1/video/{task_id}",
"task_status": "succeed",
"task_status_msg": null,
"task_result": {
"videos": [
{
"url": "https://example.com/generated-video.mp4"
}
]
}
}
}
상태 값
submitted: 작업이 수락되었으며 처리 대기 중입니다
processing: 비디오 생성이 진행 중입니다
succeed: 비디오 생성이 완료되었습니다
failed: 비디오 생성에 실패했습니다
처리 시간
일반적인 처리 시간: 2-5분.
모범 사례
- 움직임 설명: 프롬프트에 카메라 움직임과 피사체 움직임을 포함하세요
- 이미지 품질: 더 나은 애니메이션 결과를 위해 고품질 입력 이미지를 사용하세요
- 화면 비율: 제출 전에
aspect_ratio를 목표 출력 형식에 맞추세요