deCloud
MA CHAIN · 20260131
← All models

Google: Gemma 3n 4B

google/gemma-3n-e4b-it

Gemma 3n E4B-it is optimized for efficient execution on mobile and low-resource devices, such as phones, laptops, and tablets. It supports multimodal inputs—including text, visual data, and audio—enabling diverse tasks...

Context
33K
Input MA / 1M
0.036
Output MA / 1M
0.072

Billing follows the provider's own reported cost rather than the catalogue price — cached input is cheaper, and reasoning tokens bill as output. Your usage page is the record of what you actually paid.

Capabilities

ChatStructured

Try it

One free message per account, no deposit needed. The reply is length-capped — it's a taste, not a quota.

Connect a wallet and sign in to use your free try.

Connect a wallet

Call it

Every model goes through the same endpoint — just use this page's ID as model.

curl https://macdecloud.com/v1/chat/completions \
  -H "Authorization: Bearer dcld-sk-..." \
  -H "Content-Type: application/json" \
  -d '{"model":"google/gemma-3n-e4b-it","messages":[{"role":"user","content":"Hello"}]}'

Streaming

Add "stream": true for token-by-token output over standard SSE.

curl -N https://macdecloud.com/v1/chat/completions \
  -H "Authorization: Bearer dcld-sk-..." \
  -H "Content-Type: application/json" \
  -d '{"model":"google/gemma-3n-e4b-it","stream":true,"messages":[{"role":"user","content":"hi"}]}'

Structured output

Supports response_format, so the model returns JSON matching a schema you give it instead of prose you have to parse.

{
  "model": "google/gemma-3n-e4b-it",
  "messages": [{ "role": "user", "content": "..." }],
  "response_format": {
    "type": "json_schema",
    "json_schema": {
      "name": "result",
      "schema": {
        "type": "object",
        "properties": { "answer": { "type": "string" } },
        "required": ["answer"]
      }
    }
  }
}
Use it from Claude Code / Cursor / opencode →