horde_sdk.ai_horde_api.apimodels.generate.status¶
Generation ¶
Bases: HordeAPIObjectBaseModel
Mixin that contains common fields for generation responses.
v2 API Model: Generation
Source code in horde_sdk/ai_horde_api/apimodels/generate/status.py
model
class-attribute
instance-attribute
¶
The model which generated this image.
state
class-attribute
instance-attribute
¶
OBSOLETE (Use the gen_metadata field). The state of this generation.
worker_id
class-attribute
instance-attribute
¶
The UUID of the worker which generated this image.
worker_name
class-attribute
instance-attribute
¶
The name of the worker which generated this image.
ImageGeneration ¶
Bases: Generation
Represents an individual image generation in a status response, including the image data.
Represents the individual image generation responses in a ImageGenerateStatusResponse.
v2 API Model: GenerationStable
Source code in horde_sdk/ai_horde_api/apimodels/generate/status.py
id_
class-attribute
instance-attribute
¶
The UUID of this generation. Is always returned as a GenerationID, but can initialized from a str.
censored
instance-attribute
¶
When true this image has been censored by the worker's safety filter.
gen_metadata
class-attribute
instance-attribute
¶
Extra metadata about faulted or defaulted components of the generation
get_api_model_name
classmethod
¶
validate_id ¶
Validate the ID is not an empty string.
Source code in horde_sdk/ai_horde_api/apimodels/generate/status.py
__eq__ ¶
ImageGenerateStatusResponse ¶
Bases: HordeResponseBaseModel, ResponseWithProgressMixin, ResponseGenerationProgressInfoMixin
The current status of an image generation request and the data if it is complete.
Represents the data returned from the following endpoints and http status codes
- /v2/generate/status/{id} | ImageGenerateStatusRequest [GET] -> 200
- /v2/generate/status/{id} | DeleteImageGenerateRequest [DELETE] -> 200
v2 API Model: RequestStatusStable
Source code in horde_sdk/ai_horde_api/apimodels/generate/status.py
generations
class-attribute
instance-attribute
¶
The individual image generation responses in this request.
shared
class-attribute
instance-attribute
¶
If True, These images have been shared with LAION.
get_api_model_name
classmethod
¶
get_finalize_success_request_type
classmethod
¶
is_job_complete ¶
is_job_possible ¶
is_final_follow_up
classmethod
¶
__eq__ ¶
DeleteImageGenerateRequest ¶
Bases: BaseAIHordeRequest, JobRequestMixin
Request to cancel an image generation by ID.
Represents a DELETE request to the /v2/generate/status/{id} endpoint.
Source code in horde_sdk/ai_horde_api/apimodels/generate/status.py
ImageGenerateStatusRequest ¶
Bases: BaseAIHordeRequest, JobRequestMixin
Request the status of an image generation by ID.
Important: This is a rate limited endpoint. Prefer using the check endpoint when simply checking the status.
Use this endpoint when you need to get the resulting image data.
See :class:horde_sdk.api_horde_api.apimodels.generate.check.ImageGenerateCheckRequest
for more information.
Represents a GET request to the /v2/generate/status/{id} endpoint.