Skip to content

Generate

This example assumes using LalalAI; is in scope and apiKey contains your LalalAI API key.

1
2
3
4
5
6
7
8
9
var apiKey =
    Environment.GetEnvironmentVariable("LALALAI_API_KEY") is { Length: > 0 } value
        ? value
        : throw new AssertInconclusiveException("LALALAI_API_KEY environment variable is not found.");

using var client = new LalalAIClient(apiKey);

// The client provides methods for uploading files, splitting stems,
// cleaning voice, changing voice, and checking task status.