consts
AI-Horde specific constants, including enums defined on the API.
GENERATION_MAX_LIFE
module-attribute
The maximum time for the life of a generation request in seconds, minus 30 seconds to account for network latency.
This is the amount of time that passes before the server will delete the request.
DEFAULT_POST_PROCESSOR_ORDER
module-attribute
The default post processor order.
AI_HORDE_WORKER_TYPES
Bases: StrEnum
The worker types that are known to the API.
Source code in horde_sdk/ai_horde_api/consts.py
interrogation
class-attribute
instance-attribute
Alchemy/Interrogation worker.
GENERATION_STATE
Bases: StrEnum
The generation states that are known to the API.
(ok, censored, faulted, etc...)
Source code in horde_sdk/ai_horde_api/consts.py
ok
class-attribute
instance-attribute
The generation was successful. It still may have encountered warnings.
faulted
class-attribute
instance-attribute
The generation encountered an error and was cancelled. It usually is retried automatically.
csam
class-attribute
instance-attribute
The generation was flagged as CSAM and automatically censored.
waiting
class-attribute
instance-attribute
The generation is waiting for a worker to be assigned.
processing
class-attribute
instance-attribute
The generation is being processed by a worker.
partial
class-attribute
instance-attribute
The generation was returned partially complete.
cancelled
class-attribute
instance-attribute
The generation was cancelled by the user.
METADATA_TYPE
Bases: StrEnum
The generation metadata types that are known to the API.
(lora, ti, censorship, etc)
Source code in horde_sdk/ai_horde_api/consts.py
source_image
class-attribute
instance-attribute
The source image for img2img, inpainting, outpainting, or other source image processing.
source_mask
class-attribute
instance-attribute
The mask for img2img, inpainting, outpainting, or other source image processing.
extra_source_images
class-attribute
instance-attribute
Extra source images for the request.
batch_index
class-attribute
instance-attribute
The index of the batch in a batch request.
METADATA_VALUE
Bases: StrEnum
The generation metadata values that are known to the API.
(download_failed, baseline_mismatch, etc)
Source code in horde_sdk/ai_horde_api/consts.py
download_failed
class-attribute
instance-attribute
Something in the request couldn't be downloaded.
parse_failed
class-attribute
instance-attribute
Something in the request couldn't be parsed.
baseline_mismatch
class-attribute
instance-attribute
The model targeted wasn't the correct baseline (e.g., SD15 when the request required SDXL).
csam
class-attribute
instance-attribute
The generation was flagged as CSAM and automatically censored.
MODEL_STATE
Bases: StrEnum
The model states that are known to the API.
Source code in horde_sdk/ai_horde_api/consts.py
WarningCode
Bases: StrEnum
The warning codes that are known to the API.
Source code in horde_sdk/ai_horde_api/consts.py
NoAvailableWorker
class-attribute
instance-attribute
There are no available workers for the request.
ClipSkipMismatch
class-attribute
instance-attribute
The clip skip value doesn't match the model's preferred value.
StepsTooFew
class-attribute
instance-attribute
The number of steps are lower than recommended.
StepsTooMany
class-attribute
instance-attribute
The number of steps are higher than recommended.
CfgScaleMismatch
class-attribute
instance-attribute
The scale in the CFG doesn't match the model's preferred scale.
CfgScaleTooSmall
class-attribute
instance-attribute
The scale in the CFG is too small for the model to handle.
CfgScaleTooLarge
class-attribute
instance-attribute
The scale in the CFG is too large for the model to handle.
SamplerMismatch
class-attribute
instance-attribute
The sampler specified doesn't match the model's preferred sampler.
RC
Bases: StrEnum
The return codes (typically errors, sometimes warnings) that are known to the API.
Source code in horde_sdk/ai_horde_api/consts.py
136 137 138 139 140 141 142 143 144 145 146 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 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 | |
MissingPrompt
class-attribute
instance-attribute
The prompt is missing but is required.
CorruptPrompt
class-attribute
instance-attribute
The prompt couldn't be parsed.
KudosValidationError
class-attribute
instance-attribute
The number of kudos for the requesting user is too low.
InvalidPromptSize
class-attribute
instance-attribute
The prompt is too short or too long.
TooManySteps
class-attribute
instance-attribute
The number of steps too high to be reasonable.
ProfaneWorkerName
class-attribute
instance-attribute
The worker name contains profanity or rude language.
ProfaneBridgeAgent
class-attribute
instance-attribute
The bridge agent contains profanity or rude language.
ProfaneWorkerInfo
class-attribute
instance-attribute
The worker info contains profanity or rude language.
ProfaneUserName
class-attribute
instance-attribute
The user name contains profanity or rude language.
ProfaneUserContact
class-attribute
instance-attribute
The user contact contains profanity or rude language.
ProfaneAdminComment
class-attribute
instance-attribute
The admin comment contains profanity or rude language.
ProfaneTeamName
class-attribute
instance-attribute
The team name contains profanity or rude language.
ProfaneTeamInfo
class-attribute
instance-attribute
The team info contains profanity or rude language.
TooLongWorkerName
class-attribute
instance-attribute
The worker name is too long.
TooLongUserName
class-attribute
instance-attribute
The user name is too long.
NameAlreadyExists
class-attribute
instance-attribute
The name is already in use.
WorkerNameAlreadyExists
class-attribute
instance-attribute
The worker name is already in use.
TeamNameAlreadyExists
class-attribute
instance-attribute
The team name is already in use.
PolymorphicNameConflict
class-attribute
instance-attribute
The name conflicts with a polymorphic name in the database.
ImageValidationFailed
class-attribute
instance-attribute
The image couldn't be parsed. This may be due to a corrupt image.
SourceImageResolutionExceeded
class-attribute
instance-attribute
SourceImageUrlInvalid
class-attribute
instance-attribute
The source image URL is invalid or is not accessible.
InpaintingMissingMask
class-attribute
instance-attribute
Inpainting was selected but no mask was provided.
SourceImageRequiredForModel
class-attribute
instance-attribute
The model requires a source image.
UnexpectedModelName
class-attribute
instance-attribute
The model name is unexpected or unknown.
TooManyUpscalers
class-attribute
instance-attribute
The number of upscalers in the request is too high.
InvalidAPIKey
class-attribute
instance-attribute
The API key specified is invalid.
WrongCredentials
class-attribute
instance-attribute
The API key specified doesn't match the target action.
NotModerator
class-attribute
instance-attribute
Only moderators can perform this action.
NotTrusted
class-attribute
instance-attribute
Only trusted users can perform this action.
KudosUpfront
class-attribute
instance-attribute
The user must pay kudos upfront. This is typically only for anonymous users surpassing a certain kudos cost for their request.
SharedKeyExpired
class-attribute
instance-attribute
The shared key has expired.
SharedKeyInsufficientKudos
class-attribute
instance-attribute
The shared key doesn't have enough kudos to perform this action
InvalidJobID
class-attribute
instance-attribute
The job ID was not found, has timed out or has been deleted.
RequestNotFound
class-attribute
instance-attribute
The request was not found, has timed out or has been deleted.
KudosTransferToAnon
class-attribute
instance-attribute
The user is trying to transfer kudos to the anonymous user.
KudosTransferToSelf
class-attribute
instance-attribute
The user is trying to transfer kudos to themselves.
KudosTransferNotEnough
class-attribute
instance-attribute
The user doesn't have enough kudos to transfer.
NegativeKudosTransfer
class-attribute
instance-attribute
The user is trying to transfer a negative amount of kudos.
TooManyLoras
class-attribute
instance-attribute
The number of LORAs in the request is too high.
BadLoraVersion
class-attribute
instance-attribute
The LORA version specficied is not valid.
TooManyTIs
class-attribute
instance-attribute
The number of TIs in the request is too high.
BadCFGDecimals
class-attribute
instance-attribute
The number of decimals in the CFG is invalid.
BadCFGNumber
class-attribute
instance-attribute
The number in the CFG is invalid.
BadClientAgent
class-attribute
instance-attribute
The client agent is invalid.
SpecialModelNeedsSpecialUser
class-attribute
instance-attribute
SpecialFieldNeedsSpecialUser
class-attribute
instance-attribute
EducationCannotSendKudos
class-attribute
instance-attribute
The account is an education account and cannot send kudos.
OnlyServiceAccountProxy
class-attribute
instance-attribute
"Only accounts marked as service accounts can use this field.
TooManyStopSequences
class-attribute
instance-attribute
The text request has too many stop sequences.
ExcessiveStopSequence
class-attribute
instance-attribute
The text request has an excessive stop sequence.
PROGRESS_STATE
Bases: StrEnum
The state of a request as seen on the server.
Source code in horde_sdk/ai_horde_api/consts.py
MODEL_TYPE
Bases: StrEnum
The model types that are known to the API.
Source code in horde_sdk/ai_horde_api/consts.py
POST_PROCESSOR_ORDER_TYPE
Bases: StrEnum
The post processor order types that are known to the API.
(facefixers_first, upscalers_first, custom, etc)
Source code in horde_sdk/ai_horde_api/consts.py
facefixers_first
class-attribute
instance-attribute
The facefixers are processed first.
upscalers_first
class-attribute
instance-attribute
The upscalers are processed first.