horde_sdk.ai_horde_api.apimodels.generate.rate¶
AestheticRating ¶
Bases: HordeAPIObjectBaseModel
Represents an aesthetic rating for an image.
v2 API Model: AestheticRating
Source code in horde_sdk/ai_horde_api/apimodels/generate/rate.py
id_
class-attribute
instance-attribute
¶
The UUID of image being rated.
artifacts
instance-attribute
¶
The artifacts rating for this image. 0 for flawless generation that perfectly fits to the prompt. 1 for small, hardly recognizable flaws. 2 small flaws that can easily be spotted, but don not harm the aesthetic experience. 3 for flaws that look obviously wrong, but only mildly harm the aesthetic experience. 4 for flaws that look obviously wrong & significantly harm the aesthetic experience. 5 for flaws that make the image look like total garbage.
AestheticsPayload ¶
Bases: HordeAPIObjectBaseModel
Represents the payload for rating images.
v2 API Model: AestheticsPayload
Source code in horde_sdk/ai_horde_api/apimodels/generate/rate.py
best
class-attribute
instance-attribute
¶
The UUID of the best image in this generation batch (only used when 2+ images generated). If 2+ aesthetic ratings are also provided, then they take precedence if they're not tied.
ratings
instance-attribute
¶
The aesthetic ratings for each image in the batch.
RateResponse ¶
Bases: HordeResponseBaseModel
The response to a rating submission, including the reward amount.
Represents the data returned from the /v2/generate/rate/{id} endpoint with http status code 200.
v2 API Model: GenerationSubmitted
Source code in horde_sdk/ai_horde_api/apimodels/generate/rate.py
RateRequest ¶
Bases: AestheticsPayload, BaseAIHordeRequest
Submit ratings for a batch of images.
Represents a POST request to the /v2/generate/rate/{id} endpoint.
v2 API Model: AestheticsPayload