Integrations
BytePlus (ByteDance Ark)
Trace BytePlus Ark model calls in Muster via the OpenAI-compatible API.
BytePlus Ark is ByteDance's enterprise model platform with an OpenAI-compatible endpoint.
Setup
%pip install langfuse openai --upgradeimport os
os.environ["LANGFUSE_PUBLIC_KEY"] = "pk-lf-..."
os.environ["LANGFUSE_SECRET_KEY"] = "sk-lf-..."
os.environ["LANGFUSE_BASE_URL"] = "https://app.getmuster.io"
os.environ["ARK_API_KEY"] = "..."from langfuse.openai import OpenAI
client = OpenAI(
base_url="https://ark.ap-southeast.bytepluses.com/api/v3",
api_key=os.environ["ARK_API_KEY"],
)
response = client.chat.completions.create(
model="your-byteplus-model-id",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)