# Modal

CreateWithAI Hub page: https://createwithaihub.com/inference/modal
Latest version of this file: https://createwithaihub.com/inference/modal.md

- Type: Tool · Category: Endpoints & Inference
- Publisher: Modal Labs
- Pricing: Free plan plus paid plans
- Runs on: API (cloud)

Serverless Python cloud for running inference, batch jobs, training and sandboxes on GPUs billed per second, plus per-token Model APIs.

Modal is a serverless AI infrastructure platform where you define functions, containers and hardware in Python and run them on CPUs or GPUs that scale from zero, billed by the second with no charge for idle time. It is used for low-latency inference on open or custom models, parallel batch jobs, fine-tuning and sandboxed code execution. Modal also offers Model APIs: managed, OpenAI-compatible endpoints for catalog models billed per token.

Useful for: Deploying a custom or open-weights model as an autoscaling GPU endpoint without managing Kubernetes, or running a large batch of GPU jobs in parallel.

## Key features

- Python SDK to define functions, images and GPU types in code
- Per-second billing for CPU, memory and GPU with scale-to-zero
- Model APIs: OpenAI-compatible shared endpoints billed per token
- Sandboxes for running untrusted or AI-generated code
- Scheduled and web functions, volumes and real-time logs
- Starter plan with no monthly fee and $30/month of included compute

## Connection

- Modality: Text
- API compatibility: OpenAI-compatible
- Free tier: Has a free tier
- Pricing structure: Per token, Per GPU-second
- Kind: Cloud platform

## Before you start

- Modal account
- Python

## Install steps from the official documentation

Install Python package:

```
pip install modal
```

Authenticate:

```
modal setup
```

## Limitations

- Starter plan is limited to 3 workspace seats, 100 containers and 10 concurrent GPUs
- Included monthly credit applies to compute only, not to per-token Model APIs
- Sandboxes are billed at non-preemptible rates of 3x list price

## Official links

- Website: https://modal.com
- Documentation: https://modal.com/docs/guide
- Source: https://modal.com/pricing (Starter $0 + $30/month credits, Team $250+ with $100 credits, seat/container/GPU limits, per-second billing, Model APIs billed per token, sandbox 3x rate)
- Source: https://modal.com/docs/guide (Inference, batch, training, sandboxes; pip install modal and modal setup)
- Source: https://modal.com/library/zai/glm-5-3 (Model APIs are OpenAI-compatible and billed per token)
