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.
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.
WORKER_TYPE
Bases: StrEnum
The worker types that are known to the API.
(alchemy, image, text, etc...)
Source code in horde_sdk/ai_horde_api/consts.py
interrogation
class-attribute
instance-attribute
Alchemy/Interrogation worker.
ALCHEMY_FORMS
Bases: StrEnum
Forms (type of services) for alchemist type workers.
(nsfw, caption, interrogation, post_process, etc...)
Source code in horde_sdk/ai_horde_api/consts.py
KNOWN_SAMPLERS
Bases: StrEnum
The samplers that are known to the API.
(k_lms, k_heun, DDIM, etc)
Source code in horde_sdk/ai_horde_api/consts.py
KNOWN_CONTROLNETS
Bases: StrEnum
The controlnets that are known to the API.
Source code in horde_sdk/ai_horde_api/consts.py
KNOWN_WORKFLOWS
KNOWN_SOURCE_PROCESSING
Bases: StrEnum
The source processing methods that are known to the API.
(txt2img, img2img, inpainting, etc)
Source code in horde_sdk/ai_horde_api/consts.py
KNOWN_UPSCALERS
Bases: StrEnum
The upscalers that are known to the API.
(RealESRGAN_x4plus, RealESRGAN_x2plus, RealESRGAN_x4plus_anime_6B, etc)
Source code in horde_sdk/ai_horde_api/consts.py
KNOWN_FACEFIXERS
Bases: StrEnum
The facefixers that are known to the API.
(CodeFormers, etc)
Source code in horde_sdk/ai_horde_api/consts.py
KNOWN_MISC_POST_PROCESSORS
Bases: StrEnum
The misc post processors that are known to the API.
(strip_background, etc)
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.
KNOWN_CLIP_BLIP_TYPES
Bases: StrEnum
The CLIP and BLIP models that are known to the API.
Source code in horde_sdk/ai_horde_api/consts.py
KNOWN_INTERROGATORS
KNOWN_ALCHEMY_TYPES
Bases: StrEnum
The alchemy processes (types) that are known to the API.
(caption, GFPGAN, strip_background, etc)
Source code in horde_sdk/ai_horde_api/consts.py
RealESRGAN_x4plus_anime_6B
class-attribute
instance-attribute
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
MODEL_TYPE
Bases: StrEnum
The model types 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
321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 | |
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.