已停用,想使用api请看这里:https://www.chatgpt.org.uk/2023/08/githubone-api-openai.html
API接口地址:https://api.gravityengine.cc
请求方法同官方API(https://api.openai.com)
使用本站提供的API接口会自动带key请求,因此不需要自己的API Key也可以使用该接口。
使用方法示例:
如果你按照我上一篇文章的方法搭建了自己的ChatGPT-Next-Web,在Vercel找到你的项目设置,然后在环境变量里增加一条BASE_URL,值填写为:https://api.gravityengine.cc即可,保存即可,记住要Redeploy后才会生效。
如果你目前使用的项目不是ChatGPT-Next-Web,使用我提供的API方法也类似。
This interface employs the same request method as the official OpenAI API (https://api.openai.com). Notably, the API interface provided on this site automatically carries a key to request, negating the need for your own API Key for usage.
For an illustrative example of its usage:
Suppose you've configured your own ChatGPT-Next-Web instance in line with the guidelines from my previous article. Proceed by navigating to your project settings in Vercel and subsequently introduce a new environment variable, BASE_URL. The value to be entered should correspond to: https://api.gravityengine.cc or https://api2.gravityengine.cc. After successfully performing these steps, ensure to save the changes and remember to redeploy to enable the changes.
In case your current project is not ChatGPT-Next-Web, you can still leverage the provided API in a similar way.
It needs an API key now?