1. Create a key
Create a test or live key in the Whitney portal and copy it once. New keys use
whitney_test_… or whitney_live_….
2. Inspect the current contract
The response is an allowlist. Choose a returned model, or let Whitney choose
the provider by sending provider: auto.
3. Create a session
Save the returned ID. Session creation is asynchronous; poll
GET /v1/training/sessions/{session_id} until the status is ready before
creating the run.
When max_cost_microusd is omitted for platform funding, Whitney applies an
organization spend ceiling. Set an explicit max_cost_microusd if you need a
hard ceiling for a single session.
4. Create a LoRA run
Poll the returned run until it can accept operations, then continue with the
SFT or GRPO cookbook.
Creating a session can provision paid provider resources. Always finish or cancel the run and close the session,
including after local failures.