All features
08A/B TESTS

A/B test prompts in production

Manage prompts as versioned objects and split real traffic across versions with weighted experiments. getPrompt picks a variant, the served version rides along on every trace, and you compare cost and quality side by side — no redeploy to change a wording.

  • Weighted variants — ship a new wording to 10% of traffic before 100%.
  • selectedVariant tells you exactly which version served each request.
  • Link promptVersion onto generations so the split shows up in traces and cost.
  • Promote or roll back instantly by moving a label — no deploy.

Split traffic across versions 🧪

# the Python SDK has no getPrompt yet — resolve over REST (any language)
import requests

r = requests.get(
    "https://www.currai.app/api/public/prompts",
    params={"name": "bmi-intake"},
    auth=("pk-lf-...", "sk-lf-..."),
)
prompt = r.json()  # { version, prompt, selectedVariant, ... }