Anthropic
Anthropic cURL Integration
Use cURL to integrate Anthropic with Helicone to log your Anthropic LLM usage.
Was this page helpful?
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Use cURL to integrate Anthropic with Helicone to log your Anthropic LLM usage.
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?