Skip to main content
Langfuse is an open-source LLM engineering platform for tracing, a prompt playground, and LLM-as-a-judge evaluation. Langfuse accepts any OpenAI-compatible provider through a custom base URL, so SambaCloud models work today with no Langfuse code changes. This guide covers the Playground, Experiments (dataset runs), LLM-as-a-judge evaluators, and where their results land in Scores.
This connection uses Langfuse’s per-project LLM Connections, stored under Project Settings. A separate, instance-wide configuration (LANGFUSE_AI_PROVIDER / LANGFUSE_AI_BASE_URL) can also point Langfuse’s own Assistant at SambaCloud on self-hosted deployments. See Advanced: instance-wide Assistant below.

Prerequisites

  • A SambaCloud account and API key.
  • A Langfuse project (cloud or self-hosted) where you have the Owner or Admin role. LLM Connections require the llmApiKeys:create permission. A Member or Viewer role can see existing connections but won’t see the “Add LLM Connection” button.

Setup

1

Open LLM Connections

In your Langfuse project, go to Settings → LLM Connections and click Add LLM Connection.
Langfuse Project Settings LLM Connections page before any connection exists, showing an empty table with None and the Add LLM Connection button
2

Configure the connection

  • LLM adapter: openai (Langfuse routes any non-api.openai.com base URL through its OpenAI-compatible client automatically)
  • Provider name: sambanova (or any label; this is just how it appears in model pickers)
  • API Key: your SambaCloud API key
  • Expand Show advanced settings:
    • API Base URL: https://api.sambanova.ai/v1
    • Enable default models: turn this off, since it populates OpenAI’s own model list, which doesn’t apply here
    • Custom models: add the SambaCloud model IDs you want to use, for example MiniMax-M3. We recommend MiniMax-M3 as the model to reach for across this guide: Playground, Experiments, and evaluators all worked reliably with it in testing, thanks to its Structured output support.
3

Create the connection

Click Create connection. It appears in the table with your base URL and a masked key.
Langfuse LLM Connections settings page with a sambanova connection configured, adapter openai, base URL https://api.sambanova.ai/v1, and a masked API key

Use it in the Playground

Open Playground, pick your SambaNova connection and the MiniMax-M3 model from the model selector, and ask something like “What are your capabilities?”. A real question gets you a real, readable answer, which is a better sanity check (and a better screenshot) than a throwaway test string.
Langfuse Playground with the sambanova: MiniMax-M3 model selected, the message "What are your capabilities?", and a real response beginning "# My Capabilities" followed by "I'm a versatile AI assistant that can help with a wide range of tasks"

Use it for Experiments (dataset runs)

Open Experiments and click Run experiment → via User Interface → Configure. Pick a prompt, leave (or select) the sambanova provider and MiniMax-M3 model, choose a dataset, optionally attach an evaluator, name the run, and review it before clicking Run Experiment. Langfuse calls the model once per dataset item and records the output, latency, and cost for each row.
Langfuse Experiment results table for a dataset run, showing real MiniMax-M3 outputs matching the expected output for each row: the model's output text Berlin next to expected output Berlin, and output text Paris next to expected output Paris

Use it for LLM-as-a-judge evaluators

Open Evaluators → New evaluator, pick a template (or write your own), and select your SambaNova connection and the MiniMax-M3 model in Step 1: Define evaluation. The Test with sample observations panel on the right lets you run a real call against a sample trace before saving. Saving the evaluator and attaching it to a rule (either “Run evaluator on past observations” for a one-time backfill, or a recurring rule for new observations) puts it to work: every subsequent evaluator run writes a real Score row. Attach an evaluator to an Experiment run instead, and its scores show up right next to each item’s output:
Langfuse Experiment results table showing, for each row, the real MiniMax-M3 output alongside a real "Classify Input Topic" evaluator score of "other" produced by the same model

View evaluator and Experiment results in Scores

Open Scores to see every score MiniMax-M3 has produced, whether from an evaluator rule or a dataset-run experiment, alongside the model’s own reasoning and a link back to the source trace.
Langfuse Scores table filtered to source:EVAL, showing real MiniMax-M3 evaluator scores named Classify Input Topic, each valued "other" with the model's reasoning as a comment and a link to the source trace

Automate this with the API

Prefer scripting the setup instead of clicking through Settings? Langfuse’s public API can create or update an LLM Connection directly, authenticated with a project API key pair:
This upserts on (project, provider), so re-running it with the same provider value updates the existing connection instead of duplicating it. This is handy for re-provisioning a connection after a fresh self-hosted deploy or a local dev reset. It creates the exact same row the UI form does, so anything configured this way works in the Playground, Experiments, and evaluators immediately.

Advanced: instance-wide Assistant

Self-hosted deployments can also point Langfuse’s own Assistant / in-app agent at SambaCloud instance-wide, instead of (or in addition to) a per-project LLM Connection:
“Ask AI” and search-bar AI suggestions are a separate feature gated to Langfuse Cloud regions. They stay unavailable on self-hosted deployments regardless of which provider you configure. This is a Langfuse platform constraint, not specific to SambaNova.

Troubleshooting

LLM Connections require the llmApiKeys:create permission, granted only to the Owner and Admin project roles. A Member or Viewer sees the connections table but not the create button. Ask a project owner to add the connection, or to upgrade your role.
Confirm the API key is a valid, non-expired SambaCloud API key and that API Base URL is exactly https://api.sambanova.ai/v1 (no trailing path, no /chat/completions). An Experiment run can complete with every item recorded as an error and no visible error banner in the Formatted view, so check the Raw output or the item’s error status if a run finishes with unexpectedly high error counts.
We recommend switching to MiniMax-M3 or another catalogue model with Structured output support for this evaluator or dataset run, since its constrained decoding is the better fit for Langfuse’s forced tool-call flow.
Confirm the model ID is listed under Custom models on the connection (Settings → LLM Connections → edit), and that it matches a real SambaCloud model ID exactly. Model IDs are case-sensitive.

Additional resources