Create an API key
Log in and create a key in your console. Keep it on your server.
Go to console ↗An example configuration to get you oriented.
Log in and create a key in your console. Keep it on your server.
Go to console ↗Copy the exact model identifier and confirm protocol compatibility.
Open model plaza ↗Replace placeholders, send a test request and review usage in the console.
from openai import OpenAI
client = OpenAI(
base_url="https://www.apikit.cc/v1",
api_key="YOUR_API_KEY"
)
response = client.chat.completions.create(
model="YOUR_AVAILABLE_MODEL",
messages=[{"role": "user",
"content": "Hello, APIKIT."}]
)
print(response.choices[0].message.content)