注:该接口用于查询通过对话完成接口创建的对话任务状态和结果,仅后台模式支持。 任务结果默认会保留 7 天,7 天后任务结果将被自动删除,请及时查询和保存结果。
Authorizations
API认证token
Path Parameters
对话完成请求ID
curl --request GET \
--url https://geekai.co/api/v1/chat/{id} \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"status": "pending",
"created": 123,
"model": "<string>",
"object": "<string>",
"choices": [
{
"index": 123,
"message": {
"role": "assistant",
"content": "<string>",
"reasoning_content": "<string>",
"audio": {
"id": "<string>",
"data": "<string>",
"expires_at": 123,
"transcript": "<string>"
},
"tool_calls": [
{
"id": "<string>",
"type": "function",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
]
},
"finish_reason": "stop",
"logprobs": {
"content": [
{
"token": "<string>",
"logprob": 123,
"bytes": [
123
],
"top_logprobs": [
{
"token": "<string>",
"logprob": 123,
"bytes": [
123
]
}
]
}
]
}
}
],
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123,
"billed_units": 123,
"prompt_tokens_details": {
"text_tokens": 123,
"audio_tokens": 123,
"cached_tokens": 123,
"image_tokens": 123,
"video_tokens": 123,
"citation_tokens": 123
},
"completion_tokens_details": {
"text_tokens": 123,
"audio_tokens": 123,
"reasoning_tokens": 123,
"accepted_prediction_tokens": 123,
"rejected_prediction_tokens": 123
}
},
"citations": [
"<string>"
],
"system_fingerprint": "<string>"
}根据请求ID查询对话完成任务的状态和结果,仅后台模式支持
curl --request GET \
--url https://geekai.co/api/v1/chat/{id} \
--header 'Authorization: Bearer <token>'{
"id": "<string>",
"status": "pending",
"created": 123,
"model": "<string>",
"object": "<string>",
"choices": [
{
"index": 123,
"message": {
"role": "assistant",
"content": "<string>",
"reasoning_content": "<string>",
"audio": {
"id": "<string>",
"data": "<string>",
"expires_at": 123,
"transcript": "<string>"
},
"tool_calls": [
{
"id": "<string>",
"type": "function",
"function": {
"name": "<string>",
"arguments": "<string>"
}
}
]
},
"finish_reason": "stop",
"logprobs": {
"content": [
{
"token": "<string>",
"logprob": 123,
"bytes": [
123
],
"top_logprobs": [
{
"token": "<string>",
"logprob": 123,
"bytes": [
123
]
}
]
}
]
}
}
],
"usage": {
"prompt_tokens": 123,
"completion_tokens": 123,
"total_tokens": 123,
"billed_units": 123,
"prompt_tokens_details": {
"text_tokens": 123,
"audio_tokens": 123,
"cached_tokens": 123,
"image_tokens": 123,
"video_tokens": 123,
"citation_tokens": 123
},
"completion_tokens_details": {
"text_tokens": 123,
"audio_tokens": 123,
"reasoning_tokens": 123,
"accepted_prediction_tokens": 123,
"rejected_prediction_tokens": 123
}
},
"citations": [
"<string>"
],
"system_fingerprint": "<string>"
}API认证token
对话完成请求ID
成功响应
请求ID
请求状态,只有后台模式才会返回
pending, running, succeed 请求创建Unix时间戳
对话使用的模型
响应对象类型
生成的对话列表
Show child attributes
tokens消耗统计
Show child attributes
引用的文献/链接列表
系统指纹