curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gemini-omni-1.1-flash-text-to-video",
"prompt": "유리 구슬이 나무 트랙을 굴러 물에 떨어진다.",
"quality": "720p",
"duration": 3,
"aspect_ratio": "16:9"
}
'{
"created": 1757169743,
"id": "task-unified-1757169743-7cvnl5zw",
"model": "gemini-omni-1.1-flash-text-to-video",
"object": "video.generation.task",
"progress": 0,
"status": "processing",
"task_info": {
"can_cancel": false,
"estimated_time": 60,
"video_duration": 3
},
"type": "video",
"usage": {
"billing_rule": "per_token",
"credits_reserved": 102.34
}
}{
"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: gemini-omni-1.1-flash-text-to-video",
"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"
}
}Gemini Omni 1.1 Flash
Gemini Omni 1.1 Flash 전체 파라미터 개요
- 다섯 가지 비디오 모드의 전체 파라미터
- 텍스트, 이미지, 참조, 비디오 편집, 비디오 연장의 다섯 모드가 있습니다.
quality: 텍스트/이미지/참조 모드는 4단계, 기본 720p. 편집/연장은 auto 추가, 기본 auto.duration: 길이: 생성 모드 310, 편집은 auto만, 연장은 추가 초 310.aspect_ratio: 기본값 auto. 편집과 연장은 auto만 허용됩니다.- 모델이 동기화된 네이티브 오디오를 자동 생성합니다.
- 부정 요구사항은 prompt에 직접 작성합니다.
- 비동기 처리: 작업 상태 조회
- 생성 링크는 7일 동안 유효합니다.
POST
/
v1
/
videos
/
generations
curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "gemini-omni-1.1-flash-text-to-video",
"prompt": "유리 구슬이 나무 트랙을 굴러 물에 떨어진다.",
"quality": "720p",
"duration": 3,
"aspect_ratio": "16:9"
}
'{
"created": 1757169743,
"id": "task-unified-1757169743-7cvnl5zw",
"model": "gemini-omni-1.1-flash-text-to-video",
"object": "video.generation.task",
"progress": 0,
"status": "processing",
"task_info": {
"can_cancel": false,
"estimated_time": 60,
"video_duration": 3
},
"type": "video",
"usage": {
"billing_rule": "per_token",
"credits_reserved": 102.34
}
}{
"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: gemini-omni-1.1-flash-text-to-video",
"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
본문
application/json
작업과 입력 미디어에 맞는 모델 ID를 선택하세요:
gemini-omni-1.1-flash-text-to-videogemini-omni-1.1-flash-image-to-videogemini-omni-1.1-flash-reference-to-videogemini-omni-1.1-flash-video-editgemini-omni-1.1-flash-video-extend
사용 가능한 옵션:
gemini-omni-1.1-flash-text-to-video, gemini-omni-1.1-flash-image-to-video, gemini-omni-1.1-flash-reference-to-video, gemini-omni-1.1-flash-video-edit, gemini-omni-1.1-flash-video-extend 예시:
"gemini-omni-1.1-flash-text-to-video"
비디오 해상도
지원 값:
360p: 가로 640×360 / 세로 360×640720p: 가로 1280×720 / 세로 720×12801080p: 가로 1920×1080 / 세로 1080×19204k: 가로 3840×2160 / 세로 2160×3840auto: 비디오 편집과 연장만 지원하며 입력 비디오 해상도를 따름
기본값:
- 텍스트/이미지/레퍼런스-투-비디오:
720p - 비디오 편집/연장:
auto
과금: 출력 비디오는 출력 token 기준으로 과금됩니다. 편집과 연장에서는 입력 및 출력 비디오 token 모두 최종 출력 해상도로 계산됩니다.
사용 가능한 옵션:
360p, 720p, 1080p, 4k, auto 예시:
"720p"
작업 완료 후 HTTPS 콜백 주소
콜백 타이밍:
- 작업이 완료(completed), 실패(failed) 또는 취소(cancelled)될 때 트리거됨
- 과금 확인 완료 후 전송
보안 제한:
- 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"
응답
영상 작업 생성 성공