下载 batch 文件内容
GET
/v1/files/{file_id}/content下载 batch 输出或错误 JSONL 文件的原始内容(若仍有权限也可下载原输入文件)。使用已完成 batch 上的 output_file_id 或 error_file_id。
响应体为文件二进制流,Content-Type 通常为 application/jsonl。
Authentication
Authorization Bearer
Path Parameters
file_idstringrequiredFile ID from the batch object or upload response.
Response
Binary JSONL stream. Parse line-by-line; each line is a JSON object.
For output files, lines typically include:
custom_id— matches your input line.response— chat completion result or error for that line.error— present when the line failed.
Token360 rewrites response.body.model to your Token360 model name when applicable.
Related: Retrieve batch to obtain output_file_id / error_file_id.
custom_idstringYour input custom_id.
responseobjectSuccessful line response. Includes status_code, request_id, and body.
errorobjectLine-level error when the request failed.
此页面对您有帮助吗?
上一篇
取消 batch
下一篇
列出资产分组