One API key. Every model. Plug Hicap into any tool that supports a custom endpoint—Cline, Claude Code, your own apps—and get reserved GPU capacity at a fraction of the cost.
Open focused guides for tools like Claude Code Router, LiteLLM, OpenClaw, and Cline when you need exact setup steps, config examples, and the fastest path from API key to working integration.
Skip the overview when you are wiring up a tool. The integrations library is where we keep the concrete setup articles, reference links, and future tool-specific guides.
Using the OpenAI SDK, just change the base URL and add your Hicap API key in the request header.
Swap out your OpenAI client config—everything else stays the same. Same SDK, same API calls, same response format.
const openai = new OpenAI({
apiKey: process.env.OPENAI_API_KEY,
});const openai = new OpenAI({
baseURL: "https://api.hicap.ai/v1",
defaultHeaders: {
"api-key": process.env.HICAP_API_KEY,
},
});const response = await openai.chat.completions.create({
model: "gpt-5.4",
messages: [{ role: "user", content: prompt }],
});
console.log(response.choices[0].message.content);Paste this prompt into your AI coding assistant to migrate your entire project in one go:
Migrate this project from OpenAI direct to Hicap.
Find all OpenAI SDK client initializations and update them to use Hicap:
Required changes:
1. Set baseURL to "https://api.hicap.ai/v1"
2. Add "api-key" header with the Hicap API key
3. Remove any existing apiKey or Authorization headers
The Hicap client config should look like:
{
baseURL: "https://api.hicap.ai/v1",
defaultHeaders: { "api-key": <your-hicap-key> }
}
Also:
- Add HICAP_API_KEY to environment variables (.env, .env.example, etc.)
- Update any config files, constants, or helper functions that create OpenAI clients
- Keep all API calls unchanged (chat.completions.create, embeddings, etc.)
- Search for patterns like: new OpenAI, createOpenAI, OpenAIClient, openai.createcurl https://api.hicap.ai/v1/chat/completions \
-H "Content-Type: application/json" \
-H "api-key: $HICAP_API_KEY" \
-d '{"model":"gpt-5.4","messages":[{"role":"user","content":"Hello"}]}'Get volume pricing, shared billing, and dedicated support for your engineering team. We'll set up everything you need.