Models / Google
Gemma 4 12B API pricing
$0.40 in, $1.20 out per million tokens.
Price · per million tokens, USD
Get a key| Tokens | Google list price | UplinkSwitch | Saving |
|---|---|---|---|
| Input | — | $0.40 | — |
| Cached input | Billed at the input rate. | ||
| Output | — | $1.20 | — |
Gemma 4 12B: what it is · from Google’s own model card, read 2026-10-20
Google DeepMind’s Gemma 4 12B Unified, which reads text, images, audio and video with no separate encoders. It brings Gemma 4’s native audio and vision to a small model. It is served as gemma-4-12b-it at $0.40 input and $1.20 output per million tokens, on the same key as every other model in the catalog.
| Gemma 4 12B | |
|---|---|
| Developer | |
| Parameters | 12B, dense |
| Context | up to 256K tokens |
| License | Apache-2.0 |
| Published | 2026-05-23 |
| Downloads, 30 days to 2026-10-20 | 1,692,786 |
| Source | google/gemma-4-12B-it |
From google/gemma-4-12B-it, read 2026-10-20.
curl https://api.uplinkswitch.com/v1/chat/completions \
-H "authorization: Bearer sk-uplink-live-..." \
-H "content-type: application/json" \
-d '{"model":"gemma-4-12b-it","max_tokens":1024,"messages":[{"role":"user","content":"Hello"}]}'Gemma 4 12B next to Google’s other models · per million tokens, live
| Model | Here, in / out | 1,000 chat turns |
|---|---|---|
| Gemini 2.5 Flash Lite | $0.075 / $0.30 | $0.30 |
| Gemini 2.5 Flash | $0.09 / $0.75 | $0.56 |
| Gemini 3.1 Flash Lite | $0.15 / $0.90 | $0.75 |
| Gemini 3.1 Flash Lite Preview | $0.1875 / $1.125 | $0.94 |
| Gemma 4 12B | $0.40 / $1.20 | $1.40 |
| Gemini 3 Flash Preview | $0.375 / $2.25 | $1.88 |
| Gemma 4 26B-A4B | $0.56 / $1.60 | $1.92 |
| Gemini 3.6 Flash | $0.4925 / $2.25 | $2.11 |
| Gemini 3.7 Flash | $0.4925 / $2.25 | $2.11 |
| Gemini 3.8 Flash | $0.4925 / $2.25 | $2.11 |
| Gemini 4 Argon | $0.60 / $3.00 | $2.70 |
| Gemini 2.5 Pro | $0.9375 / $7.50 | $5.63 |
| Gemini 3.1 Pro Preview | $1.20 / $7.20 | $6.00 |
| Gemma 31B Heretic Uncensored | $1.50 / $8.25 | $7.13 |
| DiffusionGemma 26B A4B | $3.00 / $3.00 | $7.50 |
| Gemini 3.5 Flash | $1.50 / $9.00 | $7.50 |
| Gemma 4 31B | $3.00 / $4.00 | $8.00 |
A chat turn is 2,000 input and 500 output tokens. Live from the catalog, ordered by the cost of 1,000 turns.
Worked for Gemma 4 12B: 1,000 turns are 2,000,000 input tokens and 500,000 output tokens. At $0.40 input and $1.20 output per million tokens, that is $0.80 + $0.60 = $1.40, paid from prepaid credit with no subscription.
Gemma 4 12B API key · base URL and setup
- Create a key in the console at uplinkswitch.ai/console. Credit is prepaid from $10 with no subscription, and the key works at once.
- Point your SDK or tool at https://api.uplinkswitch.com/v1, for example with OPENAI_BASE_URL, and send the key as the bearer token.
- Send gemma-4-12b-it as the model. The same key calls every other model in the catalog.
from openai import OpenAI
client = OpenAI(
base_url="https://api.uplinkswitch.com/v1",
api_key="sk-uplink-live-...",
)
completion = client.chat.completions.create(
model="gemma-4-12b-it",
messages=[{"role": "user", "content": "Summarize this in one line."}],
)
print(completion.choices[0].message.content)import OpenAI from 'openai';
const client = new OpenAI({
baseURL: 'https://api.uplinkswitch.com/v1',
apiKey: 'sk-uplink-live-...',
});
const completion = await client.chat.completions.create({
model: 'gemma-4-12b-it',
messages: [{ role: 'user', content: 'Summarize this in one line.' }],
});
console.log(completion.choices[0].message.content);curl https://api.uplinkswitch.com/v1/chat/completions \
-H "authorization: Bearer sk-uplink-live-..." \
-H "content-type: application/json" \
-d '{"model":"gemma-4-12b-it","messages":[{"role":"user","content":"Hello"}]}'What would it cost? · paste a prompt, priced before you send it
Input is counted at about 4 characters per token.
Cheapest first. A real request is billed on the provider's own token count. Same estimate as JSON: POST https://api.uplinkswitch.com/v1/estimate, no key needed.