horde_sdk.ai_horde_api.apimodels.status¶
AIHordeHeartbeatResponse ¶
Bases: HordeResponseBaseModel, ContainsMessageResponseMixin
Returns the status of the AI Horde API and a message if present.
Represents the data returned from the /v2/status/heartbeat endpoint with http status code 200.
v2 API Model: _ANONYMOUS_MODEL
Source code in horde_sdk/ai_horde_api/apimodels/status.py
version
instance-attribute
¶
The version of the AI Horde API that this node is running.
AIHordeHeartbeatRequest ¶
Bases: BaseAIHordeRequest
Request a heartbeat from the AI Horde API, suitable for checking if the API is up and running.
These requests may also return other meta information, such as the version of the API.
Represents a GET request to the /v2/status/heartbeat endpoint.
Source code in horde_sdk/ai_horde_api/apimodels/status.py
HordePerformanceResponse ¶
Bases: HordeResponseBaseModel
Information about the performance of the horde, such as worker counts and queue sizes.
Represents the data returned from the /v2/status/performance endpoint with http status code 200.
v2 API Model: HordePerformance
Source code in horde_sdk/ai_horde_api/apimodels/status.py
interrogator_count
class-attribute
instance-attribute
¶
interrogator_count: int | None = Field(
default=None,
description="How many workers are actively processing image interrogations in this {horde_noun} in the past 5 minutes.",
)
How many workers are actively processing image interrogations in this {horde_noun} in the past 5 minutes.
interrogator_thread_count
class-attribute
instance-attribute
¶
interrogator_thread_count: int | None = Field(
default=None,
description="How many worker threads are actively processing image interrogation in this {horde_noun} in the past 5 minutes.",
)
How many worker threads are actively processing image interrogation in this {horde_noun} in the past 5 minutes.
past_minute_megapixelsteps
class-attribute
instance-attribute
¶
How many megapixelsteps this horde generated in the last minute.
past_minute_tokens
class-attribute
instance-attribute
¶
How many tokens this horde generated in the last minute.
queued_forms
class-attribute
instance-attribute
¶
The amount of image interrogations waiting and processing currently in this horde.
queued_megapixelsteps
class-attribute
instance-attribute
¶
The amount of megapixelsteps in waiting and processing requests currently in this horde.
queued_requests
class-attribute
instance-attribute
¶
The amount of waiting and processing image requests currently in this horde.
queued_text_requests
class-attribute
instance-attribute
¶
The amount of waiting and processing text requests currently in this horde.
queued_tokens
class-attribute
instance-attribute
¶
The amount of tokens in waiting and processing requests currently in this horde.
text_thread_count
class-attribute
instance-attribute
¶
text_thread_count: int | None = Field(
default=None,
description="How many worker threads are actively processing prompt generations in this {horde_noun} in the past 5 minutes.",
)
How many worker threads are actively processing prompt generations in this {horde_noun} in the past 5 minutes.
text_worker_count
class-attribute
instance-attribute
¶
How many workers are actively processing prompt generations in this horde in the past 5 minutes.
thread_count
class-attribute
instance-attribute
¶
thread_count: int | None = Field(
default=None,
description="How many worker threads are actively processing prompt generations in this {horde_noun} in the past 5 minutes.",
)
How many worker threads are actively processing prompt generations in this {horde_noun} in the past 5 minutes.
worker_count
class-attribute
instance-attribute
¶
How many workers are actively processing prompt generations in this horde in the past 5 minutes.
HordePerformanceRequest ¶
Bases: BaseAIHordeRequest
Request performance information about the horde, such as worker counts and queue sizes.
Represents a GET request to the /v2/status/performance endpoint.
Source code in horde_sdk/ai_horde_api/apimodels/status.py
Newspiece ¶
Bases: HordeAPIObjectBaseModel
A piece of news from the horde, such as updates or other news from the AI-Horde team.
v2 API Model: Newspiece
Source code in horde_sdk/ai_horde_api/apimodels/status.py
date_published
class-attribute
instance-attribute
¶
The date this newspiece was published.
importance
class-attribute
instance-attribute
¶
How critical this piece of news is.
newspiece
class-attribute
instance-attribute
¶
The actual piece of news.
tags
class-attribute
instance-attribute
¶
The tags associated with this newspiece.
title
class-attribute
instance-attribute
¶
The title of this newspiece.
more_info_urls
class-attribute
instance-attribute
¶
The URLs for more information about this newspiece.
NewsResponse ¶
Bases: HordeResponseRootModel[list[Newspiece]]
A list of newspieces from the horde, which are updates or other news from the AI-Horde team.
Represents the data returned from the /v2/status/news endpoint with http status code 200.
Source code in horde_sdk/ai_horde_api/apimodels/status.py
NewsRequest ¶
Bases: BaseAIHordeRequest
Request news from the horde, such as updates or other news from the AI-Horde team.
Represents a GET request to the /v2/status/news endpoint.
Source code in horde_sdk/ai_horde_api/apimodels/status.py
HordeStatusModelsAllResponse ¶
Bases: HordeResponseRootModel[list[ActiveModel]]
A list of details about active models in the horde.
Represents the data returned from the /v2/status/models endpoint with http status code 200.
Source code in horde_sdk/ai_horde_api/apimodels/status.py
HordeStatusModelsAllRequest ¶
Bases: BaseAIHordeRequest
Request details about models in the horde.
Represents a GET request to the /v2/status/models endpoint.
Source code in horde_sdk/ai_horde_api/apimodels/status.py
type_
class-attribute
instance-attribute
¶
type_: MODEL_TYPE = Field(
default=MODEL_TYPE.image,
examples=[MODEL_TYPE.image, MODEL_TYPE.text],
alias="type",
)
The type of model to filter by.
min_count
class-attribute
instance-attribute
¶
Filter only models that have at least this amount of threads serving.
max_count
class-attribute
instance-attribute
¶
Filter only models that have at most this amount of threads serving.
model_state
class-attribute
instance-attribute
¶
If 'known', only show stats for known models in the model reference. If 'custom' only show stats for custom models. If 'all' shows stats for all models.
get_api_model_name
classmethod
¶
get_http_method
classmethod
¶
get_api_endpoint_subpath
classmethod
¶
get_default_success_response_type
classmethod
¶
HordeStatusModelsSingleResponse ¶
Bases: HordeResponseRootModel[list[ActiveModel]]
A list of details about a single active model in the horde.
Represents the data returned from the /v2/status/models/{model_name} endpoint with http status code 200.
Source code in horde_sdk/ai_horde_api/apimodels/status.py
HordeStatusModelsSingleRequest ¶
Bases: BaseAIHordeRequest
Request details about a single model in the horde by its name.
Represents a GET request to the /v2/status/models/{model_name} endpoint.
Source code in horde_sdk/ai_horde_api/apimodels/status.py
HordeModes ¶
Bases: HordeAPIObjectBaseModel
The current modes of the horde, such as maintenance mode, invite-only mode, and raid mode.
v2 API Model: HordeModes
Source code in horde_sdk/ai_horde_api/apimodels/status.py
SamplerConstraintsResponse ¶
Bases: HordeResponseRootModel[SamplerConstraintsDocument]
The sampler constraints document this API publishes.
Represents the data returned from the /v2/status/sampler_constraints endpoint with http status code 200.
v2 API Model: SamplerConstraintsDocument
Source code in horde_sdk/ai_horde_api/apimodels/status.py
root
instance-attribute
¶
The whole sampler constraints document, keyed by the API's own request field names.
SamplerConstraintsRequest ¶
Bases: BaseAIHordeRequest
Request the sampler constraints document describing which sampler settings this API accepts.
Represents a GET request to the /v2/status/sampler_constraints endpoint.