In short.
This guide helps Python developers configure payload compression in Mistral Workflows, but its benefits depend on the data and require client and worker setup. The documented implementation uses zstd, defaults to a 1,048,576-byte minimum payload size and compression level 3, and retains the original bytes when compression does not reduce their size. Smaller payloads can avoid the documented 2MB limit on workflow inputs and activity inputs and outputs, potentially removing the need for blob offloading. Prices, measured savings and runtime performance are unknown; no code was executed.
Researched and written by an AI model and checked by a second AI model. How it works
Coverage includes the complete supplied page at [https://docs.mistral.ai/studio/workflows/building-workflows/compression.md], including its configuration examples, informational note about feature ordering and troubleshooting guidance. Linked encryption and payload-offloading pages are excluded. No explicit licensing notice appears in the supplied page. No code or workflow was executed; runtime behavior, performance, costs and compatibility with specific SDK versions remain unverified or unknown.
The overview
Identity
Compression is a Mistral Workflows documentation page about reducing the size of data exchanged by workflow clients and workers. It is a configuration guide rather than a standalone compression application. The source is [https://docs.mistral.ai/studio/workflows/building-workflows/compression.md].
Assessment
The guide provides enough implementation detail to plan a compression configuration: the installation extra, worker environment variables, client API calls, defaults, processing order and failure cases are all specified.
Its practical value depends on whether real payloads shrink enough to justify compression work. The page supplies no compression ratios, CPU measurements or latency comparisons, so those benefits remain unquantified.
Users
The intended readers are developers starting Mistral Workflows through the Python SDK and engineers configuring workflow workers. The examples assume familiarity with Python, environment variables and workflow activities.
Developers handling large workflow inputs or activity results are the clearest potential users. The page does not establish equivalent configuration APIs for other programming languages.
Capabilities
The documented feature covers workflow inputs, activity inputs and outputs, and signal data. Compression happens before payloads leave the worker, and incoming compressed payloads are decoded transparently.
Compression reduces transferred bytes and the payload size counted against the documented 2MB limit for workflow inputs and activity inputs and outputs. It can also work alongside blob-storage offloading and encryption, with each feature configured independently.
Using it
Requirements
Every client and worker that encodes or decodes compressed payloads needs the mistralai compression extra. It installs zstandard for compression and msgpack for storing algorithm settings alongside the compressed data.
The client example uses the Mistral Python SDK and an API key. Compression configuration is needed on both the client and worker to cover workflow-start inputs and data passed between activities. Required Python and SDK versions, hardware requirements and account prerequisites are not specified.
Mechanism
A payload becomes eligible when its size reaches min_size_bytes, which defaults to 1,048,576 bytes. The SDK sends the compressed representation only if it is smaller than the original; otherwise it sends the original bytes.
Compressed payloads carry their algorithm and level settings. A receiving worker therefore does not need matching compression configuration, or compression enabled for encoding, to decode them; it still needs the required dependencies.
When the related features are enabled together, the SDK compresses first, offloads to blob storage if the result still exceeds the offloading threshold, and encrypts last. Decoding reverses that order.
Setup
The documented installation command is uv add "mistralai[workflow-payload-compression]". Install the extra wherever payloads are encoded or decoded.
For workers, the page shows TEMPORAL_PAYLOAD_COMPRESSION__MIN_SIZE_BYTES=1048576, TEMPORAL_PAYLOAD_COMPRESSION__ALGORITHM_CONFIG__ALGORITHM=zstd and TEMPORAL_PAYLOAD_COMPRESSION__ALGORITHM_CONFIG__LEVEL=3. Providing the compression configuration enables it; there is no separate enable flag. Supported compression levels run from 1 to 22.
For clients, await configure_workflow_encoding before starting a workflow. Pass a WorkflowEncodingConfig containing PayloadCompressionConfig, with min_size_bytes and a ZstdCompressionConfig level as needed, together with the client instance.
Example
The Python example creates a Mistral client, configures compression inside an asynchronous main function, and then starts my-workflow with a large_data input field. It uses a 1MB threshold and zstd level 3.
The displayed large_data value is the placeholder "...". It supplies no actual large payload, observed compressed size or execution result.
A separate configuration example combines compression with S3 payload offloading and FULL encryption. The bucket name and encryption key are placeholders, and this page does not provide a complete storage or encryption setup.
Assessment & evidence
Limitations
Payloads below the configured minimum size are not compressed. Images, videos, archives and other already-compressed data may not shrink; the SDK then sends the original bytes. Compression therefore cannot guarantee that a payload will fit within 2MB.
Offloading remains relevant when compressed data exceeds its separate threshold. The page does not state that threshold's default or fully describe offloading behavior.
Missing compression dependencies can cause WorkflowPayloadCompressionException. Throughput, memory consumption, compression ratios and behavior across SDK releases are not established by the page.
Reasoning
The documented threshold and size limit suggest the strongest use case is an existing Mistral Workflows application carrying large, compressible payloads near or above the limit. For that workload, reducing bytes may also remove the need for blob-storage transfers.
That fit is an inference from the documented mechanism. Whether compression improves a particular application's latency or cost requires measurements of its actual data and worker resources.
Alternatives
The page describes leaving payloads uncompressed as the default. That avoids compression processing while retaining the original payload sizes.
It also identifies payload offloading as an option for data that remains too large and allows offloading to be combined with compression. The linked offloading page is outside the supplied evidence, so its requirements and costs are unknown. No competing compression tools or workflow platforms are assessed.
Evidence
The evidence consists of the complete supplied Compression documentation page, including its installation command, environment variables, Python examples, feature-order explanation and troubleshooting notes. These support claims about documented behavior.
No code was executed. Actual workflow execution, compression and decoding, offloading, encryption and measured performance are UNVERIFIED.
Access & freshness
Costs
The page gives no platform, workflow-execution, storage or network prices. Total operating cost and financial savings are unknown.
Higher zstd levels are documented to use more CPU time in exchange for stronger compression. Avoiding offloading can remove a blob upload and a replay-time download, but the page provides no measurements of the resulting time or cost savings.
Rights
The supplied page contains no explicit license or reuse terms for the documentation, example code or SDK. Redistribution permissions and applicable license conditions are unknown from this page.
Freshness
The page was captured on 15 November 2026 at 09:30:21 UTC. It contains no publication date, last-update date, supported SDK version or release reference. Compatibility with a particular installed SDK release is unknown.
Actions
Before adoption, confirm that the installed SDK exposes the documented configuration APIs, install the compression extra on all participating clients and workers, and configure both encoding locations.
Evaluate representative payloads around the minimum threshold and 2MB limit, including already-compressed data. Measure resulting sizes, CPU use and latency before increasing the compression level. If offloading or encryption is needed, consult its separate documentation and verify the combined payload round trip.
