Drop-In Replacement
for OpenAI
Change the base URL, keep your code. HLD is fully compatible with the OpenAI SDK — no rewrites, no new libraries, no learning curve.
One Line Change
1 from openai import OpenAI 2 3 # OpenAI 4 client = OpenAI( 5 api_key=os.environ["OPENAI_API_KEY"], 6 # base_url defaults to https://api.openai.com/v1 7 ) 8 9 response = client.chat.completions.create( 10 model="gpt-4o", 11 messages=[{"role": "user", "content": "Hello!"}] 12 )
1 from openai import OpenAI 2 3 # HLD — just change the base URL 4 client = OpenAI( 5 api_key=os.environ["HLD_API_KEY"], 6 base_url="https://api.highlimitdesigns.com/v1" 7 ) 8 9 response = client.chat.completions.create( 10 model="glm-5.1", 11 messages=[{"role": "user", "content": "Hello!"}] 12 )
base_url and api_key change. Everything else stays the same.Supported Endpoints
/v1/chat/completionsFull support/v1/completionsFull support/v1/embeddingsFull support/v1/modelsFull supportFeature Parity
Every major OpenAI feature works on HLD. No compromises.
Streaming (SSE)
Real-time token streaming via Server-Sent Events. Identical chunk format to OpenAI.
Function Calling
Define tools and let the model decide when to call them. Full function calling parity.
JSON Mode
Force structured JSON output with response_format. Perfect for parsing in pipelines.
Vision
Send images alongside text in multimodal models. Compatible with GPT-4 Vision format.
Migration in 3 Steps
Change the Base URL
Replace "https://api.openai.com/v1" with "https://api.highlimitdesigns.com/v1" in your client configuration.
Set Your API Key
Generate a HLD API key from the dashboard and set it as your new API key.
Pick a Model
Swap the model name (e.g. "gpt-4o" → "glm-5.1"). All standard parameters work the same.
Code Examples
1 # OpenAI 2 curl https://api.openai.com/v1/chat/completions \ 3 -H "Authorization: Bearer $OPENAI_API_KEY" \ 4 -H "Content-Type: application/json" \ 5 -d '{"model": "gpt-4o", "messages": [{"role": "user", "content": "Hello!"}]}' 6 7 # HLD — same request, different URL and key 8 curl https://api.highlimitdesigns.com/v1/chat/completions \ 9 -H "Authorization: Bearer $HLD_API_KEY" \ 10 -H "Content-Type: application/json" \ 11 -d '{"model": "glm-5.1", "messages": [{"role": "user", "content": "Hello!"}]}'
1 // OpenAI 2 import OpenAI from "openai"; 3 const client = new OpenAI({ apiKey: process.env.OPENAI_API_KEY }); 4 5 // HLD — one line change 6 const client = new OpenAI({ 7 apiKey: process.env.HLD_API_KEY, 8 baseURL: "https://api.highlimitdesigns.com/v1", 9 }); 10 11 // Everything else is identical 12 const response = await client.chat.completions.create({ 13 model: "glm-5.1", 14 messages: [{ role: "user", content: "Hello!" }], 15 });
Ready to switch?
Get your API key and start