Providers
Keep your existing HTTP model provider or gateway. Configure compatible paths and separate Ingate identity from upstream authentication.
Supported Providers
Ingate forwards compatible HTTP requests to your existing provider or gateway. Routing does not make different authentication schemes or API shapes interchangeable. Self-hosted static configuration has built-in defaults for these providers; saved organization providers use their configured auth header and scheme:
| Provider | Base URL | Auth Header | Auth Format |
|---|---|---|---|
openai | https://api.openai.com | Authorization | Bearer {key} |
anthropic | https://api.anthropic.com | x-api-key | {key} |
ollama | http://localhost:11434 | none | none |
| Any HTTP endpoint | You configure | Configurable | Configurable |
Any HTTP endpoint
Adding a Provider
Navigate to Dashboard → Providers → Add Provider. Give your provider a name, set its base URL, and choose an auth mode:
API Key Mode
Database-stored organization provider keys use AES-256-GCM encryption. Ingate injects a configured key into that provider's configured auth header. Self-hosted configuration and environment secrets need your own protection. An application-bound Ingate key authenticates the gateway separately from the provider key.
Select an enabled provider and application first. Privately set INGATE_KEYto that application's key, INGATE_BASE_URL to the API origin (Cloud: https://api.ingateai.com), and INGATE_PROVIDERto your configured provider name. Set INGATE_SESSION_ID to a fresh proof marker. These POSIX shell examples make a model request; use an approved test workload and account for any upstream cost before running one.
# API-key injection: provider credential is configured in Ingate.
curl --fail-with-body "$INGATE_BASE_URL/v1/chat/completions" \
-H "X-Ingate-Key: $INGATE_KEY" \
-H "X-Ingate-Provider: $INGATE_PROVIDER" \
-H "X-Ingate-Session-Id: $INGATE_SESSION_ID" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-4o-mini", "messages": [{"role": "user", "content": "Hello"}]}'Auth Passthrough Mode
For a saved organization provider, auth_passthrough: true alone does not cancel a configured key or static authorization header. A configured key replaces the corresponding client header; extra_headersare applied afterwards and can replace that injected value. For client credential passthrough, clear the saved provider key and any conflicting static authorization headers. Privately set UPSTREAM_API_KEY to the existing upstream API key:
# Client credential passthrough: no configured provider key/auth override.
curl --fail-with-body "$INGATE_BASE_URL/v1/chat/completions" \
-H "X-Ingate-Key: $INGATE_KEY" \
-H "X-Ingate-Provider: $INGATE_PROVIDER" \
-H "X-Ingate-Session-Id: $INGATE_SESSION_ID" \
-H "Authorization: Bearer $UPSTREAM_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-4o-mini", "messages": [{"role": "user", "content": "Hello"}]}'When to use each mode
- API Key mode: your team shares a single provider key managed by Ingate. Best for centralized billing and key rotation.
- Client credential passthrough: a compatible API client retains its upstream credential and sends
X-Ingate-Keyseparately.
Auto-Detection
Ingate automatically detects the target provider from the request path. You don't need to set a header for standard API paths:
| Request Path | Detected Provider | API |
|---|---|---|
/v1/chat/completions | openai | Chat Completions |
/v1/completions | openai | Completions (legacy) |
/v1/embeddings | openai | Embeddings |
/v1/models | openai | Model listing |
/v1/responses | openai | Responses API |
/v1/messages | anthropic | Messages |
/api/chat | ollama | Chat |
/api/generate | ollama | Generate |
Priority Chain
When Ingate receives a request, it resolves the provider in this order:
- Explicit header:
X-Ingate-Provider: anthropicalways wins - Path auto-detection: matched against the table above
- Default provider: the org's configured fallback provider
- Error:
400if no provider can be resolved
# Auto-detected as openai (path: /v1/chat/completions)
curl https://api.ingateai.com/v1/chat/completions \
-H "X-Ingate-Key: sk-ingate-your-key" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-4o-mini", "messages": [{"role": "user", "content": "Hello"}]}'
# Auto-detected as anthropic (path: /v1/messages)
curl https://api.ingateai.com/v1/messages \
-H "X-Ingate-Key: sk-ingate-your-key" \
-H "Content-Type: application/json" \
-d '{"model": "claude-sonnet-4-20250514", "max_tokens": 1024, "messages": [{"role": "user", "content": "Hello"}]}'
# Explicit header overrides auto-detection
curl https://api.ingateai.com/v1/chat/completions \
-H "X-Ingate-Provider: azure-gpt4" \
-H "X-Ingate-Key: sk-ingate-your-key" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-4o", "messages": [{"role": "user", "content": "Hello"}]}'Match the client API shape
/v1; Anthropic SDKs use the origin and append /v1/messages. Retain the separate X-Ingate-Key header. A provider name chooses routing, not format conversion. Follow the SDK integration for your client.Auth Passthrough
The self-hosted static provider setting auth_passthrough: true selects a forwarding-only provider: no configured key injection, static headers, path prefix or static query injection. It uses the base URL and incoming path/query. This differs from the saved organization provider precedence described above.
Native Claude Code and Codex subscription sign-in is not a supported proxy recipe. Keep that sign-in and use native accounting where the documented CLI is available. Native observation needs an Ingate application key, no OpenAI/Anthropic provider API key, and does not route or enforce subscription traffic.
How it works
- For a saved provider, remove the saved key and conflicting
extra_headers; for a static provider, use forwarding-only configuration - Clients include their own provider auth header alongside
X-Ingate-Key - Ingate authenticates the client via
X-Ingate-Key, then forwards the request with the client's original auth header intact
Use cases
| Scenario | Auth Header Passed Through |
|---|---|
| Compatible OpenAI API client with its own key | Authorization: Bearer $UPSTREAM_API_KEY |
| Existing HTTP gateway with token authentication | Its supported authorization header, separate from X-Ingate-Key |
| Custom internal services with tokens | Any header your service expects |
# Compatible Anthropic API client; not subscription sign-in.
curl --fail-with-body "$INGATE_BASE_URL/v1/messages" \
-H "X-Ingate-Key: $INGATE_KEY" \
-H "X-Ingate-Provider: $INGATE_PROVIDER" \
-H "x-api-key: $UPSTREAM_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{"model": "claude-sonnet-4-20250514", "max_tokens": 1024, "messages": [{"role": "user", "content": "Hello"}]}'Verify recorded evidence
metadata_only capture omits bodies; native accounting is a separate observation path. A successful response is not proof of storage. Match organization, application, provider, successful status, source and session marker using Verify request or the dashboard. If recording is pending, keep the marker and retry only the read-only check, not inference. Missing or invalid gateway credentials return 401 before dispatch; upstream credential failures occur after dispatch and require separate diagnosis.Custom Providers
Retain your existing endpoint and match its request format. Prefixes append to the base URL before the incoming path; they do not rewrite that path. The self-hosted static schema uses headers and query_params. Saved organization providers use extra_headers and do not expose static query configuration. Incoming query parameters are forwarded. These static fields require a generic provider, not the static forwarding-only passthrough mode:
| Field | Description |
|---|---|
base_url | Upstream API base URL (required) |
api_key | Injected upstream credential for a generic provider; clear it for client credential passthrough |
auth_header | Custom auth header name (default: Authorization) |
auth_scheme | Prefix before the key value (default: Bearer) |
path_prefix | Prepended to every request path |
query_params | Self-hosted static generic configuration only; configured values replace matching incoming query values |
headers / extra_headers | Static configuration / saved organization fields; applied after key injection |
enabled | Whether this provider is active (default: disabled) |
Example: Azure OpenAI
This is a self-hosted generic configuration pattern. Azure-style endpoints require a matching auth header (api-key), deployment path and supported API version. Choose the API version supported by your deployment and verify its requirements. The incoming path is appended after the configured prefix, so this example calls /chat/completions, without an extra /v1:
| Field | Value |
|---|---|
| Name | azure-gpt4 |
| Base URL | https://myorg.openai.azure.com |
| Auth Header | api-key |
| Auth Scheme | (empty, no prefix) |
| Path Prefix | /openai/deployments/gpt-4o |
| Query Params | api-version=2024-02-01 |
# Request to Azure OpenAI through Ingate
# Ingate builds: https://myorg.openai.azure.com/openai/deployments/gpt-4o/chat/completions?api-version=2024-02-01
curl https://api.ingateai.com/chat/completions \
-H "X-Ingate-Provider: azure-gpt4" \
-H "X-Ingate-Key: sk-ingate-your-key" \
-H "Content-Type: application/json" \
-d '{"messages": [{"role": "user", "content": "Hello"}]}'Example: vLLM / Self-Hosted Models
For an endpoint you have deliberately configured without authentication, use its base URL and supported model name. Otherwise retain its required upstream credentials:
# Name: local-llama
# Base URL: http://gpu-server:8000
# No API key needed for local endpoints
curl https://api.ingateai.com/v1/chat/completions \
-H "X-Ingate-Provider: local-llama" \
-H "X-Ingate-Key: sk-ingate-your-key" \
-H "Content-Type: application/json" \
-d '{"model": "llama-3-70b", "messages": [{"role": "user", "content": "Hello"}]}'Example: Together AI / Fireworks / OpenAI-Compatible
# Together AI uses standard Bearer auth with a different base URL
# Name: together
# Base URL: https://api.together.xyz
# Auth Header: Authorization (default)
# Auth Scheme: Bearer (default)
curl https://api.ingateai.com/v1/chat/completions \
-H "X-Ingate-Provider: together" \
-H "X-Ingate-Key: sk-ingate-your-key" \
-H "Content-Type: application/json" \
-d '{"model": "meta-llama/Llama-3-70b-chat-hf", "messages": [{"role": "user", "content": "Hello"}]}'Example: Custom Endpoint with Static Headers
Internal services often need a custom auth header plus fixed headers on every request:
# Name: internal-llm
# Base URL: https://llm.internal.corp.com
# Auth Header: X-Service-Token
# Auth Scheme: (empty, no prefix)
# Headers: X-Team=backend, X-Environment=production
curl https://api.ingateai.com/v1/chat/completions \
-H "X-Ingate-Provider: internal-llm" \
-H "X-Ingate-Key: sk-ingate-your-key" \
-H "Content-Type: application/json" \
-d '{"messages": [{"role": "user", "content": "Hello"}]}'Default Provider
One provider can be marked as the default for your organization. The default is used when a request has no X-Ingate-Provider header and the path doesn't match any auto-detection rule.
Set the default in Dashboard → Providers → ⋯ → Set as Default (or with default: true on the provider in a self-hosted config), or via the API:
curl -X PUT https://api.ingateai.com/api/v1/providers/default \
-H "Authorization: Bearer <token>" \
-H "Content-Type: application/json" \
-d '{"provider_name": "openai"}'Resolution order reminder
400 error. The default provider is the last fallback before an error is returned.Provider Fallback
Enterprise feature
When a primary provider returns a retryable error (429, 500, 502, 503, 504), Ingate automatically retries the request against a configured backup provider. Configure fallback chains in the dashboard under Providers → Fallback.
How it works
- Request goes to the primary provider
- Primary returns a retryable status code
- Ingate retries against the next provider in the fallback chain
- Process continues until a provider succeeds or the chain is exhausted
Both the primary and fallback providers must be configured and enabled. This is validated at startup, so a misconfigured fallback fails fast rather than at request time.
The response includes the X-Ingate-Served-By header showing which provider actually served the request:
# Response header shows which provider handled the request
# X-Ingate-Served-By: anthropic
# (primary was openai, but it returned 429)Model compatibility
Format Translation
Translation is opt-in with X-Ingate-Translate: true. The supported OpenAI-to-Anthropic translators recognize Chat Completions messagesor Responses input and map supported fields into Anthropic Messages, then map the response back. This does not make arbitrary provider APIs interchangeable. Check your exact payload features, endpoint and model; routing without this header preserves the request shape. The example below illustrates basic text messages.
What gets translated
- OpenAI
messagesarray → Anthropicmessagesformat - OpenAI
systemmessage → Anthropicsystemparameter - Anthropic responses mapped to the selected OpenAI response shape
- Token usage fields mapped between formats
# Send OpenAI-format request, Ingate translates to Anthropic format
curl https://api.ingateai.com/v1/chat/completions \
-H "X-Ingate-Provider: anthropic" \
-H "X-Ingate-Translate: true" \
-H "X-Ingate-Key: sk-ingate-your-key" \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4-20250514",
"messages": [
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello"}
]
}'Check fallback compatibility separately