> ## Documentation Index
> Fetch the complete documentation index at: https://evolink.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Gemini Omni 1.2 Flash 비디오 연장

> - Gemini Omni 1.2 Flash(`gemini-omni-1.2-flash-video-extend`)는 선택적 참조 이미지를 활용해 입력 동영상을 네이티브 오디오와 함께 이어 만듭니다.
- **동영상:** `video_urls`는 최대 30초 동영상 1개가 필수입니다.
- **이미지:** `image_urls`로 참조 이미지 최대 10장을 추가할 수 있습니다.
- **길이:** `duration`은 추가할 초 수이며 기본값은 `3`입니다. 전체 출력 길이가 아닙니다.
- **화면 비율:** `aspect_ratio`는 `auto`만 허용하며 기본값도 `auto`입니다. 입력 비율을 따릅니다.
- **요금:** 출력 동영상 부분은 추가된 초 수로 과금합니다. 입력 동영상 전체 길이, 참조 이미지, 프롬프트, 모델 추론도 사용량에 포함되며 실제 사용량으로 정산합니다.
- **해상도:** `quality`는 `360p`, `720p`, `1080p`, `4k`, `auto`입니다. 기본값 `auto`는 입력을 따르며 구체적인 값으로 출력 해상도를 높이거나 낮출 수 있습니다.
- 동기화된 네이티브 오디오를 자동 생성하며 추가 매개변수가 필요하지 않습니다.
- 부정 지시는 `prompt`에 직접 작성하며 별도 매개변수는 없습니다.
- `seed`를 고정하면 재현성을 높일 수 있습니다.
- 비동기 처리이므로 작업 ID로 [상태를 조회](/ko/api-manual/task-management/get-task-detail)하세요.
- 링크는 24시간 동안 유효하므로 빠르게 저장하세요.



## OpenAPI

````yaml ko/api-manual/video-series/gemini-omni-1.2-flash/gemini-omni-1.2-flash-video-extend.json POST /v1/videos/generations
openapi: 3.1.0
info:
  title: Gemini Omni 1.2 Flash 비디오 연장
  description: 선택적 참조 이미지로 입력 비디오 연장
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.evolink.ai
    description: 프로덕션 환경
security:
  - bearerAuth: []
paths:
  /v1/videos/generations:
    post:
      tags:
        - 비디오 생성
      summary: Gemini Omni 1.2 Flash 비디오 연장
      description: >-
        - Gemini Omni 1.2 Flash(`gemini-omni-1.2-flash-video-extend`)는 선택적 참조
        이미지를 활용해 입력 동영상을 네이티브 오디오와 함께 이어 만듭니다.

        - **동영상:** `video_urls`는 최대 30초 동영상 1개가 필수입니다.

        - **이미지:** `image_urls`로 참조 이미지 최대 10장을 추가할 수 있습니다.

        - **길이:** `duration`은 추가할 초 수이며 기본값은 `3`입니다. 전체 출력 길이가 아닙니다.

        - **화면 비율:** `aspect_ratio`는 `auto`만 허용하며 기본값도 `auto`입니다. 입력 비율을 따릅니다.

        - **요금:** 출력 동영상 부분은 추가된 초 수로 과금합니다. 입력 동영상 전체 길이, 참조 이미지, 프롬프트, 모델 추론도
        사용량에 포함되며 실제 사용량으로 정산합니다.

        - **해상도:** `quality`는 `360p`, `720p`, `1080p`, `4k`, `auto`입니다. 기본값
        `auto`는 입력을 따르며 구체적인 값으로 출력 해상도를 높이거나 낮출 수 있습니다.

        - 동기화된 네이티브 오디오를 자동 생성하며 추가 매개변수가 필요하지 않습니다.

        - 부정 지시는 `prompt`에 직접 작성하며 별도 매개변수는 없습니다.

        - `seed`를 고정하면 재현성을 높일 수 있습니다.

        - 비동기 처리이므로 작업 ID로 [상태를
        조회](/ko/api-manual/task-management/get-task-detail)하세요.

        - 링크는 24시간 동안 유효하므로 빠르게 저장하세요.
      operationId: createGeminiOmni12FlashVideoExtendGeneration
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GeminiOmni12FlashVideoExtendRequest'
            examples:
              video_extend:
                summary: 비디오 연장
                value:
                  model: gemini-omni-1.2-flash-video-extend
                  prompt: 인물이 계속 앞으로 걸어가며 천천히 화면 밖으로 나간다.
                  video_urls:
                    - https://example.com/source.mp4
                  duration: 3
                  quality: auto
                  aspect_ratio: auto
              video_extend_with_reference:
                summary: 참조 이미지 포함 비디오 연장
                value:
                  model: gemini-omni-1.2-flash-video-extend
                  prompt: 인물이 계속 앞으로 걸어가며 의상 스타일은 참조 이미지와 일치하게 유지한다.
                  video_urls:
                    - https://example.com/source.mp4
                  image_urls:
                    - https://example.com/reference.png
                  duration: 3
                  quality: auto
                  aspect_ratio: auto
      responses:
        '200':
          description: 영상 작업 생성 성공
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VideoGenerationResponse'
        '400':
          description: 요청 매개변수 오류
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: invalid_request
                  message: Invalid request parameters
                  type: invalid_request_error
        '401':
          description: 인증 실패, Token이 유효하지 않거나 만료됨
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: unauthorized
                  message: Invalid or expired token
                  type: authentication_error
        '402':
          description: 할당량 부족, 충전 필요
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: insufficient_quota
                  message: Insufficient quota. Please top up your account.
                  type: insufficient_quota
        '403':
          description: 접근 권한 없음
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: model_access_denied
                  message: >-
                    Token does not have access to model:
                    gemini-omni-1.2-flash-video-extend
                  type: invalid_request_error
        '429':
          description: 요청 빈도 초과
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: rate_limit_exceeded
                  message: Too many requests, please try again later
                  type: rate_limit_error
        '500':
          description: 서버 내부 오류
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: internal_error
                  message: Internal server error
                  type: api_error
