跳到正文
RunAPI 开发者文档
API 参考
API 参考

Batch 对象

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

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

01

对象字段

JSON 请求体

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

Batch23 个字段
cancelled_atinteger | null
可选

Unix timestamp when the Batch was cancelled.

cancelling_atinteger | null
可选

Unix timestamp when cancellation began.

completed_atinteger | null
可选

Unix timestamp when the Batch completed.

completion_windowstring
必填

Completion window for the Batch.

created_atinteger
必填

Unix timestamp when the Batch was created.

endpointstring
必填

Moderation endpoint processed by the Batch.

error_file_idstring | null
可选

RunAPI error File ID

errorsobject | null
可选

Batch validation or execution errors

expired_atinteger | null
可选

Unix timestamp when the Batch expired.

expires_atinteger | null
可选

Unix timestamp when the Batch expires.

failed_atinteger | null
可选

Unix timestamp when the Batch failed.

finalizing_atinteger | null
可选

Unix timestamp when the Batch entered finalization.

idstring
必填

RunAPI Batch ID.

in_progress_atinteger | null
可选

Unix timestamp when Batch processing began.

input_file_idstring
必填

RunAPI input File ID.

metadataobject
必填

Caller metadata returned with the Batch.

objectstring
必填

Object type.

output_file_idstring | null
可选

RunAPI output File ID

request_countsobject
必填
request_counts.completedinteger
必填
request_counts.failedinteger
必填
request_counts.totalinteger
必填
statusstring
必填

Batch lifecycle status.

可选值: validating, failed, in_progress, finalizing, completed, expired, cancelling, cancelled