# Gemma 4 on AI Gateway

By Steven Van · 2026-04-02

Two open Gemma 4 models, a 26B mixture-of-experts and a 31B dense version, join Vercel AI Gateway with 256K context and native vision.

[Vercel](<https://creatorstoolbox.com/tools/vercel>)'s AI Gateway now offers two open Gemma 4 models from Google: a 26B mixture-of-experts model and a 31B dense model. Both are built on the same architecture as Gemini 3 and support function-calling, agentic workflows, structured JSON output, and system instructions, with up to 256K context, 140+ languages, and native vision.

- **26B (MoE)** activates only 3.8B of its 26B total parameters during inference, aimed at lower latency and faster tokens-per-second.

- **31B (Dense)** keeps all parameters active during inference, targeting higher output quality and better suited as a foundation for fine-tuning.

To use them, set the model to google/gemma-4-31b-it or google/gemma-4-26b-a4b-it in the AI SDK. See the [announcement](<https://vercel.com/ai-gateway/leaderboards>) for more.

[![](<https://assets.vercel.com/image/upload/contentful/image/e5382hct74si/6mTpZofxZaXoqLWiRMrwVg/444a2908372f9b74327d4df9f02ab7fb/model_leaderboards_og_card.png>)](<https://vercel.com/ai-gateway/leaderboards>)

![Vercel](<https://www.google.com/s2/favicons?domain=vercel.com&sz=128>)

Vercel

The platform for frontend developers — deploy, preview, and scale web apps and AI agents with zero config.

[View Vercel →](<https://creatorstoolbox.com/tools/vercel>)

Sources

[Original source](<https://vercel.com/ai-gateway/leaderboards>)

[Read Gemma 4 on AI Gateway on Creators Toolbox](<https://creatorstoolbox.com/blog/vercel-gemma-4-on-ai-gateway>)

---
Canonical source: https://creatorstoolbox.com/blog/vercel-gemma-4-on-ai-gateway
