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

# Flux 3 비디오 콘텐츠 다운로드

> 통합 콘텐츠 경로를 통해 Flux 3 비디오 작업의 완료된 MP4 파일을 다운로드합니다.

이 엔드포인트를 사용하여 완료된 Flux 3 비디오 작업의 MP4 파일을 다운로드합니다.

## 다운로드 전

* 다음을 사용해 작업을 생성하세요: [Flux 3 비디오 생성](./create).
* 다음을 사용해 폴링하세요: [Flux 3 비디오 조회](./retrieve) `status`가 `completed`가 될 때까지.
* 동일한 작업 ID를 이 엔드포인트에 전달하세요.

## 완료된 미디어 저장

응답 본문은 바이너리 `video/mp4` 콘텐츠입니다. 애플리케이션에서 생성된 미디어에 지속적으로 액세스해야 하는 경우 바이트를 자체 스토리지에 저장하세요.


## OpenAPI

````yaml api/openapi/video/flux-3/get-retrieve-content.openapi.json GET /v1/videos/{task_id}/content
openapi: 3.1.0
info:
  title: Flux 3 Video Content API
  version: 1.0.0
  description: Download the completed MP4 file for a Flux 3 video task.
servers:
  - url: https://api.cometapi.com
security:
  - bearerAuth: []
paths:
  /v1/videos/{task_id}/content:
    get:
      summary: Download Flux 3 video content
      description: >-
        Download the generated MP4 file after a Flux 3 video task reaches
        completed status.
      operationId: flux_3_retrieve_video_content
      parameters:
        - name: task_id
          in: path
          required: true
          description: Task ID returned by POST /v1/videos.
          schema:
            type: string
          example: <task_id>
      responses:
        '200':
          description: Binary MP4 video content.
          content:
            video/mp4:
              schema:
                type: string
                format: binary
        '400':
          description: The video task is not completed.
        '401':
          description: The API key is missing or invalid.
        '404':
          description: No video task matches the supplied task ID.
      security:
        - bearerAuth: []
      x-codeSamples:
        - lang: Shell
          label: Download MP4
          source: |-
            curl "https://api.cometapi.com/v1/videos/<task_id>/content" \
              -H "Authorization: Bearer $COMETAPI_KEY" \
              --output flux-3.mp4
        - lang: Python
          label: Download MP4
          source: |
            import os
            from pathlib import Path

            import requests

            task_id = "<task_id>"
            response = requests.get(
                f"https://api.cometapi.com/v1/videos/{task_id}/content",
                headers={
                    "Authorization": "Bearer " + os.environ["COMETAPI_KEY"]
                },
                timeout=300,
            )
            response.raise_for_status()
            Path("flux-3.mp4").write_bytes(response.content)
        - lang: JavaScript
          label: Download MP4
          source: |
            import { writeFile } from "node:fs/promises";

            const taskId = "<task_id>";
            const response = await fetch(
              `https://api.cometapi.com/v1/videos/${taskId}/content`,
              { headers: { Authorization: `Bearer ${process.env.COMETAPI_KEY}` } },
            );

            if (!response.ok) {
              throw new Error(await response.text());
            }

            const video = new Uint8Array(await response.arrayBuffer());
            await writeFile("flux-3.mp4", video);
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Bearer authentication. Use your CometAPI API key.

````