---
title: 批次物件 | RunAPI
description: 帳戶範圍的審核批次，其執行生命週期由相容的 Batch API 回報。
url: https://runapi.ai/zh-TW/docs/api/protocol/batches/object.md
canonical: https://runapi.ai/zh-TW/docs/api/protocol/batches/object
locale: zh-TW
---

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

# 批次物件

帳戶範圍的審核批次，其執行生命週期由相容的 Batch API 回報。

## 物件欄位

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

### 批次

```json
{
  "cancelled_at": {
    "description": "批次被取消時的 Unix 時間戳記。",
    "required": false,
    "type": "integer | null"
  },
  "cancelling_at": {
    "description": "取消開始時的 Unix 時間戳記。",
    "required": false,
    "type": "integer | null"
  },
  "completed_at": {
    "description": "批次完成時的 Unix 時間戳記。",
    "required": false,
    "type": "integer | null"
  },
  "completion_window": {
    "description": "批次的完成時間窗口。",
    "required": true,
    "type": "string"
  },
  "created_at": {
    "description": "批次建立時的 Unix 時間戳記。",
    "required": true,
    "type": "integer"
  },
  "endpoint": {
    "description": "批次處理的審核端點。",
    "required": true,
    "type": "string"
  },
  "error_file_id": {
    "description": "RunAPI 錯誤檔案 ID",
    "required": false,
    "type": "string | null"
  },
  "errors": {
    "description": "批次驗證或執行錯誤",
    "required": false,
    "type": "object | null"
  },
  "expired_at": {
    "description": "批次到期時的 Unix 時間戳記。",
    "required": false,
    "type": "integer | null"
  },
  "expires_at": {
    "description": "批次將到期的 Unix 時間戳記。",
    "required": false,
    "type": "integer | null"
  },
  "failed_at": {
    "description": "批次失敗時的 Unix 時間戳記。",
    "required": false,
    "type": "integer | null"
  },
  "finalizing_at": {
    "description": "批次進入最終化階段時的 Unix 時間戳記。",
    "required": false,
    "type": "integer | null"
  },
  "id": {
    "description": "RunAPI 批次 ID。",
    "required": true,
    "type": "string"
  },
  "in_progress_at": {
    "description": "批次處理開始時的 Unix 時間戳記。",
    "required": false,
    "type": "integer | null"
  },
  "input_file_id": {
    "description": "RunAPI 輸入檔案 ID。",
    "required": true,
    "type": "string"
  },
  "metadata": {
    "description": "隨批次返回的呼叫者中繼資料。",
    "required": true,
    "type": "object"
  },
  "object": {
    "description": "物件類型。",
    "required": true,
    "type": "string"
  },
  "output_file_id": {
    "description": "RunAPI 輸出檔案 ID",
    "required": false,
    "type": "string | null"
  },
  "request_counts": {
    "description": "",
    "properties": {
      "completed": {
        "description": "",
        "required": true,
        "type": "integer"
      },
      "failed": {
        "description": "",
        "required": true,
        "type": "integer"
      },
      "total": {
        "description": "",
        "required": true,
        "type": "integer"
      }
    },
    "required": true,
    "type": "object"
  },
  "status": {
    "description": "批次生命週期狀態。",
    "enum": [
      "validating",
      "failed",
      "in_progress",
      "finalizing",
      "completed",
      "expired",
      "cancelling",
      "cancelled"
    ],
    "required": true,
    "type": "string"
  }
}
```

## 相關參考資料

- [批次](https://runapi.ai/zh-TW/docs/api/protocol/batches.md)
- [列出批次](https://runapi.ai/zh-TW/docs/api/protocol/batches/list.md)
- [建立批次](https://runapi.ai/zh-TW/docs/api/protocol/batches/create.md)
- [擷取批次](https://runapi.ai/zh-TW/docs/api/protocol/batches/retrieve.md)
- [取消批次](https://runapi.ai/zh-TW/docs/api/protocol/batches/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": "批次物件",
    "description": "帳戶範圍的審核批次，其執行生命週期由相容的 Batch API 回報。",
    "url": "https://runapi.ai/zh-TW/docs/api/protocol/batches/object",
    "mainEntityOfPage": "https://runapi.ai/zh-TW/docs/api/protocol/batches/object"
  }
]
```
