Conversational Interaction with GPT-4
Chat with Autogon Chat Completion API using powerful variants of the GPT models.
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.
POST
https://autogon.ai/api/v1/services/chat/
Path Parameters
Name
Type
Description
message*
string
The messages to generate chat completions for
Headers
Name
Type
Description
Content-Type*
String
application/json
"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."
Last updated
Was this helpful?