Skip to content

ImageGenerationInputImage

Base classes

Name Children Inherits
CodexBaseModel
codexed.models.base
Base model for all Codex API models.

⋔ Inheritance diagram

graph TD
  3514958175["v2_protocol.ImageGenerationInputImage"]
  3116041069["base.CodexBaseModel"]
  3879467795["main.BaseModel"]
  2751680898["builtins.object"]
  3116041069 --> 3514958175
  3879467795 --> 3116041069
  2751680898 --> 3879467795

🛈 DocStrings

Bases: CodexBaseModel

A local image file successfully read for this exact image-generation request.

Source code in src/codexed/models/v2_protocol.py
class ImageGenerationInputImage(CodexBaseModel):
    """A local image file successfully read for this exact image-generation request."""

    path: AbsolutePathBuf
    sha256: str
    """
    Lowercase SHA-256 of the file bytes read before image normalization.
    """

sha256 instance-attribute

sha256: str

Lowercase SHA-256 of the file bytes read before image normalization.

:fa-brands-github: Show source on GitHub