The Modal client object is used to interact with the Modal API.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/modal-labs/modal-client/llms.txt
Use this file to discover all available pages before exploring further.
The Client is not intended to be instantiated directly by users in most cases. Modal automatically manages client instances.
Factory methods
Client.from_env
The Modal client instance.
Client.from_credentials
Modal token ID.
Modal token secret.
The Modal client instance.
Context manager usage
The Client can be used as an async context manager:Properties
client.stub
This is an internal property primarily used by Modal’s implementation.