Unified OpenAI-compatible responses endpoint for text generation, multimodal input, and structured outputs.
chat.completions 更适合做新接入,因为它把文本、图像、工具和推理控制放进了同一套请求模型。不同模型支持的字段会有差异,尤其是推理能力、工具能力和多模态输入范围。
Authorization: Bearer {API_KEY}previous_response_id 串联上下文reasoning、max_output_tokens 和 tools 这类控制项收敛到服务端统一下发input 是最常见的输入字段,可以承载文本或多模态内容块model 用于指定本次调用的模型 IDprevious_response_id 复用上下文,而不是每次重传全部历史tools,并处理模型返回的工具调用结果output_text 读取output[] 中的各类内容块usage 字段中读取Bearer authentication header of the form Bearer <token>, where <token> is your auth token.