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-6 跟它的重置卡来了!
gpt·chatgpt·openai
ServBay2 小时前
ChatGPT、Grok 和 Claude 同时宕机了,你的在跑项目还好吗?
chatgpt·claude·grok
吨吨ai5 小时前
ChatGPT Plus / Pro + Codex 全栈自动化开发实战:2026年9月2日 从智能体工作流到企业级代码交付的完整技术指南
人工智能·chatgpt·自动化
AIGC大时代1 天前
知网 AIGC 检测在罚什么:均匀句长、低指代、零口癖,并不等于「用过 ChatGPT」
人工智能·chatgpt·nlp·aigc·论文·知网·学术规范
ClouGence1 天前
AI 定时任务火了?写日报、看新闻、做计划、盯价格,它都能自动跑
chatgpt·aigc·claude
嘿嘿-661 天前
VS Code 怎么配置 ChatGPT?用一键脚本把 Codex CLI 配好
chatgpt
顿哥GPT1 天前
ChatGPT Plus / Pro + Codex 实战指南(2026年9月2日)
人工智能·chatgpt
dunge20261 天前
ChatGPT Plus / Pro + Codex 深度实战指南:2026年9月2日 从智能编程到自动化工作流的完整技术手册
运维·chatgpt·自动化
Easy_API2 天前
8月31日,三份“模型合同”同时到期
人工智能·chatgpt