Google: Gemma 3n 4B API

Access Google: Gemma 3n 4B from Google using Puter.js AI API.

Get Started

Model Card

Gemma 3n E4B Instruct is Google's mobile-optimized model with a 4B active memory footprint containing a nested 2B submodel for flexible quality-latency tradeoffs. It supports real-time multimodal processing on edge devices.

Context Window

N/A

tokens

Max Output

N/A

tokens

Input Cost

$0.02

per million tokens

Output Cost

$0.04

per million tokens

API Usage Example

Add Google: Gemma 3n 4B to your app with just a few lines of code.
No API keys, no backend, no configuration required.

<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.chat("Explain quantum computing in simple terms", {
            model: "google/gemma-3n-e4b-it"
        }).then(response => {
            document.body.innerHTML = response.message.content;
        });
    </script>
</body>
</html>

View full documentation →

Get started with Puter.js

Add Google: Gemma 3n 4B to your app without worrying about API keys or setup.

Read the Docs View Tutorials