1. 聊天(Responses)
学码AI大模型平台使用文档
  • 01-人工客服
  • 02-学码AI大模型说明
  • 03-学码AI大模型开放平台-技术支持1QQ群
  • AI编程
    • Codex安装使用教程
    • cline 配置教程
    • Windows:Codex 一键安装脚本
  • 各种插件/软件使用教程
    • CherryStudio调用cluade MCP
    • Cherry Studio配置教程
    • CherryStudio配置o4推理级别
    • dify添加模型
    • chatgpt-on-wechat 配置教程
    • 沉浸式翻译 设置gpt翻译
    • nextchat 设置教程
    • aider 配置教程
    • lobechat 设置教程
    • chatgpt GPT Academic 学术优化配置gpt教程
    • zotero gpt 配置方法
    • 浏览器插件ChatGPT Sidebar
    • ChatBox(推荐使用)
    • 开源gpt_academic
    • Codex 安装与配置教程
    • N8N 工作流使用中转API 教程
    • opencode 配置教程
    • OpenClaw配置教程附一键安装脚本
  • 学码AI大模型开放平台介绍
    • 联系客服
    • 分组详细表格
    • 分组的特殊性及价格差异
    • 如何新建指定分组的令牌
    • API Key 额度查询服务
    • 免费AI聊天项目导航
  • 聊天(Responses)
    • Responses API与Chat API对比
    • 创建模型响应
      POST
    • 创建函数调用
      POST
    • 创建模型响应(流式返回)
      POST
    • 创建模型响应 (控制思考长度)
      POST
    • 创建深度搜索 (巨贵,一次几十刀,慎用)
      POST
    • 创建网络搜索
      POST
    • 创建模型响应 gpt-5启用思考
      POST
  • 文生图模型
    • 创建 gpt-image-1
    • 创建 gpt-image-1.5
  • GPTs 相关
    • 简介
  • Python配置方式
    • python openai官方库(使用AutoGPT,langchain等)
    • python 连续对话
    • python 使用 语音转文本
    • python 使用文本转语音
    • python 使用Embeddings 向量化
    • python 调用DALL·E
    • python简单调用 openai function-calling demo
    • python 简单langchain 调用openai demo
    • python llama_index 配置
    • Python使用gpt-4o识别图片-本地图片
    • python 库流式输出
    • gpt realtime模型调用
    • python request 请求 流式输出demo
    • Python基础对话
    • Python使用gpt-4o识别图片
    • Python使用Claude识别图片
    • python 使用gpt-image-1 创建编辑图片
  • nodejs 配置方式
    • nodejs 基础对话
  • 帮助中心
    • AI返回字段: 思考相关
    • HTTP状态码及其含义
  • 绘画模型
    • README
    • 图像对象
    • GPT Image-1
      • 蒙版 gpt-image-1
      • 创建图片
      • 蒙版 gpt-image-1.5
    • FLUX 系列
      • gpt 兼容格式
        • 创建 Image
        • 编辑 gpt-image-1.5
    • GPT Image 系列
      • 编辑 image
  • 聊天(Chat)
    • ChatGpt 接口
      • ChatGPT音频(Audio)
        • GPT-4o-audio
        • 音频转文字 whisper-1
        • 音频转文字 gpt-4o-transcribe
        • 创建语音 gpt-4o-mini-tts
        • 创建翻译 (不支持)
      • ChatGPT聊天(Chat)
        • 聊天完成对象
        • 聊天完成块对象
        • 创建聊天补全 (流式)
        • 创建聊天补全 (非流)
        • 创建聊天识图 (流式)
        • 创建聊天识图 (流式) best64
        • 创建聊天识图 (非流)
        • 创建聊天创作图 (非流)
        • 官方Function calling调用
        • 官方N测试
        • 列出模型
        • 创建聊天函数调用
        • 创建结构化输出
        • 控制推理模型努力程度
        • 创建聊天补全 qwen-mt-turbo
        • 创建聊天补全 deepseek v3.1思考程度 (流式)
        • deepseek-ocr 识别
      • ChatGPT自动补全(Completions)
        • 完成对象
        • 创建完成
      • ChatGPT嵌入(Embeddings)
        • 嵌入对象
        • 创建嵌入
      • Web 搜索
        • web搜索
  1. 聊天(Responses)

创建深度搜索 (巨贵,一次几十刀,慎用)

POST
/v1/responses
https://platform.openai.com/docs/api-reference/responses/create
部分OpenAI模型仅支持Response格式,例如o3-pro,codex-mini-latest

请求参数

Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token
示例:
Authorization: Bearer ********************
Header 参数

Body 参数application/json

示例
{
  "model": "o3-deep-research",
  "input": "Research the economic impact of semaglutide on global healthcare systems. Include specific figures, trends, statistics, and measurable outcomes. Prioritize reliable, up-to-date sources: peer-reviewed research, health organizations (e.g., WHO, CDC), regulatory agencies, or pharmaceutical earnings reports. Include inline citations and return all source metadata. Be analytical, avoid generalities, and ensure that each section supports data-backed reasoning that could inform healthcare policy or financial modeling.",
  "tools": [
    {
      "type": "web_search_preview"
    }
  ],
  "stream": true
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location 'https://api.xuemaai.com/v1/responses' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
  "model": "o3-deep-research",
  "input": "Research the economic impact of semaglutide on global healthcare systems. Include specific figures, trends, statistics, and measurable outcomes. Prioritize reliable, up-to-date sources: peer-reviewed research, health organizations (e.g., WHO, CDC), regulatory agencies, or pharmaceutical earnings reports. Include inline citations and return all source metadata. Be analytical, avoid generalities, and ensure that each section supports data-backed reasoning that could inform healthcare policy or financial modeling.",
  "tools": [
    {
      "type": "web_search_preview"
    }
  ],
  "stream": true
}'

返回响应

🟢200OK
application/json
Bodyapplication/json

示例
{
    "id": "chatcmpl-123",
    "object": "chat.completion",
    "created": 1677652288,
    "choices": [
        {
            "index": 0,
            "message": {
                "role": "assistant",
                "content": "\n\nHello there, how may I assist you today?"
            },
            "finish_reason": "stop"
        }
    ],
    "usage": {
        "prompt_tokens": 9,
        "completion_tokens": 12,
        "total_tokens": 21
    }
}
修改于 2026-04-25 12:23:17
上一页
创建模型响应 (控制思考长度)
下一页
创建网络搜索
Built with