forked from adams549659584/go-proxy-bingai
-
Notifications
You must be signed in to change notification settings - Fork 6k
BingAPI
zklcdc edited this page Apr 30, 2024
·
15 revisions
Note
BingAPI 体验 APIKey 分发系统 地址: https://one.b1ng.chat
请使用 Github 账号注册 & 登录
注册后可加入「交流频道」后私聊 机器人@ProxyBingAI🚀频道小助手 发送 /getkey 即可获取体验额度兑换码
使用 OpenAI 格式 API 调用 BingAI
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: 可选, 流式输出 -
temperature: 可选, 模型名为gpt-3.5-turbo和gpt-4-turbo-preview时控制模型使用。-
temperature∈ [0, 0.75] 为 精准模式 -
temperature∈ (0.75, 1.25) 为 平衡模式 -
temperature∈ [1.25, 2] 为 创造模式
-
{
"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"
}
]
}需要配置
_UCookie, 即配置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"
}
]
}Note
-vision 后缀表示添加 视觉输入功能, 例如 Creative-vision、Balanced-18k-vision、Precise-g4t-vision
| 模型名称 | 说明 |
|---|---|
| dall-e-3 | 画图模型, 目前仅有 |
| gpt-3.5-turbo | 默认为 1temperature ∈ [0, 0.75] = Precisetemperature ∈ (0.75, 1.25) = Balancedtemperature ∈ [1.25, 2] = Creative |
| gpt-3.5-turbo-16k | 默认为 1temperature ∈ [0, 0.75] = Precise-18ktemperature ∈ (0.75, 1.25) = Balanced-18ktemperature ∈ [1.25, 2] = Creative-18k |
| gpt-4-turbo-preview | 默认为 1temperature ∈ [0, 0.75] = Precise-g4ttemperature ∈ (0.75, 1.25) = Balanced-g4ttemperature ∈ [1.25, 2] = Creative-g4t |
| gpt-4-32k | 默认为 1temperature ∈ [0, 0.75] = Precise-g4t-18ktemperature ∈ (0.75, 1.25) = Balanced-g4t-18ktemperature ∈ [1.25, 2] = Creative-g4t-18k |
| gpt-4-vision-preview | 默认为 1temperature ∈ [0, 0.75] = Precise-g4t-visiontemperature ∈ (0.75, 1.25) = Balanced-g4t-visiontemperature ∈ [1.25, 2] = Creative-g4t-vision |
| 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 创造模式, 不联网搜索 |
| Precise-18k | 精准模式, 18k上下文, 联网搜索 |
| Balanced-18k | 平衡模式, 18k上下文, 联网搜索 |
| Creative-18k | 创造模式, 18k上下文, 联网搜索 |
| Precise-18k-offline | 精准模式, 18k上下文, 不联网搜索 |
| Balanced-18k-offline | 平衡模式, 18k上下文, 不联网搜索 |
| Creative-18k-offline | 创造模式, 18k上下文, 不联网搜索 |
| Precise-g4t-18k | GPT4-Turbo 精准模式, 18k上下文, 联网搜索 |
| Balanced-g4t-18k | GPT4-Turbo 平衡模式, 18k上下文, 联网搜索 |
| Creative-g4t-18k | GPT4-Turbo 创造模式, 18k上下文, 联网搜索 |
- ChatGPT Next Web: https://bingapi.zklcdc.xyz
- OneAPI: https://oneapi.zklcdc.xyz