1. ChatGPT聊天(Chat)
JuAI+
  • 发出请求
  • 聊天(Chat)
    • ChatGpt 接口
      • ChatGPT音频(Audio)
        • GPT-4o-audio
        • 音频转文字 whisper-1
        • 音频转文字 gpt-4o-transcribe
        • 创建语音 gpt-4o-mini-tts
        • 创建翻译 (不支持)
      • ChatGPT聊天(Chat)
        • 聊天完成对象
        • 聊天完成块对象
        • 创建聊天补全 (流式)
          POST
        • 创建聊天补全 (非流)
          POST
        • 创建聊天识图 (流式)
          POST
        • 创建聊天识图 (流式) base64
          POST
        • 创建聊天识图 (非流)
          POST
        • 创建聊天创作图 (非流)
          POST
        • 官方Function calling调用
          POST
        • 官方N测试
          POST
        • 列出模型
          GET
        • 创建聊天函数调用
          POST
        • 创建结构化输出
          POST
        • 控制推理模型努力程度
          POST
        • 创建聊天补全 qwen-mt-turbo
          POST
        • 创建聊天补全 deepseek v3.1思考程度 (流式)
          POST
        • deepseek-ocr 识别
          POST
      • ChatGPT自动补全(Completions)
        • 完成对象
        • 创建完成
      • ChatGPT嵌入(Embeddings)
        • 嵌入对象
        • 创建嵌入
      • Web 搜索
        • web搜索
    • Anthropic Claude 接口
      • 聊天完成对象
      • 聊天完成块对象
      • 原生格式
        • 创建聊天补全 (流式)
        • 创建函数调用 (流式)
        • 创建格式化输出
        • 创建思考聊天
        • PDF支持
        • PDF支持 base64格式
        • 联网搜索
      • chat兼容格式
        • 创建思考聊天
        • 创建聊天补全 (流式)
        • 创建聊天补全 (非流)
        • 创建聊天识图 (流式)
        • 创建聊天识图 (非流)
    • 谷歌Gemini 接口
      • 原生格式
        • 文本生成
        • 文本生成-流
        • 文本生成+思考-流
        • 图片生成
        • 图片生成 gemini-2.5-flash-image
        • 图片生成 gemini-2.5-flash-image 控制宽高比
        • 图片生成 gemini-3-pro-image-preview 控制宽高比 +清晰度
        • 图片编辑
        • 图片理解
        • 格式化输出
        • 函数调用
        • 文档理解
        • URL context [原生格式]
        • 代码执行
        • google search
        • 视频理解
        • URL context
        • 音频理解
        • Embeddings
        • TTS 文本转语音
        • 文本生成 gemini-3-pro-preview:generateContent
        • Imagen 生成图片
        • gemini-tts文本转语音
        • 文本嵌入
      • chat兼容格式
        • gemini图片创作接口 [chat兼容格式]
        • 聊天接口 [chat兼容格式]
        • 聊天接口-思考1 [chat兼容格式]
        • 聊天接口-思考2 [chat兼容格式]
        • 识图接口 [chat兼容格式]
        • 聊天+读取文件接口 [chat兼容格式]
        • 文本嵌入 [chat兼容格式]
  • 聊天(Responses)
    • Responses API与Chat API对比
    • 创建模型响应
      POST
    • 创建函数调用
      POST
    • 创建模型响应(流式返回)
      POST
    • 创建模型响应 (控制思考长度)
      POST
    • 创建网络搜索
      POST
    • 创建模型响应 gpt-5启用思考
      POST
    • 创建函数调用 Copy
      POST
  • nodejs 配置方式
    • nodejs 基础对话
  • 帮助中心
    • HTTP状态码及其含义
  1. ChatGPT聊天(Chat)

聊天完成块对象

参数类型描述
idstring聊天完成的唯一标识符。每个块具有相同的ID
choicesarray聊天完成选项列表。如果n大于1,可以有多个选项
createdinteger创建聊天完成的Unix时间戳(秒)。每个块具有相同的时间戳
modelstring生成完成的模型
system_fingerprintstring该指纹表示模型运行的后端配置
objectstring对象类型,总是 chat.completion.chunk
{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"role":"assistant","content":""},"finish_reason":null}]}

{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"Hello"},"finish_reason":null}]}

{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"!"},"finish_reason":null}]}

....

{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":" today"},"finish_reason":null}]}

{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{"content":"?"},"finish_reason":null}]}

{"id":"chatcmpl-123","object":"chat.completion.chunk","created":1694268190,"model":"gpt-3.5-turbo-0613", "system_fingerprint": "fp_44709d6fcb", "choices":[{"index":0,"delta":{},"finish_reason":"stop"}]}
修改于 2026-04-29 04:05:57
上一页
聊天完成对象
下一页
创建聊天补全 (流式)
Built with