Use cURL to integrate Anthropic with Helicone to log your Anthropic LLM usage.
Create an account + Generate an API Key
Modify the API base and add the `Helicone-Auth` header
curl --request POST \ --url https://anthropic.helicone.ai/v1/messages \ --header "Content-Type: application/json" \ --header "Helicone-Auth: Bearer $HELICONE_API_KEY" \ --header "User-Agent: insomnia/8.6.1" \ --header "anthropic-version: 2023-06-01" \ --header "x-api-key: $ANTHROPIC_API_KEY" \ --data '{ "model": "claude-3-opus-20240229", "max_tokens": 50, "system": "Respond only in Spanish.", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Test" } ] } ], "stream": true }'
Was this page helpful?