Modal Images and GPU

Define container images programmatically with modal.Image (from_registry, debian_slim, pip_install, run_commands) and attach GPUs by passing gpu= (T4, L4, A10, L40S, A100, H100, H200, B200) to a function. Image build and GPU attachment are declared in code and resolved by the gRPC backend; no public REST endpoint.

API entry from apis.yml

apis.yml Raw ↑
aid: modal-labs:modal-labs-images-gpu-api
name: Modal Images and GPU
tags:
- Images
- GPU
- Containers
- Environments
- SDK
image: https://kinlane-images.s3.amazonaws.com/shared/apis-json/apis-json-logo.jpg
humanURL: https://modal.com/docs/guide/images
properties:
- url: https://modal.com/docs/guide/images
  type: Documentation
- url: https://modal.com/docs/reference/modal.Image
  type: APIReference
description: Define container images programmatically with modal.Image (from_registry, debian_slim, pip_install,
  run_commands) and attach GPUs by passing gpu= (T4, L4, A10, L40S, A100, H100, H200, B200) to a function.
  Image build and GPU attachment are declared in code and resolved by the gRPC backend; no public REST
  endpoint.