Skip to content
All releases
Added

Gemma 3n E2B, on your own phone

Google's Gemma 3n E2B, run on a phone you pair yourself and relayed to AnyRouter. $0 in and out — your hardware does the work.

google/gemma-3n-e2b runs Google's Gemma 3n E2B on a phone you pair yourself. The phone connects to AnyRouter over an outbound WebSocket, so there is no Google API key and no server-side compute.

It is text in, text out, with a 32,768-token context window. Pricing is $0 per million input and output tokens, because you supply the hardware.

Try it in the Vercel AI SDK (guide). createAnyRouter() reads ANYROUTER_API_KEY:

import { createAnyRouter } from "@anyr/ai-sdk-provider"
import { generateText } from "ai"

const anyrouter = createAnyRouter()

const { text } = await generateText({
  model: anyrouter("google/gemma-3n-e2b"),
  prompt: "Write a one-line commit message for this change.",
})
console.log(text)
generateText with the catalog id.

Already on the OpenAI SDK? OpenAI SDK playbook:

OpenAI-compatible: SDK or curl.
import OpenAI from "openai"

const client = new OpenAI({
  baseURL: "https://anyrouter.dev/api/v1",
  apiKey: process.env.ANYROUTER_API_KEY,
})

const res = await client.chat.completions.create({
  model: "google/gemma-3n-e2b",
  messages: [{ role: "user", content: "Hello" }],
})
console.log(res.choices[0]?.message.content)
curl https://anyrouter.dev/api/v1/chat/completions \
  -H "Authorization: Bearer $ANYROUTER_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"google/gemma-3n-e2b","messages":[{"role":"user","content":"Hello"}]}'

Or launch a coding agent through the anyr CLI (Claude Code · OpenCode):

Coding agents via the AnyRouter CLI.
curl -fsSL https://anyrouter.dev/setup.sh | bash
anyr login
anyr claude --model "google/gemma-3n-e2b"
curl -fsSL https://anyrouter.dev/setup.sh | bash
anyr login
anyr opencode --model "google/gemma-3n-e2b"
curl -fsSL https://anyrouter.dev/setup.sh | bash
anyr login
anyr codex --model "google/gemma-3n-e2b"

More: AI SDK · OpenAI SDK · coding agents · BYOK setup.

No terminal? Open the playground and send a first message.

Try in playground

Looking for the full catalog? Browse all models.