跳转到主要内容
GET
/
chat
/
{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>"
}
注:该接口用于查询通过对话完成接口创建的对话任务状态和结果,仅后台模式支持。 任务结果默认会保留 7 天,7 天后任务结果将被自动删除,请及时查询和保存结果。

Authorizations

Authorization
string
header
required

API认证token

Path Parameters

id
string<uuid>
required

对话完成请求ID

Response

成功响应

id
string

请求ID

status
enum<string>

请求状态,只有后台模式才会返回

Available options:
pending,
running,
succeed
created
integer

请求创建Unix时间戳

model
string

对话使用的模型

object
string

响应对象类型

choices
object[]

生成的对话列表

usage
object

tokens消耗统计

citations
string[]

引用的文献/链接列表

system_fingerprint
string

系统指纹