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
TypestringThe type of Civitai resource (e.g., "model", "lora"). Maps to JSON property "type".
ModelVersionIdlong?The unique identifier of the model version used in generation. Maps to JSON property "modelVersionId".
ModelVersionNamestringThe human-readable name of the model version. Maps to JSON property "modelVersionName".
Weightdecimal?The weight or influence of the resource in the generation. Maps to JSON property "weight".
Strengthdecimal?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
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
Type
The type of Civitai resource (e.g., "model", "lora"). Maps to JSON property "type".
[JsonPropertyName("type")]
public string? Type { get; init; }
Property Value
Weight
The weight or influence of the resource in the generation. Maps to JSON property "weight".
[JsonPropertyName("weight")]
public decimal? Weight { get; init; }