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

# 上传文件

> 支持上传：图片、视频与音频，只保存3小时。

<Warning>上传后，文件只会保留 3 小时。</Warning>


## OpenAPI

````yaml /apidoc/toopen-new.json post /upload
openapi: 3.1.0
info:
  title: AI智能助手
  description: ''
  version: 1.0.0
servers:
  - url: https://open251124.ai.jko.cc
security:
  - BearerAuth: []
tags:
  - name: 视频生成
    description: AI 视频生成及结果查询接口
  - name: 临时储存
    description: 临时文件上传接口
  - name: 视频生成-Seedance2.0（支持人脸）
    description: Seedance2.0（支持人脸）相关接口
  - name: 视频生成-Seedance 原价
    description: Seedance 原价相关接口
  - name: 视频生成-获取生成结果
    description: 获取生成结果相关接口
  - name: 视频生成-谷歌 Omni
    description: 谷歌 Omni相关接口
  - name: 视频生成-Seedance2.0 限时折扣（支持人脸）
    description: Seedance2.0 限时折扣（支持人脸）相关接口
  - name: 视频生成-Seedance2.0 体验1
    description: Seedance2.0 体验1相关接口
  - name: 视频生成-Seedance2.0 体验2
    description: Seedance2.0 体验2相关接口
  - name: 视频生成-Seedance2.0 体验3
    description: Seedance2.0 体验3相关接口
paths:
  /upload:
    post:
      tags:
        - 临时储存
      summary: 上传文件
      description: 支持上传：图片、视频与音频，只保存3小时。
      operationId: uploadTemporaryFile
      requestBody:
        content:
          multipart/form-data:
            schema:
              type: object
              properties:
                file:
                  type: string
                  description: 文件
                  format: binary
              required:
                - file
      responses:
        '200':
          description: 成功
          content:
            application/json:
              schema:
                type: object
                required:
                  - status
                  - message
                  - data
                properties:
                  status:
                    type: integer
                    example: 100
                  message:
                    type: string
                    example: 操作成功
                  data:
                    type: object
                    required:
                      - full_url
                    properties:
                      full_url:
                        type: string
                        format: uri
                        example: .../1785314758_65f4ec.mp4
              example:
                status: 100
                message: 操作成功
                data:
                  full_url: .../1785314758_65f4ec.mp4
        '404':
          description: 失败
          content:
            application/json:
              schema:
                type: object
                properties: {}
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: |-
        在 Authorization 请求头中传入带 Bearer 头的 API 密钥，例如：Bearer xxxxxx 
        [如何获取 API 密钥？](/dev/open/get-bearer-token)

````