File size: 299 Bytes
70f1460 | 1 2 3 4 5 6 7 8 | curl -sS https://router.huggingface.co/v1/chat/completions \
-H "Authorization: Bearer $HF_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"model": "meta-llama/Llama-3.1-8B-Instruct",
"messages": [{"role":"user","content":"Say hi in 1 short sentence."}],
"max_tokens": 80
}' |