SDKs & Libraries
Drop-in replacement for OpenAI SDK. Use any existing OpenAI-compatible library.
Python
OpenAI Python SDK
The official OpenAI Python library works natively. Just change the base URL.
pip install openai
from openai import OpenAI
client = OpenAI(
api_key="hm-YOUR_KEY",
base_url="https://ai.empire325marketing.com/v1"
)Node.js
OpenAI Node.js SDK
Same pattern. Install the OpenAI npm package and change the base URL.
npm install openai
import OpenAI from 'openai';
const client = new OpenAI({
apiKey: "hm-YOUR_KEY",
baseURL: "https://ai.empire325marketing.com/v1"
});curl
Command Line
Use curl for testing and shell scripting. Standard OpenAI-compatible format.
curl -X POST https://ai.empire325marketing.com/v1/chat/completions \
-H "Authorization: Bearer hm-YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"model":"325-fast","messages":[{"role":"user","content":"Hello"}]}'LangChain
LangChain Integration
Use ChatOpenAI with our base URL. All LangChain features work.
from langchain.chat_models import ChatOpenAI
llm = ChatOpenAI(
openai_api_key="hm-YOUR_KEY",
openai_api_base="https://ai.empire325marketing.com/v1",
model="325-balanced"
)Go
Go OpenAI Library
Use go-openai or any OpenAI-compatible Go library.
import "github.com/sashabaranov/go-openai"
client := openai.NewClient("hm-YOUR_KEY")
// Set base URL via configMore
Any OpenAI-Compatible Library
325 API works with any library that supports custom base URLs. Rust, Ruby, PHP, Java, .NET — all supported.
Full API Reference →