---
title: 檔案物件 | RunAPI
description: 一個不可變的持久性檔案，以 RunAPI 檔案 ID 標識，不包含儲存實作細節。
url: https://runapi.ai/zh-HK/docs/api/protocol/files/object.md
canonical: https://runapi.ai/zh-HK/docs/api/protocol/files/object
locale: zh-HK
---

> HTML 版本: https://runapi.ai/zh-HK/docs/api/protocol/files/object
> 智能代理網站索引: https://runapi.ai/llms.txt

# 檔案物件

一個不可變的持久性檔案，以 RunAPI 檔案 ID 標識，不包含儲存實作細節。

## 物件欄位

資源可重用物件共享的穩定欄位。

### 持久檔案

```json
{
  "bytes": {
    "description": "已儲存檔案的大小（以位元組計）。",
    "required": true,
    "type": "integer"
  },
  "created_at": {
    "description": "檔案建立時的 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"
  }
}
```

## 相關參考資料

- [持久檔案](https://runapi.ai/zh-HK/docs/api/protocol/files.md)
- [建立文件](https://runapi.ai/zh-HK/docs/api/protocol/files/create.md)
- [列出檔案](https://runapi.ai/zh-HK/docs/api/protocol/files/list.md)
- [擷取檔案](https://runapi.ai/zh-HK/docs/api/protocol/files/retrieve.md)
- [擷取檔案內容](https://runapi.ai/zh-HK/docs/api/protocol/files/content.md)
- [刪除檔案](https://runapi.ai/zh-HK/docs/api/protocol/files/delete.md)

---

## RunAPI 的更多內容

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

聯絡我們: contact@runapi.ai

## 結構化資料

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-HK",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/zh-HK/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-HK",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/zh-HKicon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-HK",
    "@type": "TechArticle",
    "headline": "檔案物件",
    "description": "一個不可變的持久性檔案，以 RunAPI 檔案 ID 標識，不包含儲存實作細節。",
    "url": "https://runapi.ai/zh-HK/docs/api/protocol/files/object",
    "mainEntityOfPage": "https://runapi.ai/zh-HK/docs/api/protocol/files/object"
  }
]
```
