This example assumes using JasperAI; is in scope and apiKey contains your JasperAI API key.
123456789
varapiKey=Environment.GetEnvironmentVariable("JASPERAI_API_KEY")is{Length:>0}value?value:thrownewAssertInconclusiveException("JASPERAI_API_KEY environment variable is not found.");usingvarclient=newJasperAIClient(apiKey);// The client provides access to all Jasper AI API endpoints// through sub-clients: Command, Tasks, Knowledge, Voices, Styles, Documents, Users, Audiences, Usage.