Documentation Index
Fetch the complete documentation index at: https://docs.omnifact.ai/llms.txt
Use this file to discover all available pages before exploring further.
What is the API Gateway?
The Omnifact API Gateway provides a unified API to access models from leading AI providers through a single endpoint. It allows your developers and internal applications to route requests to powerful AI models directly, without needing to set up separate accounts with different AI providers. Key benefits include:- One key, multiple providers: Access models from OpenAI, Anthropic, Google, Mistral AI, and more with a single API key.
- Drop-in replacement: Switch between providers and models with minimal code changes using existing OpenAI-compatible SDKs.
- Unified billing & observability: Monitor your spending and usage across all providers in one place. No credit card needed for separate providers.
- Runs on your existing budget: Consumes your organization’s existing AI budget, billed through your existing Omnifact contract.
Getting Started
The API Gateway is exclusively available for customers on the Enterprise Plan. See our Billing page or contact support to upgrade.
- Prerequisites: Ensure that API Gateway access has been enabled for your organization by Omnifact. (Note: If this feature is not enabled for your organization, any requests to the API will return a
403 Forbiddenerror.) - Opt-in: A team administrator must enable the Gateway in the Developer Tools section.
- Authentication: All requests to the API Gateway must include your API key (which can be generated in Team Settings > Developer Tools) in the
X-API-Keyheader (or as a Bearer token if using OpenAI SDKs).
Available Models
You can query the available models using the standard OpenAI models endpoint. For detailed specifications of the endpoint parameters and response formats, please refer to the OpenAI API Reference.GET /gateway/v1/models
Chat Completions
The API Gateway provides drop-in compatible APIs that let you switch providers by simply changing your base URL tohttps://api.omnifact.ai/gateway/v1. No code rewrites are required. You can use the same SDKs and tools you already know.
POST /gateway/v1/chat/completions
This endpoint accepts the standard OpenAI-compatible format and supports streaming, routing, custom temperatures, and more. (Note: Tool calling and structured outputs are not supported in V1).
- Node.js (OpenAI SDK)
- Python (OpenAI SDK)
- cURL
Usage & Billing
Using the API Gateway consumes your organization’s monthly AI budget. This means you don’t need to manage separate billing for API usage. Please note that API Gateway usage includes a markup on top of the base model costs. You can monitor your overall usage and credit consumption in the Billing & Usage dashboard.FAQ
Does the API Gateway use the Privacy Filter?
Does the API Gateway use the Privacy Filter?
Not yet. Privacy Filter integration for the API Gateway is planned for a future update.
Which models are available through the API?
Which models are available through the API?
The available models depend on your organization’s specific Omnifact plan and configuration. You can use the
/gateway/v1/models endpoint to see the exact list of models available to you. Please note that base-tier models are excluded from API access.Can I create multiple API keys?
Can I create multiple API keys?
Currently, there is only one API key per organization, managed through the Developer Tools section.