Manage security, password, and API integrations
Choose the model used by default for new chats and for the sidebar selection.
Generate keys to access this chatbot from cURL, Python, IDE plugins, or external apps.
Copy this key now. It will not be shown again.
ca_live_...
| Description | Key Prefix | Created | Last Used |
|---|
curl -X POST https://chat.pkr.ac.id/api/ollama/api/chat \
-H "Authorization: Bearer <YOUR_API_KEY>" \
-H "Content-Type: application/json" \
-d '{"model":"qwen2.5-coder:3b","messages":[{"role":"user","content":"Hello"}],"stream":false}'
from openai import OpenAI
client = OpenAI(
base_url="https://chat.pkr.ac.id/api/ollama/v1",
api_key="<YOUR_API_KEY>"
)
response = client.chat.completions.create(
model="qwen2.5-coder:3b", # or gemma2:latest, llava:latest, etc.
messages=[{"role": "user", "content": "Hello!"}]
)
print(response.choices[0].message.content)
curl https://chat.pkr.ac.id/api/models \
-H "Authorization: Bearer <YOUR_API_KEY>"