Hulysium Agent API

Every model, one base URL.

Create a key in the Console, set the base URL and call any model for free. The values below are placeholders.

Basics

Base URLhttps://example.com/api/v1
AuthAuthorization: Bearer key_…
Chat and imagesPOST /chat/completions
ModelsGET /models
Model idse.g. aster/aster-medium

Examples

stream.py
from openai import OpenAI

client = OpenAI(base_url="https://example.com/api/v1", api_key="key_…")

stream = client.chat.completions.create(
    model="aster/aster-medium",
    messages=[{"role": "user", "content": "Write a haiku about rivers"}],
    stream=True,
)
for chunk in stream:
    print(chunk.choices[0].delta.content or "", end="")
index.mjs
import OpenAI from "openai";

const client = new OpenAI({ baseURL: "https://example.com/api/v1", apiKey: process.env.API_KEY });

const reply = await client.chat.completions.create({
  model: "boreal/boreal-flash",
  messages: [{ role: "user", content: "Hello" }],
});
console.log(reply.choices[0].message.content);
image.sh
curl https://example.com/api/v1/chat/completions \
  -H "Authorization: Bearer $API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "aster/aster-canvas",
       "messages": [{"role": "user", "content": "A paper boat on a still lake"}]}'

What reaches the model

Only the model id, the messages and the generation settings. Replace this with your real data policy.

Errors

401Missing, unknown or revoked key
404The model id is not in the catalog
413The request body is too large
429Too many requests
502The model failed to answer