# 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="https://1285031002-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FD5oNm307ZDAIxFmZYu4M%2Fuploads%2FtZzZJcc4cTetKELxW4KZ%2FSanjin%202023-07-05%20at%2000.05.53%402x.png?alt=media&#x26;token=4cbbfd74-5b96-4f0d-a2fd-682ae0146f41" 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`".
