IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
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 module

max.pipelines.modeling.types.pipeline_variants

Input and output types for each generation modality: text, image, audio, and embeddings.

Text generation​

BatchTypeType of batch.
CompletedBatchStatsExecution stats for a batch whose outputs have been synchronized.
ImageContentPartAn image content part of a message.
MessageContentOne part of a chat message: text, an image, or a video.
TextContentPartA plain-text content part of a message.
TextGenerationInputsInput parameters for text generation pipeline operations.
TextGenerationRequestAn immutable request for text token generation from a pipeline.
TextGenerationRequestFunctionRepresents a function definition for a text generation request.
TextGenerationRequestMessageA single message in a text generation request conversation.
TextGenerationRequestToolRepresents a tool definition for a text generation request.
VideoContentPartA video content part of a message.

Audio generation​

AudioGenerationInputsInput data structure for audio generation pipelines.

Embeddings​

EmbeddingsContextProtocol defining the interface for embeddings generation contexts.
EmbeddingsGenerationContextTypeThe context type an embeddings pipeline serves.
EmbeddingsGenerationInputsBatched inputs for an embeddings generation pipeline step.
EmbeddingsGenerationOutputResponse structure for embedding generation.

Image generation​

PixelGenerationInputsInput data structure for pixel generation pipelines.