curl https://api.openai.com/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer YOUR_API_KEY" \ -d '{ "model": "gpt-5", "messages": [ {"role": "system", "content": "You are a helpful assistant."}, {"role": "user", "content": "How do I send queries to the ChatGPT API?"} ] }'