# 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 %}


---

# 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://docs.autogon.ai/autogon-qore/natural-language-ai/conversational-interaction-with-gpt-4.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.
