Google models
Run Google DeepMind’s Gemma models on Modal for coding, reasoning, and image understanding. Deploy them on Dedicated Endpoints with compute-based billing.
Which Google models can you run on Modal?
Google
Gemma 4 31B IT
Google DeepMind’s 30.7B-parameter dense Gemma 4 model for coding, reasoning, and image understanding, with a 256K-token context window.
Text VisionGoogle
Gemma 4 26B A4B IT
Google DeepMind’s instruction-tuned Gemma 4 mixture-of-experts model, with 25.2B total parameters, 3.8B active per token, and a 256K-token context window.
Text VisionGoogle
Gemma 4 E4B IT
Google DeepMind’s larger edge-focused Gemma 4 model, with 4.5B effective parameters, text and image input on Modal, and a 128K-token context window.
Text VisionGoogle
Gemma 4 E2B IT
Google DeepMind’s smallest Gemma 4 model, with 2.3B effective parameters, text and image input on Modal, and a 128K-token context window.
Text VisionGoogle
Gemma 3 1B IT
Google DeepMind’s compact 1B instruction-tuned model for text tasks like short summaries and question answering, with a 32K-token context window.
Text
| Model | Architecture | Context | Modalities | Input / Output |
|---|---|---|---|---|
| Gemma 4 31B IT | 31B dense | 256K | Text · Image | Dedicated only |
| Gemma 4 26B A4B IT | 25.2B MoE · 3.8B active | 256K | Text · Image | Dedicated only |
| Gemma 4 E4B IT | 8B dense | 128K | Text · Image | Dedicated only |
| Gemma 4 E2B IT | 5.1B dense | 128K | Text · Image | Dedicated only |
| Gemma 3 1B IT | 1B dense | 32K | Text | Dedicated only |
Dedicated Endpoint compute is billed by the second. See compute pricing.
Frequently asked questions about Gemma models on Modal
-
Gemma 4 31B IT is the largest and most capable model in the family: a 30.7B-parameter dense model for coding, reasoning, and image understanding, with a 256K-token context window. Gemma 4 26B A4B IT is a mixture-of-experts model for the same tasks, with 25.2B total parameters, 3.8B active per token, and the same context window. Gemma 4 E4B IT and Gemma 4 E2B IT are the edge models, designed for phones and laptops, with text and image input and a 128K-token context window; E4B is the larger of the two. Gemma 3 1B IT is from the earlier Gemma 3 generation: a compact, text-only model for short summaries and question answering, with a 32K-token context window.
-
Deploy Gemma on Dedicated Endpoints to get your own autoscaling deployment for inference. The endpoint serves an OpenAI-compatible API, so you can use the OpenAI SDK or any compatible client with the URL, model name, and credentials from your Modal dashboard. See the Dedicated Endpoints guide.
-
Dedicated Endpoints reserve GPUs for your workload and bill by the GPU second. You can set minimum, maximum, and buffer container counts, and the endpoint can scale to zero when idle. Model APIs instead use shared capacity and bill per token. See Modal pricing.
-
Yes. Gemma 4 models accept both text and images, so you can include an image and ask a question about it in the same request. The earlier Gemma 3 1B IT accepts text only.
-
No. With Dedicated Endpoints, Modal chooses the GPUs and serving configuration. Modal starts containers as requests arrive and can scale the endpoint to zero when idle. Set capacity limits only if you want to customize scaling.
Latest updates

How Abundant designed efficient rollout architecture with Modal Sandboxes
Abundant builds RL environments that run on Modal Sandboxes, powering training for frontier labs.

Building new research tools for Maya epigraphy on Modal

