ChatGPT、GPT-4 Turbo接口调用

接口地址

https://chat.xutongbao.top/api/light/chat/createChatCompletion

请求方式

post

请求参数

model可选值:

"gpt-3.5-turbo-1106"、 "gpt-3.5-turbo-16k" 、 "gpt-4"、"gpt-4-1106-preview"。 默认值为: "gpt-3.5-turbo-1106"

token获取方式:

访问:https://chat.xutongbao.top/

使用邮箱注册账号

点击【我的】

点击【API】

javascript 复制代码
{
    "model": "gpt-3.5-turbo-1106",
    "token": "sk-3d76d415-dd72-43ff-b7c8-65fb426f1d7b",
    "messages": [
        {
            "role": "user",
            "content": "你好"
        }
    ],
    "params": {
        "n": 1
    }
}

响应数据

javascript 复制代码
{
    "code": 200,
    "data": {
        "completion": {
            "id": "chatcmpl-8JGls95QfaJp8WI9oirVRqK7SMY8h",
            "object": "chat.completion",
            "created": 1699603392,
            "model": "gpt-3.5-turbo-1106",
            "choices": [
                {
                    "index": 0,
                    "message": {
                        "role": "assistant",
                        "content": "你好!有什么可以帮助你的吗?"
                    },
                    "finish_reason": "stop"
                }
            ],
            "usage": {
                "prompt_tokens": 9,
                "completion_tokens": 17,
                "total_tokens": 26
            },
            "system_fingerprint": "fp_eeff13170a"
        },
        "info": {
            "isSdHide": "2",
            "sdLimitCount": 2000,
            "sdTextToImg": 411,
            "token": "sk-3d76d415-dd72-43ff-b7c8-65fb426f1d7b",
            "numOfOneDayCanCallApi": 10,
            "numOfOneDayAlreadyCallApi": 3,
            "apiDate": "2023-11-10"
        }
    },
    "message": "成功"
}

postman截图

相关推荐
爱吃的小肥羊2 天前
GPT-5.4 来了,OpenAI 终于急了,操控电脑超越人类,国内怎么用?
chatgpt·openai
小碗细面2 天前
GPT-5.4 深度评测:百万上下文+原生操控电脑,这次真的超越人类了?
chatgpt·ai编程
深藏blue473 天前
GPT-5.3 Instant 重磅上线!2026最新 ChatGPT 告别说教,国内使用与 Plus 升级教程
gpt·chatgpt·openai
Jet450510 天前
玩转ChatGPT:Seedance 2.0制作宣传片(Clip 01)
chatgpt·即梦ai·seedance 2.0
开发者每周简报10 天前
AI 代理的难题:工具调用是怎么升级的
人工智能·程序人生·chatgpt·代理
Youngchatgpt10 天前
ChatGPT Operator:如何使用 OpenAI 的新型计算机人工智能代理
人工智能·chatgpt
Youngchatgpt10 天前
如何在 Excel 中使用 ChatGPT:自动化任务和编写公式
人工智能·chatgpt·自动化·excel
LaughingZhu10 天前
Product Hunt 每日热榜 | 2026-02-25
数据库·人工智能·经验分享·神经网络·chatgpt
Youngchatgpt10 天前
数据科学家如何使用 ChatGPT?
人工智能·信息可视化·chatgpt
烂尾主教10 天前
提示词工程:核心原理与实战指南
人工智能·python·chatgpt·回归·aigc