Quickstart
Get full observability on your AI pipeline in 5 minutes.Prerequisites
- A Trainly account (sign up free)
- Python 3.8+ or Node.js 16+
- An OpenAI, Anthropic, or any LLM API key
Step 1: Install the SDK
Step 2: Get your API key
- Go to your Trainly Dashboard
- Navigate to Settings → API Keys
- Click Create API Key — it starts with
tk_ - Copy your Project ID — it starts with
proj_
Step 3: Add @observe to your AI function
Step 4: View your traces
Open your Trainly Dashboard and navigate to the Trace Explorer. You should see your trace with:- Input/Output — the exact prompt and response
- Model — which LLM was used
- Latency — how long the call took
- Tokens — prompt and completion token counts
- Cost — estimated cost based on model pricing
What’s next?
Core Concepts
Learn about traces, spans, sessions, and scoring.
Python SDK
Deep dive into @observe, manual logging, and agent sessions.
React SDK
Set up tracing in your React app with useTrainlyObserve.
API Reference
Direct REST API access for trace ingestion and analytics.