components:
  schemas:
    GeminiOmni12FlashVideoExtendRequest:
      required:
        - model
        - prompt
        - video_urls
      type: object
      additionalProperties: false
      properties:
        model:
          type: string
          description: 모델 이름은 `gemini-omni-1.2-flash-video-extend`으로 고정됩니다
          enum:
            - gemini-omni-1.2-flash-video-extend
          example: gemini-omni-1.2-flash-video-extend
          default: gemini-omni-1.2-flash-video-extend
        prompt:
          type: string
          description: >-
            입력 비디오 이후의 내용을 설명하는 프롬프트.


            중국어와 영어를 지원합니다. 원하는 동작과 변화를 구체적으로 설명하면 더 안정적인 결과를 얻을 수 있습니다. 부정 지시는
            `prompt`에 직접 작성하세요(예: `No dialogue`, `텍스트 표시 금지`). 별도의 네거티브 프롬프트
            매개변수는 없습니다.


            프롬프트는 필수이며 빈 문자열이나 공백 문자만으로 구성된 값은 사용할 수 없습니다.
          example: 인물이 계속 앞으로 걸어가며 천천히 화면 밖으로 나간다.
          minLength: 1
          pattern: \S
        video_urls:
          type: array
          items:
            type: string
            format: uri
          minItems: 1
          maxItems: 1
          description: HTTP/HTTPS로 접근 가능한 30초 이하 MP4 1개.
          example:
            - https://example.com/source.mp4
        image_urls:
          type: array
          items:
            type: string
            format: uri
          minItems: 1
          maxItems: 10
          description: |-
            선택적 레퍼런스 이미지 배열, 최대 10장입니다. 연장 구간의 주체, 스타일 또는 요소를 지정할 수 있습니다.

            **입력 요구사항:**
            - HTTP/HTTPS 이미지 URL만 지원
            - 지원 형식: `png`, `jpeg`, `webp`

            **과금:** 각 레퍼런스 이미지는 입력 token에 포함됩니다.
          example:
            - https://example.com/reference.png
        duration:
          type: integer
          description: |-
            추가 비디오 길이(초), 기본값은 `3`입니다.

            **설명:**
            - `3`~`10` 사이의 모든 정수를 지원합니다
            - 입력 비디오 뒤에 생성할 초 수이며 전체 출력 길이가 아닙니다
            - 전체 출력 길이 = 입력 비디오 길이 + `duration`
            - 추가 길이는 과금에 직접 영향을 줍니다
          minimum: 3
          maximum: 10
          default: 3
          example: 3
        quality:
          type: string
          description: >-
            출력 해상도이며 기본값은 `auto`입니다.


            - `360p`: 짧은 변 360.

            - `720p`: 짧은 변 720.

            - `1080p`: 짧은 변 1080.

            - `4k`: 짧은 변 2160.

            - `auto`: 입력 해상도를 따르는 기본값입니다.


            구체적인 값을 지정하면 출력 해상도를 높이거나 낮출 수 있습니다.


            **요금:** 출력 동영상 토큰은 출력 해상도에 따라 증가합니다. 입력 동영상도 토큰에 포함되며 해상도가 높을수록 비용이
            증가합니다.
          enum:
            - 360p
            - 720p
            - 1080p
            - 4k
            - auto
          default: auto
          example: auto
        aspect_ratio:
          type: string
          description: auto만 허용되며 기본값도 auto입니다. 출력 비율은 입력 비디오를 따릅니다.
          enum:
            - auto
          default: auto
          example: auto
        seed:
          type: integer
          description: >-
            난수 시드이며 기본적으로 무작위로 선택됩니다. 범위는 `0`~`4294967295`입니다. 시드를 고정하면 프롬프트 조정
            시 매개변수 변경에 따른 변동을 줄이고 재현성을 높일 수 있습니다.
          minimum: 0
          maximum: 4294967295
          example: 42
        callback_url:
          type: string
          description: >-
            작업 완료 후 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 상태 코드를 반환하면 성공으로 간주, 다른 상태 코드는 재시도를 트리거
          format: uri
          example: https://your-domain.com/webhooks/video-task-completed
    VideoGenerationResponse:
      type: object
      properties:
        created:
          type: integer
          description: 작업 생성 타임스탬프
          example: 1757169743
        id:
          type: string
          description: 작업 ID
          example: task-unified-1757169743-7cvnl5zw
        model:
          type: string
          description: 실제 사용된 모델 이름
          example: gemini-omni-1.2-flash-video-extend
        object:
          type: string
          enum:
            - video.generation.task
          description: 특정 작업 유형
        progress:
          type: integer
          description: 작업 진행률 (0-100)
          minimum: 0
          maximum: 100
          example: 0
        status:
          type: string
          description: >-
            작업 상태입니다. 생성 API는 항상 `processing`을 반환하며 내부 `pending` 상태도 클라이언트에는
            `processing`으로 표시됩니다.
          enum:
            - pending
            - processing
            - completed
            - failed
          example: processing
        task_info:
          $ref: '#/components/schemas/VideoTaskInfo'
          description: 비디오 작업 상세 정보
        type:
          type: string
          enum:
            - text
            - image
            - audio
            - video
          description: 작업 출력 유형
          example: video
        usage:
          $ref: '#/components/schemas/Usage'
          description: 사용량 및 과금 정보
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
              description: 오류 코드 식별자
            message:
              type: string
              description: 오류 설명
            type:
              type: string
              description: 오류 유형
    VideoTaskInfo:
      type: object
      properties:
        can_cancel:
          type: boolean
          description: 작업 취소 가능 여부
          example: false
        estimated_time:
          type: integer
          description: 예상 완료 시간 (초)
          minimum: 0
          example: 60
        video_duration:
          type: integer
          description: 총 출력 길이는 입력 길이와 추가 길이의 합입니다.
          example: 6
    Usage:
      type: object
      description: 사용량 및 과금 정보
      properties:
        billing_rule:
          type: string
          description: 과금 규칙
          enum:
            - per_call
            - per_token
            - per_second
          example: per_token
        credits_reserved:
          type: number
          description: 예상 소비 크레딧
          minimum: 0
          example: 102.34
        user_group:
          type: string
          description: 사용자가 속한 과금 그룹
          example: default
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: |-
        ##모든 API는 Bearer Token 인증이 필요합니다##

        **API Key 받기:**

        [API Key 관리 페이지](https://evolink.ai/dashboard/keys)를 방문하여 API Key를 받으세요

        **요청 헤더에 추가:**
        ```
        Authorization: Bearer YOUR_API_KEY
        ```

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.