Class ApiClient
- Namespace
- CivitaiSharp.Core
- Assembly
- CivitaiSharp.Core.dll
Primary client facade for the Civitai public API. All builder properties return cached, immutable, thread-safe instances that can be safely shared across threads. Each fluent method on a builder returns a new instance with the updated configuration, leaving the original builder unchanged. Obtain an instance through dependency injection using AddCivitaiApi(IServiceCollection, Action<ApiOptions>).
public sealed class ApiClient : IApiClient
- Inheritance
-
ApiClient
- Implements
- Inherited Members
Properties
Creators
Gets a cached, immutable, thread-safe request builder for creators.
public CreatorBuilder Creators { get; }
Property Value
Images
Gets a cached, immutable, thread-safe request builder for images.
public ImageBuilder Images { get; }
Property Value
Models
Gets a cached, immutable, thread-safe request builder for models.
public ModelBuilder Models { get; }
Property Value
Tags
Gets a cached, immutable, thread-safe request builder for tags.
public TagBuilder Tags { get; }