model22 / Text generation
Festlige's picture
Create Text generation
70f1460 verified
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
}'