ChatGPT API 中文文档
  1. 💬 聊天接口(支持多种格式)
ChatGPT API 中文文档
  • 导言
  • 发出请求
  • 模型(Models)
    • 模型对象
    • 列出模型
      GET
  • 💬 聊天接口(支持多种格式)
    • API聊天完成响应对象
    • 聊天接口
      POST
    • OpenAI 格式(Chat Completions)
      POST
    • Chat(多模态图片识别)
      POST
    • Chat(流式回复)
      POST
    • Chat(视频识别分析)
      POST
    • Chat(结构化输出)
      POST
    • OpenAI 格式(Responses)
      POST
    • OpenAI Deep-research
      POST
    • Anthropic 对话格式(Messages)
      POST
    • Anthropic 图片识别(Messages)
      POST
    • Anthropic 工具调用(Messages)
      POST
    • Anthropic 流式回复(Messages)
      POST
    • Deepseek reasoning 对话格式(Reasoning Content)
      POST
  • 自动补全接口(Completions)
    • API完成响应对象
    • 内容补全接口
      POST
  • 图像接口(Images)
    • DALL·E 3
      POST
    • Stable-Diffusion
      POST
  • 向量生成接口(Embeddings)
    • 嵌入对象
    • 创建嵌入
      POST
  • 音频接口(Audio)
    • 创建转录
    • 创建翻译
    • TTS文本转语音
  • Midjourney
    • 提交Imagine任务(文生图、文图生图)
    • 上传图片至discord
    • 绘图变化(UPSCALE; VARIATION; REROLL)
    • 执行动作(所有的关联按钮动作UPSCALE; VARIATION; REROLL; ZOOM等)
    • 提交Blend任务(图生图)
    • 提交Describe任务(图生文)
    • 提交Modal(提交局部重绘、ZOOM)
    • 提交Shorten任务(prompt分析)
    • 提交swap_face任务
    • 根据ID获取图片
    • 根据ID列表查询任务
    • 指定ID获取任务
    • 获取任务图片的seed
  • 帮助中心
    • 常见问题及解决办法
  1. 💬 聊天接口(支持多种格式)

OpenAI Deep-research

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

请求参数

Header 参数

Body 参数application/json

示例
{
  "model": "o3-deep-research-2025-06-26",
  "input": [
    {
      "role": "user",
      "content": "hi"
    }
  ],
  "tools": [
    {
      "type": "web_search_preview"
    }
  ]
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.pro365.top/v1/messages' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
  "model": "o3-deep-research-2025-06-26",
  "input": [
    {
      "role": "user",
      "content": "hi"
    }
  ],
  "tools": [
    {
      "type": "web_search_preview"
    }
  ]
}'

返回响应

🟢200OK
application/json
Body

示例
{
    "id": "resp_68760e92a79c81a28acd1e218f1fd40d0679399e11c8f799",
    "object": "response",
    "created_at": 1752567442,
    "status": "completed",
    "background": false,
    "error": null,
    "incomplete_details": null,
    "instructions": null,
    "max_output_tokens": null,
    "max_tool_calls": 225,
    "model": "o3-deep-research-2025-06-26",
    "output": [
        {
            "id": "rs_68760e93029081a29c2ef2a702b428fb0679399e11c8f799",
            "type": "reasoning",
            "summary": []
        },
        {
            "id": "ws_68760ea0d27081a2871459aa9ebbed950679399e11c8f799",
            "type": "web_search_call",
            "status": "completed",
            "action": {
                "type": "search",
                "query": "Hello how to greet user in chat GPT guidelines"
            }
        },
        {
            "id": "rs_68760ea19c0481a2a1f4e2b02bfc8f030679399e11c8f799",
            "type": "reasoning",
            "summary": []
        },
        {
            "id": "msg_68760ea3cde481a29e28ac61b5a7f71b0679399e11c8f799",
            "type": "message",
            "status": "completed",
            "content": [
                {
                    "type": "output_text",
                    "annotations": [],
                    "logprobs": [],
                    "text": "Hello there! 👋 How can I help you today? If there's anything you'd like to discuss or any question you have, feel free to let me know. I'm here to assist!"
                }
            ],
            "role": "assistant"
        }
    ],
    "parallel_tool_calls": true,
    "previous_response_id": null,
    "reasoning": {
        "effort": "medium",
        "summary": null
    },
    "service_tier": "default",
    "store": false,
    "temperature": 1,
    "text": {
        "format": {
            "type": "text"
        }
    },
    "tool_choice": "auto",
    "tools": [
        {
            "type": "web_search_preview",
            "search_context_size": "medium",
            "user_location": null
        }
    ],
    "top_logprobs": 0,
    "top_p": 1,
    "truncation": "disabled",
    "usage": {
        "input_tokens": 3420,
        "input_tokens_details": {
            "cached_tokens": 2686
        },
        "output_tokens": 2219,
        "output_tokens_details": {
            "reasoning_tokens": 2176
        },
        "total_tokens": 5639
    },
    "user": null,
    "metadata": {}
}
修改于 2025-10-18 14:04:42
上一页
OpenAI 格式(Responses)
下一页
Anthropic 对话格式(Messages)
Built with