Musterby Elitery
Integrations

Helicone AI Gateway

Trace Helicone gateway calls in Muster — 100+ models behind a single OpenAI-compatible endpoint.

Helicone ships an AI gateway that exposes 100+ models behind an OpenAI-compatible interface. Trace its calls in Muster via the Muster OpenAI wrapper.

Setup

pip install langfuse openai python-dotenv
# .env
HELICONE_API_KEY=sk-helicone-...
LANGFUSE_SECRET_KEY=sk-lf-...
LANGFUSE_PUBLIC_KEY=pk-lf-...
LANGFUSE_BASE_URL=https://app.getmuster.io
import os
from langfuse.openai import openai

client = openai.OpenAI(
    api_key=os.environ["HELICONE_API_KEY"],
    base_url="https://ai-gateway.helicone.ai/",
)

response = client.chat.completions.create(
    model="gpt-4o",
    messages=[{"role": "user", "content": "Your prompt"}],
    name="generation-name",
)

See also

On this page