Drop-in Replacement
Fully compatible with the OpenAI SDKs for Python, Node, and REST. Just change the base URL and you are live.
The API platform
Stop juggling dozens of vendor SDKs, authentication flows, and billing accounts. Our unified, OpenAI-compatible API lets you switch models and regions by simply changing a string in your payload.
$ POST /v1/chat/completions X-PHI: true X-Region: CH < HTTP/2 200 < x-phi-tier: phi < x-phi-routed: infomaniak/CH < x-phi-attempts: 1
The integration
Drop in our baseURL, pick any model from any vendor, and enforce PHI residency with a header. Nothing else in your stack changes.
import OpenAI from 'openai';
// 1. Drop in our baseURL and your phi-cloud key
const client = new OpenAI({
baseURL: 'https://api.phi-cloud.com/v1',
apiKey: process.env.PHI_API_KEY,
});
const response = await client.chat.completions.create({
// 2. Pick any model from any vendor
model: 'claude-3-opus-20240229',
messages: [{ role: 'user', content: 'Diagnose...' }],
// 3. Enforce PHI compliance & region (e.g. Switzerland)
extra_headers: {
'X-PHI': 'true',
'X-Region': 'CH'
}
});Features
We handle the complexity of routing, failover, and regional compliance. You focus on building.
Fully compatible with the OpenAI SDKs for Python, Node, and REST. Just change the base URL and you are live.
We abstract away vendor-specific API quirks. Send a standard payload, and we translate it perfectly for Anthropic, Google, Mistral, or Meta.
Stop tracking costs across five different platforms. One invoice, per-token pricing, and exact cost attribution in every API response header.