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.
- Gemma 3n E2B (on-device)google/gemma-3n-e2b · 32,768-token context, text in and out, $0 / $0 per 1M.
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.
- App code — Vercel AI SDK or OpenAI SDK.
- Coding agent —
anyr claude/anyr opencode/anyr codex(playbook). - No code — playground.
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)Already on the OpenAI SDK? OpenAI SDK playbook:
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):
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 playgroundLooking for the full catalog?Muốn xem toàn bộ danh mục?想看完整目录? Browse all modelsXem tất cả model浏览全部模型.