Response 是 OpenAI 最先进的模型响应生成接口,支持文本和图像输入,输出文本内容。通过内置工具还可以扩展模型能力,包括文件搜索、网络搜索、计算机使用等功能,借助函数调用功能,还允许模型访问外部系统和数据。

以下是最简单最基础的 Response 请求示例:

curl --location --request POST 'https://geekai.co/api/v1/responses' \
--header 'Authorization: Bearer {YOUR_GEEKAI_API_KEY}' \
--header 'Content-Type: application/json' \
--data-raw '{
    "model": "gpt-4o-mini",
    "input": "你好"
}'

适用于所支持 Response 接口的模型,目前支持 Response 接口的模型是: gpt-3.5-turbo、gpt-4、gpt-4-turbo、gpt-4o-mini、gpt-4o、 gpt-4.1、gpt-4.1-mini、gpt-4.1-nano、o1、o1-pro、o3-mini、o3、o3-pro、o4-mini。其中 o3-pro 目前仅支持通过 Response 接口调用,其他模型既支持 Response 接口也支持 Chat 接口。