Getting Started
Dev Integrations
- Generic Gateway
- Async Logging
- OpenAI
- Azure OpenAI
- Anthropic
- Ollama
- AWS Bedrock
- Gemini
- Vercel AI
- Anyscale
- Together AI
- Hyperbolic
- Groq
- Instructor
- Deepinfra
- OpenRouter
- LiteLLM
- Fireworks AI
- Vector DB
- Tools
Other Integrations
Features
Anthropic
Change the api url and add a Helicone-Auth header
import anthropic
client = anthropic.Client(
api_key="<Anthropic API Key>",
base_url="https://anthropic.helicone.ai"
)
res = client._request_as_json(
"post",
"v1/complete",
params={
"prompt": f"{anthropic.HUMAN_PROMPT} How many toes do dogs have?{anthropic.AI_PROMPT}",
"stop_sequences": [anthropic.HUMAN_PROMPT],
"model": "claude-v1",
"max_tokens_to_sample": 300,
},
headers={
"Helicone-Auth": "Bearer <HELICONE_API_KEY>"
}
)
Was this page helpful?