cURL
curl --request POST \ --url https://api.example.com/v1/chat/completions \ --header 'Content-Type: application/json' \ --data '{ "stream": true }'
OpenAI-compatible chat completion endpoint with automatic tool injection
model
messages
temperature
curl -X POST https://api.betterdata.io/v1/chat/completions \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{ "model": "gpt-4", "messages": [{"role": "user", "content": "Find me some cool shirts"}] }'