HALO's OpenAI entrypoint accepts Chat Completions at/openai/v1/chat/completions.
#Make a request
curl https://api.agihalo.com/openai/v1/chat/completions \
-H "Authorization: Bearer $HALO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "gpt-5-mini",
"messages": [{"role": "user", "content": "Hello from HALO"}]
}'#OpenAI SDK
import OpenAI from "openai";
const client = new OpenAI({
apiKey: process.env.HALO_API_KEY,
baseURL: "https://api.agihalo.com/openai/v1",
});
const result = await client.chat.completions.create({
model: "gpt-5-mini",
messages: [{ role: "user", content: "Hello from HALO" }],
});#Gateway behavior
The gateway validates a priced model, selects an eligible platform key, forwards the canonical request, parses upstream usage, and bills the completed response. Authentication errors use an OpenAI-style error envelope.