Service online

LLM API Gateway

A unified, OpenAI-compatible endpoint for calling multiple language models through a single API. Point any OpenAI-compatible client at the base URL below and pass your API key.

API base URL

https://api.hkubs.ai/v1

Use this as the base_url in the OpenAI SDK, or as the host for raw HTTP calls.

Authentication

Every request requires an API key sent as a Bearer token: Authorization: Bearer YOUR_API_KEY.

Don't have a key yet? Ask your administrator to issue one from the admin panel.

Quick start — cURL

# Chat completion
curl https://api.hkubs.ai/v1/chat/completions \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "gemini-2.5-pro", "messages": [{"role": "user", "content": "Hello!"}]}'

Quick start — Python (OpenAI SDK)

from openai import OpenAI

client = OpenAI(
    base_url="https://api.hkubs.ai/v1",
    api_key="YOUR_API_KEY",
)

resp = client.chat.completions.create(
    model="gemini-2.5-pro",
    messages=[{"role": "user", "content": "Hello!"}],
)
print(resp.choices[0].message.content)