The private inference API.
A drop-in, OpenAI-compatible endpoint for DeepSeek V4.1 Flash 1017 and the leading open models. Confidential by design, with subscriptions or pay-per-token credits and no KYC. Keep your SDK and change one line.
- OpenAI-compatible
- Pay per token
- Nothing retained
Explain confidential inference.
Confidential inference runs your prompt inside an attested enclave. The operator can't read it, nothing is logged, and no data is kept once the response streams back.
Example response. The cost is its tokens at the selected model's live per-token price.
The infrastructure can't remember you.
Requests are processed and forgotten. Sensitive workloads run inside Trusted Execution Environments with remote attestation, so you can verify the enclave instead of trusting a policy.
Nothing stored
Prompts and responses are processed and forgotten; billing keeps token counts, never content.
Nothing trained on you
Your prompts never become weights and are never used to train, tune or evaluate a model.
Attested in hardware
Confidential models run in a sealed enclave that even the machine's operator cannot read.
One endpoint for the open-model catalog.
The full OpenAI-compatible surface, running on a decentralized network that cannot keep your data. Everything you'd expect from a modern inference API, with privacy built into the architecture.
| Model | Capabilities | Context | Input | Output |
|---|---|---|---|---|
DeepSeek V4.1 Flash 1017Flagshipdeepseek-v4.1-flash-1017 | ToolsVisionReasoning | 1024K | $0.30 | $1.20 |
Qwen3.6-35B-A3Bqwen3.6-35b-a3b | ToolsVisionReasoning | 256K | $0.15 | $0.50 |
Qwen3.8-27Bqwen3.8-27b | ToolsVisionReasoning | 256K | $0.15 | $0.50 |
Qwen3.8-27B (TEE)qwen3.8-27b-tee | ToolsReasoningTEE | 1000K | $0.15 | $0.50 |
GLM-5.3-Flashglm-5.3-flash | ToolsVisionReasoning | 512K | $0.15 | $0.50 |
GLM-5.3glm-5.3 | ToolsReasoning | 256K | $1.40 | $4.40 |
6 models · USD per 1M tokens
Your code already works.
The API mirrors the OpenAI spec across chat, tools, vision, embeddings and streaming. Point your client at a new base URL and keep everything else: SDK, prompts and stack.
import os from openai import OpenAI client = OpenAI(- base_url="https://api.openai.com/v1",+ base_url="https://api.libertai.io/v1", api_key=os.environ["LIBERTAI_API_KEY"], ) import OpenAI from "openai"; const client = new OpenAI({- baseURL: "https://api.openai.com/v1",+ baseURL: "https://api.libertai.io/v1", apiKey: process.env.LIBERTAI_API_KEY, });-curl https://api.openai.com/v1/chat/completions \+curl https://api.libertai.io/v1/chat/completions \ -H "Authorization: Bearer $LIBERTAI_API_KEY" \ -d @request.jsonCall it from anywhere.
A plain HTTPS endpoint that speaks the OpenAI dialect. Reach for the terminal, the official SDKs, or wire it straight into your agents.
From the terminal
One curl call and you're streaming tokens, which suits scripts and quick tests.
cURL referenceWith the OpenAI SDK
Use the official Python or JavaScript clients. Only the base URL changes.
SDK guideInside your agents
Function calling and JSON output plug into the agent frameworks you already run.
Tool calling
curl https://api.libertai.io/v1/chat/completions \
-H "Authorization: Bearer $LIBERTAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4.1-flash-1017",
"messages": [{"role": "user", "content": "Hello"}]
}'from openai import OpenAI
import os
client = OpenAI(
base_url="https://api.libertai.io/v1",
api_key=os.environ["LIBERTAI_API_KEY"],
)
stream = client.chat.completions.create(
model="deepseek-v4.1-flash-1017",
messages=[{"role": "user", "content": "Hello"}],
stream=True,
)import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api.libertai.io/v1",
apiKey: process.env.LIBERTAI_API_KEY,
});
const res = await client.chat.completions.create({
model: "deepseek-v4.1-flash-1017",
messages: [{ role: "user", content: "Hello" }],
});const res = await client.chat.completions.create({
model: "deepseek-v4.1-flash-1017",
messages: [{ role: "user", content: "Find the latest Aleph Cloud news." }],
tools: [{
type: "function",
function: {
name: "web_search",
parameters: {
type: "object",
properties: { query: { type: "string" } },
},
},
}],
});