forked from adams549659584/go-proxy-bingai
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
BingAPI
zklcdc edited this page Jan 24, 2024
·
15 revisions
GET /v1/models
或 GET /api/v1/models
无
{
"object": "list",
"data": [
{
"id": "dall-e-3",
"object": "model",
"created": 1687579610,
"owned_by": "Go-Proxy-BingAI"
},
{
"id": "Balanced",
"object": "model",
"created": 1687579610,
"owned_by": "Go-Proxy-BingAI"
},
......
{
"id": "Precise-g4t-offline",
"object": "model",
"created": 1687579610,
"owned_by": "Go-Proxy-BingAI"
}
]
}
POST /v1/chat/completions
或 POST /api/v1/chat/completions
-
model
: 必填, 模型 -
messages
: 必填, 消息列表, 同 OpenAI 格式 -
stream
: 可选, 流式输出
{
"id": "chatcmpl-NewBing",
"object": "chat.completion.chunk",
"created": 1705389778,
"model": "Creative-g4t",
"system_fingerprint": "ZB1yCBf7GngW",
"choices": [
{
"index": 0,
"delta": {},
"message": {
"role": "assistant",
"content": "你好!这里是必应。我可以帮助你找到信息、回答问题、创造内容,还有更多。请问有什么我可以帮助你的吗? 😊"
},
"finish_reason": "stop"
}
]
}
需要配置
_U
Cookie, 即配置Go_Proxy_BingAI_USER_TOKEN
系列环境变量
POST/v1/images/generations
或 POST /api/v1/images/generations
-
prompt
: 必填, 图片生成提示词 -
modle
: 可选, 默认dall-e-3
(目前仅有)
{
"created": 1705392421,
"data": [
{
"url": "https://th.bing.com/th/id/OIG.Harry-zklcdc-0"
},
{
"url": "https://th.bing.com/th/id/OIG.Harry-zklcdc-1"
},
{
"url": "https://th.bing.com/th/id/OIG.Harry-zklcdc-2"
},
{
"url": "https://th.bing.com/th/id/OIG.Harry-zklcdc-3"
}
]
}
模型名称 | 说明 |
---|---|
dall-e-3 | 画图模型, 目前仅有 |
Precise | 精准模式, 联网搜索 |
Balanced | 平衡模式, 联网搜索 |
Creative | 创造模式, 联网搜索 |
Precise-offline | 精准模式, 不联网搜索 |
Balanced-offline | 平衡模式, 不联网搜索 |
Creative-offline | 创造模式, 不联网搜索 |
Precise-g4t | GPT4-Turbo 精准模式, 联网搜索 |
Balanced-g4t | GPT4-Turbo 平衡模式, 联网搜索 |
Creative-g4t | GPT4-Turbo 创造模式, 联网搜索 |
Precise-g4t-offline | GPT4-Turbo 精准模式, 不联网搜索 |
Balanced-g4t-offline | GPT4-Turbo 平衡模式, 不联网搜索 |
Creative-g4t-offline | GPT4-Turbo 创造模式, 不联网搜索 |
- ChatGPT Next Web: https://harry-zklcdc-chatgpt-next-web.hf.space