# Conversational Interaction with GPT-4

#### Pricing

Requests made to the Synthetic Data Generation API are billed.

The pricing for API requests is as follows:

* **Per Request Cost**: 3 units base cost per request.

<mark style="color:green;">`POST`</mark> `https://autogon.ai/api/v1/services/chat/`

#### Path Parameters

| Name                                      | Type   | Description                                   |
| ----------------------------------------- | ------ | --------------------------------------------- |
| message<mark style="color:red;">\*</mark> | string | The messages to generate chat completions for |

#### Headers

| Name                                           | Type   | Description      |
| ---------------------------------------------- | ------ | ---------------- |
| Content-Type<mark style="color:red;">\*</mark> | String | application/json |

{% tabs %}
{% tab title="200: OK Sentences, Code blocks or both" %}

````
"To make an HTTP request in Python, you can use the built-in `requests` module. Here is an example:\n\n```python\nimport requests\n\nresponse = requests.get('https://www.example.com')\nprint(response.text)\n```\n\nThis code sends a GET request to `https://www.example.com` and prints the response content. You can also send other types of requests (POST, PUT, DELETE, etc.) by changing the method in the `requests` function. For example:\n\n```python\nimport requests\n\npayload = {'key1': 'value1', 'key2': 'value2'}\nresponse = requests.post('https://www.example.com/post', data=payload)\nprint(response.text)\n```\n\nThis code sends a POST request to `https://www.example.com/post` with a payload of `{'key1': 'value1', 'key2': 'value2'}` and prints the response content."
````

{% endtab %}
{% endtabs %}
