---
title: "Quick Start - Hyperfence Docs"
description: "Connect your LLM to Hyperfence with the current provider-specific proxy URLs."
url: https://hyperfence.io/docs/quick-start/
---

[Overview ](https://hyperfence.io/docs/)[Quick Start ](https://hyperfence.io/docs/quick-start/)[Hyperfences ](https://hyperfence.io/docs/hyperfences/)[Providers ](https://hyperfence.io/docs/providers/)[Analytics ](https://hyperfence.io/docs/analytics/)[Changelog](https://hyperfence.io/changelog/)

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

Supported

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

Supported

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

Supported

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

Supported

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

Supported

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

Coming soon

Meta Llama API support is coming soon, with the same one-URL setup.

## Azure

Coming soon

Azure OpenAI support is coming soon, so you’ll be able to protect your Microsoft Foundry deployments with the same one-URL setup.

C

## Custom

Pro plan

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](https://hyperfence.io/contact/) 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](https://platform.hyperfence.io/welcome).

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](https://platform.hyperfence.io/).

## Cross-provider model routing

Hyperfence can proxy traffic to multiple LLM providers simultaneously. If you want to route across providers, see [Providers](https://hyperfence.io/docs/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.

[Next: Hyperfences →](https://hyperfence.io/docs/hyperfences/) [Supported providers →](https://hyperfence.io/docs/providers/)
