Learn about the required content types for API requests
Content-Type
application/json
Content-Type: application/json
POST /api/chat/completions Content-Type: application/json { "messages": [ { "role": "user", "content": "Hello!" } ] }
400 Bad Request
{ "error": { "message": "Content-Type must be application/json", "code": 400 } }