代码请求 
将sk-xxxx替换为你自己在网站内创建的Key
请求方式与官方的请求格式相同,只需把api.openai.com和key替换成api.ezchat.top和网站内创建的key
curl
curl https://api.ezchat.top/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer sk-xxxx" \
  -d '{
    "model": "gpt-3.5-turbo",
    "messages": [{"role": "user", "content": "hello"}]
  }'python
import requests
url = "https://api.ezchat.top/v1/chat/completions"
headers = {
    "Content-Type": "application/json",
    "Authorization": "Bearer sk-xxxx"
}
data = {
    "model": "gpt-3.5-turbo",
    "messages": [{"role": "user", "content": "hello"}]
} EZ-AI
EZ-AI