Sign into the Butter dashboard. This will create an empty cache, and an API key you’ll use to authenticate requests.To view your active API keys, visit the Keys page.Make sure to save your Butter and other relevant API keys accordingly.
curl -X POST $BASE_URL/v1/chat/completions \-H "Content-Type: application/json" \-H "Authorization: Bearer $OPENAI_API_KEY" \-H "Butter-Auth: Bearer $BUTTER_API_KEY" \-d '{"messages":[{"role":"user", "content":"What is the English word for mantequilla?"}],"model":"gpt-4o"}'
Visit the Requests feed to view your requests and their cache status.The cache is a tree of all message sequences that have been seen. You can view a message’s respective node in the tree by clicking on it from the request view.