Last refreshed 2026-06-15. Next refresh: weekly.
Why use Gemma 3n 4B (free) on Together AI?
Together AI offers Gemma 3n 4B (free) with pay-as-you-go pricing at $0.02/1M input tokens. Together AI is a platform for running open-source and proprietary LLMs with fast serverless and dedicated endpoints at competitive inference pricing.
Compare Gemma 3n 4B (free) across 3 providers to find the best fit for your use caseInput / 1M
$0.020
Output / 1M
$0.040
Cache
Not sourced
Batch
Not sourced
Setup recipe
Python + curlInstall
pip install togetherAuth
export TOGETHER_API_KEY=...Call
from together import Together
client = Together() # reads TOGETHER_API_KEY from env
response = client.chat.completions.create(
model="gemma-3n-e4b-it",Model ID
gemma-3n-e4b-itRequest example
from together import Together
client = Together() # reads TOGETHER_API_KEY from env
response = client.chat.completions.create(
model="gemma-3n-e4b-it",
messages=[{"role": "user", "content": "Hello"}]
)
print(response.choices[0].message.content)Gotchas
- Together uses "organization/model-name" format, e.g. "meta-llama/Llama-4-Scout-17B-16E-Instruct" or "Qwen/QwQ-32B". See the Together model catalog for the exact ID.
- The examples expect TOGETHER_API_KEY; rename it only if your application config maps the new variable.
Compare Gemma 3n 4B (free) Across Providers
| Provider | Input (per 1M) | Output (per 1M) |
|---|---|---|
| NVIDIA NIM | — | — |
| Together AI | $0.02 | $0.04 |
| OpenRouter | $0.06 | $0.12 |
Pricing
| Type | Price (per 1M) |
|---|---|
| Input tokens | $0.02 |
| Output tokens | $0.04 |
Capabilities
Structured Outputs
About Gemma 3n 4B (free)
Google: Gemma 3n 4B (free) available via OpenRouter. Pricing: $null/1M input, $null/1M output.
Get Started
Model Specs
Released2025-04-03
Parameters8B (4B effective active)
Context8k
ArchitectureDecoder Only
Knowledge cutoff2024-06