horde_sdk.ai_horde_api.apimodels.alchemy.pop¶
AlchemyFormPayloadStable ¶
Bases: HordeAPIObjectBaseModel
Per-form settings carried alongside an alchemy form.
v2 API Model: ModelInterrogationFormPayloadStable
Source code in horde_sdk/ai_horde_api/apimodels/alchemy/pop.py
control_type
class-attribute
instance-attribute
¶
For the annotation form, the controlnet control-map type to produce.
additionalProp1
class-attribute
instance-attribute
¶
Currently unsupported.
additionalProp2
class-attribute
instance-attribute
¶
Currently unsupported.
additionalProp3
class-attribute
instance-attribute
¶
Currently unsupported.
AlchemyPopFormPayload ¶
Bases: HordeAPIObjectBaseModel, JobRequestMixin
Contains the data for a single alchemy generation form for workers (pop).
v2 API Model: InterrogationPopFormPayload
Source code in horde_sdk/ai_horde_api/apimodels/alchemy/pop.py
form
class-attribute
instance-attribute
¶
The name of this interrogation form.
payload
class-attribute
instance-attribute
¶
The setting for this interrogation form.
r2_upload
class-attribute
instance-attribute
¶
The URL in which the post-processed image can be uploaded.
source_image
class-attribute
instance-attribute
¶
The URL From which the source image can be downloaded.
get_api_model_name
classmethod
¶
validate_form ¶
Ensure that the form is a known alchemy type.
Source code in horde_sdk/ai_horde_api/apimodels/alchemy/pop.py
NoValidAlchemyFound ¶
Bases: HordeAPIObjectBaseModel
The number of jobs this worker was not eligible for, and why.
v2 API Model: NoValidInterrogationsFound
Source code in horde_sdk/ai_horde_api/apimodels/alchemy/pop.py
bridge_version
class-attribute
instance-attribute
¶
bridge_version: int | None = Field(
default=None,
description="How many waiting requests were skipped because they require a higher version of the bridge than this worker is running (upgrade if you see this in your skipped list).",
examples=[0],
ge=0,
)
How many waiting requests were skipped because they require a higher version of the bridge than this worker is running (upgrade if you see this in your skipped list).
untrusted
class-attribute
instance-attribute
¶
untrusted: int | None = Field(
default=None,
description="How many waiting requests were skipped because they demanded a trusted worker which this worker is not.",
ge=0,
)
How many waiting requests were skipped because they demanded a trusted worker which this worker is not.
worker_id
class-attribute
instance-attribute
¶
How many waiting requests were skipped because they demanded a specific worker.
get_api_model_name
classmethod
¶
__eq__ ¶
Source code in horde_sdk/ai_horde_api/apimodels/alchemy/pop.py
AlchemyJobPopResponse ¶
Bases: HordeResponseBaseModel, ResponseRequiringFollowUpMixin
Contains job data for workers, if any were available. Also contains data for jobs this worker was skipped for.
This is the key response type for all alchemy workers as it contains all assignment data for the worker.
Represents the data returned from the /v2/interrogate/pop endpoint with http status code 200.
v2 API Model: InterrogationPopPayload
Source code in horde_sdk/ai_horde_api/apimodels/alchemy/pop.py
147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 | |
forms
class-attribute
instance-attribute
¶
The forms that to be generated
skipped
class-attribute
instance-attribute
¶
The requests that were skipped because this worker were not eligible for them.
get_api_model_name
classmethod
¶
get_follow_up_default_request_type
classmethod
¶
get_follow_up_failure_cleanup_request_type
classmethod
¶
get_follow_up_failure_cleanup_params ¶
Source code in horde_sdk/ai_horde_api/apimodels/alchemy/pop.py
ignore_failure ¶
get_follow_up_returned_params ¶
Source code in horde_sdk/ai_horde_api/apimodels/alchemy/pop.py
get_follow_up_request_types
classmethod
¶
Return a list of all the possible follow up request types for this response.
Source code in horde_sdk/ai_horde_api/apimodels/alchemy/pop.py
__eq__ ¶
Source code in horde_sdk/ai_horde_api/apimodels/alchemy/pop.py
AlchemyPopRequest ¶
Bases: BaseAIHordeRequest, APIKeyAllowedInRequestMixin
Request additional jobs, if any are available, for an alchemy worker.
This is the key request type for all alchemy workers as it requests all available jobs for the worker.
Represents a POST request to the /v2/interrogate/pop endpoint.
v2 API Model: InterrogationPopInput
Source code in horde_sdk/ai_horde_api/apimodels/alchemy/pop.py
bridge_agent
class-attribute
instance-attribute
¶
bridge_agent: str = Field(
default="unknown",
examples=[
"AI Horde Worker reGen:4.1.0:https://github.com/Haidra-Org/horde-worker-reGen"
],
max_length=1000,
)
The agent string for the bridge, in the format name:version:url or contact info.
name
instance-attribute
¶
The name of the request. This is used to identify the request in the logs.
priority_usernames
instance-attribute
¶
The usernames that should be prioritized for this request.
forms
instance-attribute
¶
The types of alchemy that should be generated.
annotation_types
class-attribute
instance-attribute
¶
The annotation control types this worker can fulfil, when it offers the annotation form.
threads
class-attribute
instance-attribute
¶
The number of threads to report that this bridge is using to the API.
max_tiles
class-attribute
instance-attribute
¶
The maximum number of 512x512 tiles that this worker can process.