Quick Start
Connect your LLM
Replace your existing LLM endpoint URL and add your API token. No other code changes are needed.
1 · Choose your LLM service
Set your client's base URL to the Hyperfence base URL for the provider you already call today, exactly as shown. This matches the integration guide in the platform settings.
OpenAI
Direct URL
https://api.openai.com/v1 Hyperfence base URL
https://proxy.hyperfence.io/openai/v1
Set this as your client's base URL (with the OpenAI SDK, OPENAI_BASE_URL also works). Your SDK adds the rest, so requests go to https://proxy.hyperfence.io/openai/v1/chat/completions.
Example request
curl https://proxy.hyperfence.io/openai/v1/chat/completions \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-H "X-Proxy-Authorization: Bearer $HYPERFENCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "<model>", "messages": [{"role": "user", "content": "Hello"}]}'
Both keys travel on every request: your own OpenAI key, exactly as today, and your Hyperfence token in X-Proxy-Authorization. Replace <model> with the model you use.
Anthropic
Direct URL
https://api.anthropic.com Hyperfence base URL
https://proxy.hyperfence.io/anthropic
Set this as your client's base URL (with the Anthropic SDK, ANTHROPIC_BASE_URL also works). Your SDK adds the rest, so requests go to https://proxy.hyperfence.io/anthropic/v1/messages.
Example request
curl https://proxy.hyperfence.io/anthropic/v1/messages \
-H "x-api-key: $ANTHROPIC_API_KEY" \
-H "X-Proxy-Authorization: Bearer $HYPERFENCE_API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "Content-Type: application/json" \
-d '{"model": "<model>", "max_tokens": 256, "messages": [{"role": "user", "content": "Hello"}]}'
Both keys travel on every request: your own Anthropic key, exactly as today, and your Hyperfence token in X-Proxy-Authorization. Replace <model> with the model you use.
Gemini
Direct URL
https://generativelanguage.googleapis.com/v1beta/openai Hyperfence base URL
https://proxy.hyperfence.io/gemini/v1
Set this as your client's base URL (with the OpenAI SDK, OPENAI_BASE_URL also works). Your SDK adds the rest, so requests go to https://proxy.hyperfence.io/gemini/v1/chat/completions.
Example request
curl https://proxy.hyperfence.io/gemini/v1/chat/completions \
-H "Authorization: Bearer $GEMINI_API_KEY" \
-H "X-Proxy-Authorization: Bearer $HYPERFENCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "<model>", "messages": [{"role": "user", "content": "Hello"}]}'
Both keys travel on every request: your own Gemini key, exactly as today, and your Hyperfence token in X-Proxy-Authorization. Replace <model> with the model you use.
xAI
Direct URL
https://api.x.ai/v1 Hyperfence base URL
https://proxy.hyperfence.io/xai/v1
Set this as your client's base URL (with the OpenAI SDK, OPENAI_BASE_URL also works). Your SDK adds the rest, so requests go to https://proxy.hyperfence.io/xai/v1/chat/completions.
Example request
curl https://proxy.hyperfence.io/xai/v1/chat/completions \
-H "Authorization: Bearer $XAI_API_KEY" \
-H "X-Proxy-Authorization: Bearer $HYPERFENCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "<model>", "messages": [{"role": "user", "content": "Hello"}]}'
Both keys travel on every request: your own xAI key, exactly as today, and your Hyperfence token in X-Proxy-Authorization. Replace <model> with the model you use.
DeepSeek
Direct URL
https://api.deepseek.com/v1 Hyperfence base URL
https://proxy.hyperfence.io/deepseek/v1
Set this as your client's base URL (with the OpenAI SDK, OPENAI_BASE_URL also works). Your SDK adds the rest, so requests go to https://proxy.hyperfence.io/deepseek/v1/chat/completions.
Example request
curl https://proxy.hyperfence.io/deepseek/v1/chat/completions \
-H "Authorization: Bearer $DEEPSEEK_API_KEY" \
-H "X-Proxy-Authorization: Bearer $HYPERFENCE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"model": "<model>", "messages": [{"role": "user", "content": "Hello"}]}'
Both keys travel on every request: your own DeepSeek key, exactly as today, and your Hyperfence token in X-Proxy-Authorization. Replace <model> with the model you use.
Meta
Meta Llama API support is coming soon, with the same one-URL setup.
Azure
Azure OpenAI support is coming soon, so you’ll be able to protect your Microsoft Foundry deployments with the same one-URL setup.
Custom
If you want to connect your own custom LLM or private model endpoint, you will need the Pro plan. On Pro, we can add any LLM you want.
Contact us if you need a private endpoint or a provider that is not listed here.
2 · Add your API token
{
"X-Proxy-Authorization": "Bearer hf_your_token_here_xxxxxxxxxxxxxxxx"
} Your token is available in Settings after you sign up.
3 · Send requests as normal
That's it
Your requests now flow through the Hyperfence proxy. Prompt injection blocking and your enabled Hyperfences are active immediately. You can now see traffic, blocked events, and token usage within the platform.
Cross-provider model routing
Hyperfence can proxy traffic to multiple LLM providers simultaneously. If you want to route across providers, see Providers for the supported services and model coverage.
Need your token?
Open Settings in the platform to generate or reset a token, then come back here and swap your provider URL.