Table of Contents

Class ImageMetaResource

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

A resource reference in image generation metadata (different from CivitaiResource). This represents resources embedded in the generation workflow, typically from A1111.

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

Constructors

ImageMetaResource(string?, string?, string?, decimal?)

A resource reference in image generation metadata (different from CivitaiResource). This represents resources embedded in the generation workflow, typically from A1111.

public ImageMetaResource(string? Name, string? Type, string? Hash, decimal? Weight)

Parameters

Name string

The name of the resource used in generation. Maps to JSON property "name".

Type string

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

Hash string

The hash value identifying the resource. Maps to JSON property "hash".

Weight decimal?

The weight or strength at which this resource was applied during generation. Maps to JSON property "weight".

Properties

Hash

The hash value identifying the resource. Maps to JSON property "hash".

[JsonPropertyName("hash")]
public string? Hash { get; init; }

Property Value

string

Name

The name of the resource used in generation. Maps to JSON property "name".

[JsonPropertyName("name")]
public string? Name { get; init; }

Property Value

string

Type

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

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

Property Value

string

Weight

The weight or strength at which this resource was applied during generation. Maps to JSON property "weight".

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

Property Value

decimal?