Chat
Query the /chat
endpoint for OpenAI chat models.
Making the request
Endpoint: /chat
Method: POST
Request body:
{"model": "model_name", "content": "your_content_here"}
Example:
import requests
headers = {"X-API-KEY": "4088bbb2b9a34d75944e03810bbbe763"}
data = {"model": "text-curie-001", "content": "Hey there from AiPrice.dev!"}
content = requests.post("https://api.aiprice.dev/chat", json=data, headers=headers)
print(content.json())