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截图

相关推荐
跨境牛马哥43 分钟前
2026四大AI工具实战对比:ChatGPT、Gemini、Claude、Grok谁更强?
人工智能·chatgpt
wangruofeng10 小时前
Codex 来到手机端:ChatGPT App 接入 Codex 完整指南
chatgpt·openai
AI360labs_atyun1 天前
ChatGPT更新免费版GPT-5.5 Instant
人工智能·科技·gpt·ai·chatgpt·agi
Android出海1 天前
2026年Codex新手教程:安装、使用与自动化实战指南
人工智能·ai·chatgpt·自动化·脚本·codex·自动化脚本
一个天蝎座 白勺 程序猿1 天前
从AlphaGo到ChatGPT:机器学习基础概念的全景式拆解与工程实践思考
人工智能·机器学习·chatgpt
kyriewen1 天前
测试妹子让我写单测,我偷偷用AI一天干完一周的活
前端·chatgpt·cursor
用户223586218202 天前
用ClaudeCode从0搭建一个优雅的CR助手 - claude_12
chatgpt·claude·vibecoding
皮皮学姐分享-ppx2 天前
上市公司数字技术风险暴露数据(2010-2024)|《经济研究》同款大模型测算
大数据·网络·数据库·人工智能·chatgpt·制造
Jay-r2 天前
ChatGPT 官网入口(2026 年最新版)——简明指南
人工智能·语言模型·chatgpt·ai助手·chatgpt5.5
云天AI实战派2 天前
ChatGPT/API 调用故障排查指南:Realtime 音频、智能体浏览器操作与 AI 编码代理全流程修复手册
人工智能·chatgpt·音视频