Table of Contents

Class CivitaiResource

Namespace
CivitaiSharp.Core.Models
Assembly
CivitaiSharp.Core.dll

A Civitai resource reference used in image generation metadata.

public sealed record CivitaiResource : IEquatable<CivitaiResource>
Inheritance
CivitaiResource
Implements
Inherited Members

Constructors

CivitaiResource(string?, long?, string?, decimal?, decimal?)

A Civitai resource reference used in image generation metadata.

public CivitaiResource(string? Type, long? ModelVersionId, string? ModelVersionName, decimal? Weight, decimal? Strength)

Parameters

Type string

The type of Civitai resource (e.g., "model", "lora"). Maps to JSON property "type".

ModelVersionId long?

The unique identifier of the model version used in generation. Maps to JSON property "modelVersionId".

ModelVersionName string

The human-readable name of the model version. Maps to JSON property "modelVersionName".

Weight decimal?

The weight or influence of the resource in the generation. Maps to JSON property "weight".

Strength decimal?

The strength or intensity at which the resource was applied. Maps to JSON property "strength".

Properties

ModelVersionId

The unique identifier of the model version used in generation. Maps to JSON property "modelVersionId".

[JsonPropertyName("modelVersionId")]
public long? ModelVersionId { get; init; }

Property Value

long?

ModelVersionName

The human-readable name of the model version. Maps to JSON property "modelVersionName".

[JsonPropertyName("modelVersionName")]
public string? ModelVersionName { get; init; }

Property Value

string

Strength

The strength or intensity at which the resource was applied. Maps to JSON property "strength".

[JsonPropertyName("strength")]
public decimal? Strength { get; init; }

Property Value

decimal?

Type

The type of Civitai resource (e.g., "model", "lora"). Maps to JSON property "type".

[JsonPropertyName("type")]
public string? Type { get; init; }

Property Value

string

Weight

The weight or influence of the resource in the generation. Maps to JSON property "weight".

[JsonPropertyName("weight")]
public decimal? Weight { get; init; }

Property Value

decimal?