# 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`".


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://doc.helper.im/product-related/api-proxy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
