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:

ProviderBase URLAuth HeaderAuth Format
openaihttps://api.openai.comAuthorizationBearer {key}
anthropichttps://api.anthropic.comx-api-key{key}
ollamahttp://localhost:11434nonenone
Any HTTP endpointYou configureConfigurableConfigurable

Any HTTP endpoint

Keep Azure OpenAI, an OpenAI-compatible gateway such as LiteLLM, or an internal service. Match its path, body, authorization and query requirements. HTTP forwarding does not supply vendor-specific request signing. See Custom Providers below.

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.

bash
# 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:

bash
# 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-Key separately.

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 PathDetected ProviderAPI
/v1/chat/completionsopenaiChat Completions
/v1/completionsopenaiCompletions (legacy)
/v1/embeddingsopenaiEmbeddings
/v1/modelsopenaiModel listing
/v1/responsesopenaiResponses API
/v1/messagesanthropicMessages
/api/chatollamaChat
/api/generateollamaGenerate

Priority Chain

When Ingate receives a request, it resolves the provider in this order:

  1. Explicit header: X-Ingate-Provider: anthropic always wins
  2. Path auto-detection: matched against the table above
  3. Default provider: the org's configured fallback provider
  4. Error: 400 if no provider can be resolved
bash
# 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

OpenAI SDKs normally use the API origin plus /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

  1. For a saved provider, remove the saved key and conflicting extra_headers; for a static provider, use forwarding-only configuration
  2. Clients include their own provider auth header alongside X-Ingate-Key
  3. Ingate authenticates the client via X-Ingate-Key, then forwards the request with the client's original auth header intact

Use cases

ScenarioAuth Header Passed Through
Compatible OpenAI API client with its own keyAuthorization: Bearer $UPSTREAM_API_KEY
Existing HTTP gateway with token authenticationIts supported authorization header, separate from X-Ingate-Key
Custom internal services with tokensAny header your service expects
bash
# 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

Routed requests use the configured controls and capture policy, subject to their supported scopes and entitlements. 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:

FieldDescription
base_urlUpstream API base URL (required)
api_keyInjected upstream credential for a generic provider; clear it for client credential passthrough
auth_headerCustom auth header name (default: Authorization)
auth_schemePrefix before the key value (default: Bearer)
path_prefixPrepended to every request path
query_paramsSelf-hosted static generic configuration only; configured values replace matching incoming query values
headers / extra_headersStatic configuration / saved organization fields; applied after key injection
enabledWhether 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:

FieldValue
Nameazure-gpt4
Base URLhttps://myorg.openai.azure.com
Auth Headerapi-key
Auth Scheme(empty, no prefix)
Path Prefix/openai/deployments/gpt-4o
Query Paramsapi-version=2024-02-01
bash
# 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:

bash
# 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

bash
# 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:

bash
# 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:

bash
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

Explicit header → path auto-detection → default provider → 400 error. The default provider is the last fallback before an error is returned.

Provider Fallback

Enterprise feature

Provider fallback is available on Enterprise plans.

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

  1. Request goes to the primary provider
  2. Primary returns a retryable status code
  3. Ingate retries against the next provider in the fallback chain
  4. 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:

bash
# Response header shows which provider handled the request
# X-Ingate-Served-By: anthropic
# (primary was openai, but it returned 429)

Model compatibility

When falling back between providers, ensure the target model exists on the backup provider. Use format translation if the backup uses a different API shape.

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 messages array → Anthropic messages format
  • OpenAI system message → Anthropic system parameter
  • Anthropic responses mapped to the selected OpenAI response shape
  • Token usage fields mapped between formats
bash
# 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

Each fallback destination must accept the resulting path, body, model and authentication. Do not assume a fallback automatically selects a different translation or restores the original request shape. Verify the primary and backup paths independently.