Skip to content

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?

ModelArchitectureContextModalitiesInput / Output
Gemma 4 31B IT31B dense256KText · ImageDedicated only
Gemma 4 26B A4B IT25.2B MoE · 3.8B active256KText · ImageDedicated only
Gemma 4 E4B IT8B dense128KText · ImageDedicated only
Gemma 4 E2B IT5.1B dense128KText · ImageDedicated only
Gemma 3 1B IT1B dense32KTextDedicated 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.

Ship your first app in minutes

$30 / month free compute