Getting started

Get up and running with MLPipeline Cloud in 5 minutes.

1. Install the SDK

pip install promptlayer-hub

2. Get your API key

Go to your dashboard → Settings → API Keys → Create new key.

3. Send your first prompt

from promptlayer_hub import Client

client = Client(api_key="your-key-here")

result = client.run(
    prompt_name="customer-support/greeting",
    variables={"customer_name": "Alice"},
)
print(result.response)

4. Track it in dashboard

Every call is automatically logged. Navigate to the Executions tab to see latency, cost, and full input/output.

5. Set up evaluations

client.evaluate(
    prompt_name="customer-support/greeting",
    evaluator="llm-as-judge",
    rubric="Response should be polite, helpful, and under 100 words.",
)

Next steps