Flag guide
What does curl -H mean?
-H (long form: --header) adds a custom HTTP header to the request. You can use multiple -H flags to add as many headers as you need.
Full example
curl https://api.openai.com/v1/models \ -H "Authorization: Bearer $OPENAI_API_KEY" \ -H "Content-Type: application/json"
Paste any curl into curlwtf.com for a full plain-English breakdown of every -H header.