1. Create a key
Create a test or live key in the Whitney portal and copy it once. New keys usewhitney_test_… or whitney_live_….
2. Inspect the current contract
provider: auto.
3. Create a session
GET /v1/training/sessions/{session_id} until the status is ready before
creating the run.
If you also set
provider_preferences to pin a fallback order, its enum is ["modal", "tinker"] only — it never
accepts "auto", even though provider defaults to auto. Sending "auto" in provider_preferences fails request
validation.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.
