OpenAI/createBatch

暂不支持在线调用 · 原因见下方

OpenAIOpenAI API

POST/batches

管理create Batch。

OpenAI API 中用于 create Batch 的保留合约 POST Endpoint。模型与资源相关值由调用方在运行时提供。

覆盖固定 MIT 许可官方 revision 中全部 288 个 OpenAI Platform REST Endpoint(含类型化 SSE 流式与 Realtime 调用管理)。Hub 提供文档与独立 SDK/CLI,但不代理模型、账户或用量数据;调用方通过本地 API key 直连。

请求

operationId
createBatch
服务器
https://api.openai.com/v1
认证
ApiKeyAuth, AdminApiKeyAuth

请求参数

无 URL、查询或 Header 参数。

Body 参数

CreateBatchRequest必填

Content-Type: application/json

字段: completion_windowendpointinput_file_idmetadataoutput_expires_after

响应

200

Batchapplication/json

供应商成功响应。

字段: cancelled_atcancelling_atcompleted_atcompletion_windowcreated_atendpointerror_file_iderrorsexpired_atexpires_atfailed_atfinalizing_atidin_progress_atinput_file_idmetadatamodelobjectoutput_file_idrequest_countsstatususage

{
  "cancelled_at": 0,
  "cancelling_at": 0,
  "completed_at": 0,
  "created_at": 0,
  "errors": {
    "data": {}
  }
}