> For the complete documentation index, see [llms.txt](https://doc.helper.im/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.helper.im/product-related/api-proxy.md).

# API Proxy

{% hint style="info" %}
Do not fill in, default use ChatGpt official address: **<https://api.openai.com>**
{% endhint %}

Because some regions can't access OpenAi's API, it can cause inaccessibility problems

Helper provides the perfect solution to resolve network exceptions using proxies

### Official proxy

> The data will be reported, but the Helper will not save any data.

Please enter **`https://chatgpt.helper.im`** into the input box below to resolve the network issue.

<figure><img src="/files/o6Hedd1tK32CCAMTeyiY" alt=""><figcaption></figcaption></figure>

### Build your own proxy

> Reporting data to your own server, ensuring security, reliability, and privacy protection.

I recommend purchasing a server that can request the ChatGPT model and utilizing a Linux server with Nginx as a reverse proxy. The server should be located in the United States for optimal accessibility.

To add an Nginx reverse proxy configuration, open the `chatgpt.conf` file using the `vi` text editor and enter the following content:

{% code title="chatgpt.conf" overflow="wrap" lineNumbers="true" fullWidth="false" %}

```editorconfig
server{
    listen 443 ssl;
    server_name chatgpt.helper.im;

    ssl_certificate /etc/letsencrypt/live/chatgpt.helper.im/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/chatgpt.helper.im/privkey.pem;
    ssl_session_timeout 5m;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers AESGCM:ALL:!DH:!EXPORT:!RC4:+HIGH:!MEDIUM:!LOW:!aNULL:!eNULL;
    ssl_prefer_server_ciphers on;

    client_max_body_size 1024m;

    location / {
        proxy_pass https://api.openai.com/;
        proxy_ssl_server_name on;
        proxy_set_header Host api.openai.com;
        proxy_set_header Connection '';
        proxy_http_version 1.1;
        chunked_transfer_encoding off;
        proxy_buffering off;
        proxy_cache off;
        proxy_set_header X-Forwarded-For $remote_addr;
        proxy_set_header X-Forwarded-Proto $scheme;
    }

    access_log off;
}
```

{% endcode %}

* **server\_name**: Your reverse proxy domain name&#x20;
* **ssl\_certificate**: Your domain name certificate PEM&#x20;
* **ssl\_certificate\_key**: Your domain name certificate KEY

After saving, the changes take effect by using the command "`nginx -s reload`".
