Use cURL to integrate Llama with Helicone to log your Llama LLM usage.
Create an account + Generate an API Key
Modify the API base and add the `Helicone-Auth` header
curl -X POST https://llama.helicone.ai/v1/chat/completions \ -H "Content-Type: application/json" \ -H "Authorization: Bearer $LLAMA_API_KEY" \ -H "Helicone-Auth: Bearer $HELICONE_API_KEY" \ -d '{ "model": "Llama-4-Maverick-17B-128E-Instruct-FP8", "messages": [ { "role": "user", "content": "Hello, how are you?" } ], "max_completion_tokens": 1024, "temperature": 0.7 }'
Verify your requests in Helicone
Was this page helpful?