# Conduix > Conduix (api.conduix.ai) is the enterprise AI operating layer by iVirtualsoft. It is > OpenAI-API-compatible: point any OpenAI/Anthropic-style SDK at it and route > across 11 providers (OpenAI, Anthropic, Google Gemini, xAI, DeepSeek, Mistral, Groq, Together, Fireworks, Azure AI Foundry, Amazon Bedrock) with one key — > plus routing, automatic fallback, spend caps, audit, and PII redaction. This file is guidance for AI agents and developers integrating with Conduix. Everything below works against the live API today. For humans, the full docs are linked at the end. ## Connect (OpenAI drop-in) - Base URL: `https://api.conduix.ai/v1` - Auth: `Authorization: Bearer ` where the key is `cx_live_…` (billable) or `cx_test_…` (non-billable, identical code path — use for testing/CI). - Endpoint: `POST /v1/chat/completions` — OpenAI request/response shape, including SSE streaming (`"stream": true`) and OpenAI-style error objects (`invalid_request_error`, `insufficient_quota`, `permission_error`, …). - Minimal request body: `{ "model": "", "messages": [...] }`. ## Models — do NOT assume a name format - Model ids are PROVIDER-NATIVE. There is no `provider/model` routing prefix. Correct: `gpt-5.4-mini`, `claude-sonnet-5-5`, `gemini-3.5-flash`, `deepseek-flash`. Wrong: `anthropic/claude-sonnet-5-5`. - Always discover the live catalog with `GET /v1/models`. Each entry has a `conduix` extension: `{ provider, tier, context_window, input_price_per_m_credits, output_price_per_m_credits }`. - Bring-your-own / self-hosted models use the only namespaced form: `"model": "byo:/"`. ## Usage and cost - Token counts return inline on every response in the standard `usage` object (`prompt_tokens`, `completion_tokens`, `total_tokens`). - Charged cost is NOT in the completion body. Read it from the account API, keyed by the `x-conduix-request-id` response header. Account endpoints (same API key, no session login): - `GET /v1/account/balance` — credit balance, plan, spend caps. - `GET /v1/account/usage?from=&to=&model=` — rolled-up tokens + charged credits. - `GET /v1/account/audit?limit=&status=&model=` — per-request rows. - Currency is credits (1 credit ≈ 1 USD), reported in micro-credits (÷ 1,000,000). - The account API is eventually consistent (usage is written asynchronously). Compute cost at call time from `/v1/models` price × inline `usage`, then reconcile against `/v1/account/usage` on a schedule. ## Official SDKs and agent tooling - Python SDK: `pip install conduix` ```python from conduix import Conduix client = Conduix(api_key="cx_live_…") # base URL is built in resp = client.chat.completions.create( model="claude-sonnet-5-5", messages=[{"role": "user", "content": "Hello"}], ) ``` It is a thin subclass of the OpenAI Python client, so the full OpenAI surface works unchanged. SDK calls send `x-conduix-source: python-sdk`. - TypeScript: use the `openai` npm SDK with `baseURL: "https://api.conduix.ai/v1"`. - MCP server (for AI agents — Claude Desktop, Cursor, Cline): `@conduix/mcp-server`. Read-only tools: `get_spend`, `list_models`, `recent_audit`. It reads gateway metadata only — it does NOT proxy completions; use the SDK/HTTP for inference. ```json { "mcpServers": { "conduix": { "command": "npx", "args": ["-y", "@conduix/mcp-server"], "env": { "CONDUIX_API_KEY": "cx_live_…" } } } } ``` ## Serving your own customers (multi-tenant) - Mint one API key per customer/workspace under your account. Each key carries its own `rate_limit`, `allowed_models`, and PII policy. - Credit balance and spend caps are account-level (shared across your keys), not per-key. For a hard per-customer ceiling, meter it yourself, or use separate accounts. For programmatic sub-accounts, contact sales@conduix.ai. ## Limits and behavior agents should know - Spend cap or out-of-credits → HTTP 402 with code `insufficient_quota` / `spend_cap_exceeded`, returned BEFORE any provider is billed. - On a provider failure Conduix retries down a fallback chain; the response shape is unchanged and the `model` field echoes what you requested. Inspect `x-conduix-fallback` and `x-conduix-model-served` to see what actually served. - PII governance may redact/tokenize content per the org/key policy; detection is surfaced via `x-conduix-pii-*` response headers. ## Docs (for humans) - Quickstart: https://conduix.ai/docs/quickstart - Building on Conduix (integration guide + FAQ): https://conduix.ai/docs/integrations - Authentication: https://conduix.ai/docs/authentication - Models & pricing: https://conduix.ai/docs/models - Billing & credits: https://conduix.ai/docs/billing - Observability (headers): https://conduix.ai/docs/observability - BYO endpoints: https://conduix.ai/docs/byo-endpoints - Security: https://conduix.ai/docs/security - Governance (spend caps, PII): https://conduix.ai/docs/governance ## Contact - Support: support@conduix.ai - Sales / sub-accounts / volume: sales@conduix.ai - Security / DPA / BAA review: security@conduix.ai