Connect your KiosAPI, OpenAI, or custom AI credentials. CrystalAPI handles secure encryption, rate limiting, and unified routing without marking up inference fees.
Cursor, Cline, Roo Code, Python, Node.js OpenAI SDK
Direct Inference Execution
Deploy on your Tokoserver VPS with Docker Compose in minutes.
Your keys remain yours. Upstream API keys are encrypted at rest with AES-256-GCM. CrystalAPI never bills you for inference.
Transparent SSE proxying with sub-millisecond gateway latency. Supports AbortSignal propagation when clients disconnect.
Connect your KiosAPI token (`sk-kilo-...`) to route between GPT-4o, Claude 3.5 Sonnet, Gemini 2.0 Flash, and DeepSeek.
Works seamlessly with standard tools, IDEs, and SDKs.
import OpenAI from "openai";
// Point standard OpenAI SDK to CrystalAPI gateway
const client = new OpenAI({
apiKey: "gw_live_xxxxxxxxxxxxxxxxxxxxxxxx",
baseURL: "http://localhost:4000/v1"
});
const stream = await client.chat.completions.create({
model: "kiosapi/gpt-4o", // Namespaced provider model
messages: [{ role: "user", content: "Explain quantum computing in simple terms." }],
stream: true,
});
for await (const chunk of stream) {
process.stdout.write(chunk.choices[0]?.delta?.content || "");
}