This guide will have you running your first episode in under 5 minutes.

Prerequisites

  • An API key from the Labs Portal
  • Python 3.11+ (or any HTTP client)
  • An active subscription to at least one collection

Step 1: Get Your API Key

  1. Log in to the Labs Portal
  2. Navigate to API Keys
  3. Click Create New Key
  4. Copy and save your key (it won’t be shown again)

Step 2: Browse Available Scenarios

First, let’s see what collections you have access to:

Step 3: Create an Episode

Pick a scenario and create a training episode:

Step 4: Submit Turns

Now submit your model’s responses and collect rewards:

Step 5: Use Tool Calls (Optional)

Some scenarios have tools (artifacts to create, decisions to make). Tool calls are attached to the assistant message:

Complete Example

Here’s a full training loop (pseudocode - replace your_model with your actual model):

Next Steps

Integration Guides

Set up with TRL, OpenRLHF, or NeMo-Aligner

API Reference

Full endpoint documentation

Concepts

Understand episodes, rewards, and tools

Best Practices

Tips for effective training