modal endpoint
Create and manage LLM inference endpoints.
Modal Endpoints deploy production-ready LLM inference servers with minimal coding or configuration. Endpoints support pre-trained open models along with custom weights from a private Hugging Face repo or Modal Volume.
See https://modal.com/docs/guide/endpoints for more information.
Usage:
modal endpoint [OPTIONS] COMMAND [ARGS]...Options:
--help: Show this message and exit.
Commands:
create: Deploy a new Endpoint.info: Show details about an Endpoint, such as the model, URL, and status.list: List Endpoints that are provisioning or running in an environment.logs: Fetch or stream logs for a dedicated Endpoint.stats: Show aggregate Server statistics for a dedicated Endpoint.stop: Permanently stop an Endpoint and terminate any running containers.
modal endpoint create
Deploy a new Endpoint.
Examples:
Create an Endpoint from a base model:
modal endpoint create --model Qwen/Qwen3.6-27B-FP8Create an Endpoint with an explicit name:
modal endpoint create --name qwen-chat --model Qwen/Qwen3.6-27B-FP8Create an Endpoint with explicit routing and compute regions:
modal endpoint create --model Qwen/Qwen3.6-27B-FP8 \
--routing-region us-east --compute-region us-westCreate an Endpoint from a private Hugging Face model:
modal endpoint create --name my-ft --model Qwen/Qwen3.6-27B-FP8 \
--custom-hf-repo acme/qwen-ft --custom-hf-token $HF_TOKENCreate an Endpoint from custom weights in a Modal Volume:
modal endpoint create --name my-ft --model Qwen/Qwen3.6-27B-FP8 \
--custom-volume-name qwen-ft --custom-volume-path /models/qwenUsage:
modal endpoint create [OPTIONS]Options:
-e, --env TEXT: Environment to interact with. If unspecified, defers toMODAL_ENVIRONMENT, your active local profile, or your workspace default, in that order.--name TEXT: Endpoint name. If not provided, a default will be derived from the model name.--model TEXT: Hugging Face repo ID for the base model architecture (e.g., 'Qwen/Qwen3.6-27B-FP8'). [required]--routing-region TEXT: Region to route inference requests through. Defaults to us-west.--compute-region TEXT: Region to run Endpoint containers in. May be specified multiple times. This incurs a region selection price multiplier.--colocate-compute: Run all containers within the routing region. This incurs a region selection price multiplier.--unauthenticated: Allow unauthenticated HTTP requests to the endpoint.--custom-hf-repo TEXT: Hugging Face repo ID for fine-tuned model weights.--custom-hf-revision TEXT: Git revision for --custom-hf-repo.--custom-hf-token TEXT: Hugging Face token for private --custom-hf-repo.--custom-volume-name TEXT: Modal Volume name containing custom model weights.--custom-volume-path TEXT: Path within Volume containing model weights.--help: Show this message and exit.
modal endpoint info
Show details about an Endpoint, such as the model, URL, and status.
Examples:
Get information about an Endpoint by name:
modal endpoint info qwen-chatGet information about an Endpoint by ID:
modal endpoint info ep-123456Output the information as JSON:
modal endpoint info qwen-chat --jsonDisable color output:
modal endpoint info qwen-chat --no-colorUsage:
modal endpoint info [OPTIONS] ENDPOINT_IDENTIFIEROptions:
-e, --env TEXT: Environment to interact with. If unspecified, defers toMODAL_ENVIRONMENT, your active local profile, or your workspace default, in that order.--json--no-color: Disable colors in the output.--help: Show this message and exit.
modal endpoint list
List Endpoints that are provisioning or running in an environment.
Usage:
modal endpoint list [OPTIONS]Options:
--json-e, --env TEXT: Environment to interact with. If unspecified, defers toMODAL_ENVIRONMENT, your active local profile, or your workspace default, in that order.--help: Show this message and exit.
modal endpoint logs
Fetch or stream logs for a dedicated Endpoint.
By default, this command fetches the last 100 log entries and exits. Use -f to
live-stream logs from a running Endpoint instead. Fetch and follow are mutually exclusive.
Examples:
Get recent logs by Endpoint name:
modal endpoint logs qwen-chatGet recent logs by Endpoint ID:
modal endpoint logs ep-123456Follow logs from a running Endpoint:
modal endpoint logs qwen-chat -fFetch the last 1000 entries:
modal endpoint logs qwen-chat --tail 1000Fetch logs from the last two hours:
modal endpoint logs qwen-chat --since 2hFetch logs in a specific time range:
modal endpoint logs qwen-chat --since 2026-09-01T05:00:00 --until 2026-09-01T08:00:00Filter logs and include timestamps:
modal endpoint logs qwen-chat --source stderr --search timeout --timestampsUsage:
modal endpoint logs [OPTIONS] ENDPOINT_IDENTIFIEROptions:
-f, --follow: Stream log output until interrupted--since TEXT: Start of time range. Accepts ISO 8601 datetime or relative time, e.g. '1d', '2h', or '30m'.--until TEXT: End of time range; accepts the same argument types as --since-n, --tail INTEGER: Show only the last N log entries--search TEXT: Filter by search text--container TEXT: Filter by Container ID (ta-*)-s, --source TEXT: Filter by source: 'stdout', 'stderr', or 'system'--timestamps: Prefix each line with its timestamp--show-server-id: Prefix each line with its Server ID--show-container-id: Prefix each line with its Container ID-e, --env TEXT: Environment to interact with. If unspecified, defers toMODAL_ENVIRONMENT, your active local profile, or your workspace default, in that order.--help: Show this message and exit.
modal endpoint stats
Show aggregate Server statistics for a dedicated Endpoint.
The default time range is the most recent hour. Metrics are provided on a best-effort basis and may be delayed or incomplete.
Examples:
Show stats for the last hour by Endpoint name:
modal endpoint stats qwen-chatShow stats by Endpoint ID:
modal endpoint stats ep-123456Show stats for a relative time range:
modal endpoint stats qwen-chat --since 5h --until 2hShow stats for the hour ending two hours ago:
modal endpoint stats qwen-chat --until 2hShow stats for an explicit time range as JSON:
modal endpoint stats qwen-chat \
--since 2026-09-01T05:00:00Z \
--until 2026-09-01T08:00:00Z \
--jsonShow stats for a specific container:
modal endpoint stats qwen-chat --container-id ta-12345Usage:
modal endpoint stats [OPTIONS] ENDPOINT_IDENTIFIEROptions:
--since TEXT: Start of time range. Treated as local time if a timezone is not supplied. Accepts an ISO 8601 datetime or relative time such as '2h' or '30m'.--until TEXT: End of time range. Treated as local time if a timezone is not supplied.--container-id CONTAINER_ID: Compute the stats only for this container.--no-color: Disable colors in the output.--json: Output stats as JSON.-e, --env TEXT: Environment to interact with. If unspecified, defers toMODAL_ENVIRONMENT, your active local profile, or your workspace default, in that order.--help: Show this message and exit.
modal endpoint stop
Permanently stop an Endpoint and terminate any running containers.
Usage:
modal endpoint stop [OPTIONS] ENDPOINT_IDENTIFIEROptions:
-y, --yes: Run without pausing for confirmation.-e, --env TEXT: Environment to interact with. If unspecified, defers toMODAL_ENVIRONMENT, your active local profile, or your workspace default, in that order.--help: Show this message and exit.