This example assumes using ScaleAI; is in scope and apiKey contains your ScaleAI API key.
12345678
varapiKey=Environment.GetEnvironmentVariable("SCALEAI_API_KEY")is{Length:>0}value?value:thrownewAssertInconclusiveException("SCALEAI_API_KEY environment variable is not found.");usingvarclient=newScaleAIClient(apiKey);// The client provides direct access to all Scale AI API endpoints.