For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).
Python class
ImageGenerationDetails
ImageGenerationDetails
class max.pipelines.request.ImageGenerationDetails(*, width, height, megapixels, steps, image_count)
Bases: BaseModel
Image generation usage metadata.
Exposes the generated image dimensions, step count, and image count under
usage so downstream consumers can attribute usage from the response
instead of re-deriving it from request inputs.
from_images()
classmethod from_images(pixel_data, *, steps)
Build image generation details from generated image data.
-
Parameters:
-
Returns:
-
An
ImageGenerationDetailsdescribing the generated images. -
Raises:
-
ValueError – If
pixel_datacontains no images. -
Return type:
height
height: int
image_count
image_count: int
megapixels
megapixels: float
model_config
model_config: ClassVar[ConfigDict] = {'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
steps
steps: int
width
width: int