---
title: Batch 对象 | RunAPI
description: 按 Account 隔离的 Moderation Batch，其执行生命周期通过兼容 Batch API 返回。
url: https://runapi.ai/zh-CN/docs/api/protocol/batches/object.md
canonical: https://runapi.ai/zh-CN/docs/api/protocol/batches/object
locale: zh-CN
---

> HTML version: https://runapi.ai/zh-CN/docs/api/protocol/batches/object
> Site index for agents: https://runapi.ai/llms.txt

# Batch 对象

按 Account 隔离的 Moderation Batch，其执行生命周期通过兼容 Batch API 返回。

## 对象字段

可复用资源对象共享的稳定字段。

### Batch

```json
{
  "cancelled_at": {
    "description": "Unix timestamp when the Batch was cancelled.",
    "required": false,
    "type": "integer | null"
  },
  "cancelling_at": {
    "description": "Unix timestamp when cancellation began.",
    "required": false,
    "type": "integer | null"
  },
  "completed_at": {
    "description": "Unix timestamp when the Batch completed.",
    "required": false,
    "type": "integer | null"
  },
  "completion_window": {
    "description": "Completion window for the Batch.",
    "required": true,
    "type": "string"
  },
  "created_at": {
    "description": "Unix timestamp when the Batch was created.",
    "required": true,
    "type": "integer"
  },
  "endpoint": {
    "description": "Moderation endpoint processed by the Batch.",
    "required": true,
    "type": "string"
  },
  "error_file_id": {
    "description": "RunAPI error File ID",
    "required": false,
    "type": "string | null"
  },
  "errors": {
    "description": "Batch validation or execution errors",
    "required": false,
    "type": "object | null"
  },
  "expired_at": {
    "description": "Unix timestamp when the Batch expired.",
    "required": false,
    "type": "integer | null"
  },
  "expires_at": {
    "description": "Unix timestamp when the Batch expires.",
    "required": false,
    "type": "integer | null"
  },
  "failed_at": {
    "description": "Unix timestamp when the Batch failed.",
    "required": false,
    "type": "integer | null"
  },
  "finalizing_at": {
    "description": "Unix timestamp when the Batch entered finalization.",
    "required": false,
    "type": "integer | null"
  },
  "id": {
    "description": "RunAPI Batch ID.",
    "required": true,
    "type": "string"
  },
  "in_progress_at": {
    "description": "Unix timestamp when Batch processing began.",
    "required": false,
    "type": "integer | null"
  },
  "input_file_id": {
    "description": "RunAPI input File ID.",
    "required": true,
    "type": "string"
  },
  "metadata": {
    "description": "Caller metadata returned with the Batch.",
    "required": true,
    "type": "object"
  },
  "object": {
    "description": "Object type.",
    "required": true,
    "type": "string"
  },
  "output_file_id": {
    "description": "RunAPI output File 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": "Batch lifecycle status.",
    "enum": [
      "validating",
      "failed",
      "in_progress",
      "finalizing",
      "completed",
      "expired",
      "cancelling",
      "cancelled"
    ],
    "required": true,
    "type": "string"
  }
}
```

## 相关参考

- [Batch](https://runapi.ai/docs/api/protocol/batches.md)
- [列出 Batch](https://runapi.ai/docs/api/protocol/batches/list.md)
- [创建 Batch](https://runapi.ai/docs/api/protocol/batches/create.md)
- [获取 Batch](https://runapi.ai/docs/api/protocol/batches/retrieve.md)
- [取消 Batch](https://runapi.ai/docs/api/protocol/batches/cancel.md)

---

## More from RunAPI

- [Home](https://runapi.ai/.md)
- [模型](https://runapi.ai/zh-CN/models.md)
- [AI 视频 API 对比](https://runapi.ai/zh-CN/ai-video-api-comparison.md)
- [OpenClaw 集成](https://runapi.ai/zh-CN/openclaw.md)
- [OpenClaw 最佳 API](https://runapi.ai/zh-CN/best-api-for-openclaw.md)
- [OpenClaw 图片生成](https://runapi.ai/zh-CN/openclaw-image-generation.md)
- [Hermes 智能体集成](https://runapi.ai/zh-CN/hermes-agent.md)
- [定价](https://runapi.ai/zh-CN/pricing.md)
- [Claude API 定价](https://runapi.ai/zh-CN/claude-api-pricing.md)
- [ChatGPT API 定价](https://runapi.ai/zh-CN/chatgpt-api-pricing.md)
- [OpenAI API 定价](https://runapi.ai/zh-CN/openai-api-pricing.md)
- [Gemini API 定价](https://runapi.ai/zh-CN/gemini-api-pricing.md)
- [Claude Code 定价](https://runapi.ai/zh-CN/claude-code-pricing.md)
- [Claude Code API](https://runapi.ai/zh-CN/claude-code-api.md)
- [Claude Code 对比 Cursor](https://runapi.ai/zh-CN/claude-code-vs-cursor.md)
- [Claude Max 对比 API](https://runapi.ai/zh-CN/claude-max-vs-api.md)
- [Requesty 替代方案](https://runapi.ai/zh-CN/requesty-alternative.md)
- [文档](https://runapi.ai/zh-CN/docs/guides)
- [SDK](https://runapi.ai/zh-CN/sdk.md)
- [Skills](https://runapi.ai/zh-CN/skills.md)
- [MCP Server](https://runapi.ai/zh-CN/mcp.md)
- [CLI](https://runapi.ai/zh-CN/cli.md)
- [反馈](https://runapi.ai/)
- [联系](mailto:support@runapi.ai)
- [服务条款](https://runapi.ai/zh-CN/terms.md)
- [隐私政策](https://runapi.ai/zh-CN/privacy.md)
- [Site index for agents](https://runapi.ai/llms.txt)

Contact: contact@runapi.ai

## Structured data

```json
[
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "WebSite",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-CN",
    "potentialAction": {
      "@type": "SearchAction",
      "target": {
        "@type": "EntryPoint",
        "urlTemplate": "https://runapi.ai/zh-CN/models?q={search_term_string}"
      },
      "query-input": "required name=search_term_string"
    }
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "Organization",
    "name": "RunAPI",
    "url": "https://runapi.ai/zh-CN",
    "logo": {
      "@type": "ImageObject",
      "url": "https://runapi.ai/zh-CNicon.svg"
    },
    "sameAs": [
      "https://github.com/runapi-ai"
    ]
  },
  {
    "@context": "https://schema.org",
    "inLanguage": "zh-CN",
    "@type": "TechArticle",
    "headline": "Batch 对象",
    "description": "按 Account 隔离的 Moderation Batch，其执行生命周期通过兼容 Batch API 返回。",
    "url": "https://runapi.ai/zh-CN/docs/api/protocol/batches/object",
    "mainEntityOfPage": "https://runapi.ai/zh-CN/docs/api/protocol/batches/object"
  }
]
```
