StabilityAiClient constructor

StabilityAiClient({
  1. required String apiKey,
  2. String baseUrl = "api.stability.ai",
})

Implementation

StabilityAiClient(
    {required String apiKey, String baseUrl = "api.stability.ai"})
    : _baseUrl = baseUrl,
      _apiKey = apiKey {
  _userService = UserService(baseUrl: _baseUrl, secure: _secured);
  _engineService = EngineService(baseUrl: _baseUrl, secure: _secured);
  _generationService = GenerationService(baseUrl: _baseUrl, secure: _secured);
}