- 🔥最新公告
- OpenAI SDK教程
- 聊天(OpenAIChat)
- AnthropicClaude
- 图像(Images)
- 视频生成(Videos)
- 音频(Audio)
- 嵌入(RAG-Embeddings)
- 重排序(RAG-Reranker)
- 对象存储+文件解析(Files)
- 内容审查(Moderations)
- 助手测试版(AssistantsBeta)待开发
- 线程数(Threads)待开发
- 留言(Messages)待开发
- 运行(Runs)待开发
- 批量API(Batch API)待开发
- 微调(Fine-tuning)待开发
- 🔥AI 工具
- 文档智能&图片处理
- AI产品配置教程
- 教程类
- 系统API
- 视频生成
- Midjourney
- Recraft(图片)
- 未命名接口POST
- 未命名接口POST
列出 Batch
开发中
正式环境
正式环境
GET
https://api.chatfire.cn
最后修改时间:2024-05-31 06:50:12
责任人:未设置
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
Query 参数
after
string
可选
limit
string
可选
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.chatfire.cn/batches?after&limit'
返回响应
🟢200成功
application/json
Body
object
string
必需
data
array [object {20}]
必需
id
string
事件id
object
string
可选
endpoint
string
可选
errors
null
可选
input_file_id
string
可选
completion_window
string
可选
status
string
可选
output_file_id
string
可选
error_file_id
string
可选
created_at
integer
创建时间timestamp
in_progress_at
integer
可选
expires_at
integer
可选
finalizing_at
integer
可选
completed_at
integer
可选
failed_at
null
可选
expired_at
null
可选
cancelling_at
null
可选
cancelled_at
null
可选
request_counts
object
可选
metadata
object
可选
first_id
string
必需
last_id
string
必需
has_more
boolean
是否还有更多
示例
{
"object": "list",
"data": [
{
"id": "batch_abc123",
"object": "batch",
"endpoint": "/v1/chat/completions",
"errors": null,
"input_file_id": "file-abc123",
"completion_window": "24h",
"status": "completed",
"output_file_id": "file-cvaTdG",
"error_file_id": "file-HOWS94",
"created_at": 1711471533,
"in_progress_at": 1711471538,
"expires_at": 1711557933,
"finalizing_at": 1711493133,
"completed_at": 1711493163,
"failed_at": null,
"expired_at": null,
"cancelling_at": null,
"cancelled_at": null,
"request_counts": {
"total": 100,
"completed": 95,
"failed": 5
},
"metadata": {
"customer_id": "user_123456789",
"batch_description": "Nightly job",
}
},
{ ... },
],
"first_id": "batch_abc123",
"last_id": "batch_abc456",
"has_more": true
}
修改于 2024-05-31 06:50:12