Api Base URL: http://gpt.catway.org/v1
Api Key: sk-r4khWXD9FY4NkC7GO4jWfTSuB3G3cdS0yyBXKnO9F7Pjm4YC
To use this API, you need the OpenAI Python package:
pip install openai
Here’s a basic example of how to use the API with Python:
from openai import OpenAI
client = OpenAI(
base_url="http://gpt.catway.org/v1",
api_key="sk-r4khWXD9FY4NkC7GO4jWfTSuB3G3cdS0yyBXKnO9F7Pjm4YC"
)
chat_completion = client.chat.completions.create(
messages=[{"role": "user", "content": "Are you gpt-3?"}],
model="gpt-3.5-turbo" # or use "gpt-4-all"
)
print(chat_completion.choices[0].message.content)
- ✅ Supports GPT models:
gpt-4-all
andgpt-3.5-turbo
- ✅ Simple and easy-to-use API client
- ❌ No support for streaming responses
- ❌ No support for function calling
gpt-4-all
gpt-3.5-turbo
You can use the API to interact with GPT models by sending messages and receiving responses as shown in the example above.
If you find this project helpful, please give it a ⭐ on GitHub to show your support!
For updates and more content, join my Telegram channel: https://t.me/H4xCh