---
title: Upload 物件 | RunAPI
description: 一小時的分段上傳保留，以及完成後的最終 File 物件。
url: https://runapi.ai/zh-TW/docs/api/protocol/uploads/object.md
canonical: https://runapi.ai/zh-TW/docs/api/protocol/uploads/object
locale: zh-TW
---

> HTML 版本: https://runapi.ai/zh-TW/docs/api/protocol/uploads/object
> 代理程式網站索引: https://runapi.ai/llms.txt

# Upload 物件

一小時的分段上傳保留，以及完成後的最終 File 物件。

## 物件欄位

資源可重複使用物件所共用的穩定欄位。

### 上傳

```json
{
  "bytes": {
    "description": "宣告的最終檔案大小（位元組）。",
    "required": true,
    "type": "integer"
  },
  "created_at": {
    "description": "Upload 建立時的 Unix 時間戳記。",
    "required": true,
    "type": "integer"
  },
  "expires_at": {
    "description": "未完成的 Upload 到期時的 Unix 時間戳記。",
    "required": true,
    "type": "integer"
  },
  "file": {
    "description": "",
    "properties": {
      "bytes": {
        "description": "已儲存檔案的大小（位元組）。",
        "required": true,
        "type": "integer"
      },
      "created_at": {
        "description": "File 建立時的 Unix 時間戳記。",
        "required": true,
        "type": "integer"
      },
      "expires_at": {
        "description": "檔案到期的選用 Unix 時間戳記。",
        "required": false,
        "type": "integer"
      },
      "filename": {
        "description": "原始檔案名稱。",
        "required": true,
        "type": "string"
      },
      "id": {
        "description": "RunAPI 檔案 ID。",
        "required": true,
        "type": "string"
      },
      "object": {
        "description": "物件類型。",
        "required": true,
        "type": "string"
      },
      "purpose": {
        "description": "檔案用途。",
        "enum": [
          "user_data",
          "batch",
          "batch_output"
        ],
        "required": true,
        "type": "string"
      }
    },
    "required": false,
    "type": "protocol_file"
  },
  "filename": {
    "description": "已完成檔案的檔案名稱。",
    "required": true,
    "type": "string"
  },
  "id": {
    "description": "RunAPI 上傳 ID。",
    "required": true,
    "type": "string"
  },
  "object": {
    "description": "物件類型。",
    "required": true,
    "type": "string"
  },
  "purpose": {
    "description": "檔案用途。",
    "enum": [
      "user_data",
      "batch"
    ],
    "required": true,
    "type": "string"
  },
  "status": {
    "description": "Upload 生命週期狀態。",
    "enum": [
      "pending",
      "completed",
      "cancelled",
      "expired"
    ],
    "required": true,
    "type": "string"
  }
}
```

## 相關參考資料

- [上傳](https://runapi.ai/zh-TW/docs/api/protocol/uploads.md)
- [建立上傳](https://runapi.ai/zh-TW/docs/api/protocol/uploads/create.md)
- [新增上傳分段](https://runapi.ai/zh-TW/docs/api/protocol/uploads/add-part.md)
- [完成上傳](https://runapi.ai/zh-TW/docs/api/protocol/uploads/complete.md)
- [取消上傳](https://runapi.ai/zh-TW/docs/api/protocol/uploads/cancel.md)

---

## RunAPI 的更多內容

- [首頁](https://runapi.ai/zh-TW/.md)
- [模型目錄](https://runapi.ai/zh-TW/models.md)
- [價格](https://runapi.ai/zh-TW/pricing.md)
- [提供商](https://runapi.ai/zh-TW/models)
- [文件](https://runapi.ai/zh-TW/docs/guides)
- [SDK](https://runapi.ai/zh-TW/sdk.md)
- [CLI](https://runapi.ai/zh-TW/cli.md)
- [MCP Server](https://runapi.ai/zh-TW/mcp.md)
- [Claude Code 與 Cursor](https://runapi.ai/zh-TW/claude-code-vs-cursor.md)
- [Cursor API 設定](https://runapi.ai/zh-TW/cursor-api-setup.md)
- [RunAPI 與 OpenRouter](https://runapi.ai/zh-TW/openrouter-alternative.md)
- [企業版](https://runapi.ai/zh-TW/contact.md)
- [聯絡我們](https://runapi.ai/zh-TW/contact.md)
- [服務條款](https://runapi.ai/zh-TW/terms.md)
- [隱私權](https://runapi.ai/zh-TW/privacy.md)
- [代理程式網站索引](https://runapi.ai/llms.txt)

聯絡我們: contact@runapi.ai

## 結構化資料

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-TW",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-TW",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/zh-TW/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-TW",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-TW",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/zh-TWicon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-TW",
    "@type": "TechArticle",
    "headline": "Upload 物件",
    "description": "一小時的分段上傳保留，以及完成後的最終 File 物件。",
    "url": "https://runapi.ai/zh-TW/docs/api/protocol/uploads/object",
    "mainEntityOfPage": "https://runapi.ai/zh-TW/docs/api/protocol/uploads/object"
  }
]
```
