1. Anthropic Claude 接口
gaoruiapi
  • 介绍
  • 发出请求
  • 基本介绍
    • 联系客服
  • 视频模型
    • veo视频生成
      • OpenAI视频格式
        • openai 创建视频,带图片
        • 创建视频(参考图)
        • openai查询任务
        • openai 下载视频
    • sora视频生成
      • OpenAI视频格式
        • openai 创建视频,带图片(按秒计费)
        • 创建视频
        • 创建视频 (sora-2-vip)
        • openai查询视频
        • openai 下载视频
        • 创建视频 (sora-2-pro-all)
    • grok视频生成
      • 视频生成
      • 任务查询进度
  • 图片模型
    • 谷歌Gemini 接口
      • 原生格式
        • 图片生成 gemini-2.5-flash-image 控制宽高比
        • 图片生成 gemini-3-pro-image-preview宽高比和清晰度控制
  • 聊天(chat)
    • ChatGPT 接口
    • Anthropic Claude 接口
      • 聊天完成对象
      • 聊天完成块对象
      • 原生格式
        • 创建聊天补全 (流式)
        • 创建函数调用 (流式)
        • 创建格式化输出
        • 创建思考聊天
        • PDF支持
        • PDF支持 base64格式
        • 联网搜索
      • chat兼容格式
        • 创建思考聊天
        • 创建聊天补全 (流式)
        • 创建聊天补全 (非流)
        • 创建聊天识图 (流式)
        • 创建聊天识图 (非流)
    • 谷歌Gemini 接口
  • 各种插件/软件使用教程
    • Claude Code 安装使用教程
  1. Anthropic Claude 接口

聊天完成块对象

参数类型描述
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-02-04 09:10:55
上一页
聊天完成对象
下一页
创建聊天补全 (流式)
Built with