---
title: "Gemma 4 31B Gembrain API pricing"
canonical: https://uplinkswitch.ai/models/gemma-4-31b-gembrain
generated: 2026-10-22T19:05:14.708Z
source: https://api.uplinkswitch.com/v1/catalog
base_url: https://api.uplinkswitch.com/v1
---

# Gemma 4 31B Gembrain API pricing

Gemma 4 31B Gembrain API at $0.35/M input and $1.575/M output tokens. 262,144-token context window. Works with the OpenAI SDK.

## Price per million tokens (USD)

| Tokens | Google (community tune) list price | UplinkSwitch | Under list |
| --- | --- | --- | --- |
| Input | — | $0.35 | — |
| Cached input | — | billed at the input rate | — |
| Output | — | $1.575 | — |

## Model

- Model id: `gemma-4-31b-gembrain`
- Formats: OpenAI SDK
- Base URL: https://api.uplinkswitch.com/v1
- Context window: 262,144 tokens
- Max output: 32,768 tokens
- Input: text and image
- Daily real-model check: Same fingerprint since Oct 20 (https://uplinkswitch.ai/proof#gemma-4-31b-gembrain)

## Request

### Python · OpenAI SDK

```python
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-31b-gembrain",
    messages=[{"role": "user", "content": "Summarize this in one line."}],
)
print(completion.choices[0].message.content)
```

### TypeScript · OpenAI SDK

```typescript
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-31b-gembrain',
  messages: [{ role: 'user', content: 'Summarize this in one line.' }],
});
console.log(completion.choices[0].message.content);
```

### curl

```bash
curl https://api.uplinkswitch.com/v1/chat/completions \
  -H "authorization: Bearer sk-uplink-live-..." \
  -H "content-type: application/json" \
  -d '{"model":"gemma-4-31b-gembrain","messages":[{"role":"user","content":"Hello"}]}'
```

## Questions

### What is Gemma 4 31B Gembrain?

Gemma 4 31B Gembrain is a model from Google (community tune), with a 262,144-token context window, taking text and image input. Through UplinkSwitch it answers the OpenAI SDK on one key as gemma-4-31b-gembrain.

### How much does the Gemma 4 31B Gembrain API cost?

$0.35 per million input tokens and $1.575 per million output tokens.

### Is Gemma 4 31B Gembrain free?

It is pay as you go: prepaid credit from $10, with no subscription or monthly fee, billed per token. A 1,000-token prompt with a 500-token reply costs about $0.0011.

### What is the Gemma 4 31B Gembrain context window?

Gemma 4 31B Gembrain has a 262,144-token context window, with up to 32,768 output tokens per request. It takes text and image input.

### What is the Gemma 4 31B Gembrain model id?

gemma-4-31b-gembrain. Send it as the model through the OpenAI SDK with base URL https://api.uplinkswitch.com/v1.

### How do I get a Gemma 4 31B Gembrain API key?

Create one in the console at uplinkswitch.ai/console: prepaid credit from $10, no subscription, and the key is live at once. The same key calls Gemma 4 31B Gembrain and every other model in the catalog; send it as the bearer token with base URL https://api.uplinkswitch.com/v1.

### Is it the real Gemma 4 31B Gembrain?

Every day each model gets the same test prompt, and a model always counts that prompt the same way; a swapped one would not. Gemma 4 31B Gembrain's latest result: Same fingerprint since Oct 20.

### Is there a Gemma 4 31B Gembrain API?

Yes: gemma-4-31b-gembrain on the OpenAI format at https://api.uplinkswitch.com/v1, $0.35 input and $1.575 output per million tokens. No weights to download and no GPU of your own; the key also runs every other model in the catalog.

### What is Gemma 4 31B Gembrain based on?

Google’s Gemma 4 31B it, through a five-stage merge by Nimbz of Gemsicle 31B with MeroMero, Gemopus, GarnetV2, Musica and a heretic-ara Gemma, per its card.

### What license does Gemma 4 31B Gembrain have?

The card lists Apache-2.0.

### What does Gemma 4 31B Gembrain cost per 100 messages?

$0.1488 for 100 chat turns of 2,000 input and 500 output tokens each, at $0.35 input and $1.575 output per million tokens, from prepaid credit with no subscription.

### What settings does Gemma 4 31B Gembrain use?

Its card recommends temperature 1.0, top_k 0, top_p 0.95 and min_p 0.03, plus DRY at multiplier 0.8, base 1.75 and allowed length 10.

### Gemma 4 31B Gembrain or Gemma 4 31B Gembrain Heretic?

Gembrain is Nimbz’s merge as released; Gembrain Heretic is llmfan46’s heretic abliteration of it. Gemma 4 31B Gembrain is $0.35 / $1.575 per million tokens in / out, $1.49 for 1,000 chat turns; Gemma 4 31B Gembrain Heretic is $1.224 / $1.224 per million tokens in / out, $3.06 for 1,000 chat turns. Both run on the same key, so send the same prompt to each.

### Gemma 4 31B Gembrain or Gemma 4 31B Gembrain X Core?

Gembrain is the original merge (card created 2026-05-11); Gembrain X Core is Nimbz’s ground-up rebuild of it (2026-06-30). Gemma 4 31B Gembrain is $0.35 / $1.575 per million tokens in / out, $1.49 for 1,000 chat turns; Gemma 4 31B Gembrain X Core is $1.071 / $1.071 per million tokens in / out, $2.68 for 1,000 chat turns. Both run on the same key, so send the same prompt to each.

## Related

- Uncensored LLM API: https://uplinkswitch.ai/uncensored
- SillyTavern setup: https://uplinkswitch.ai/guides/sillytavern
- Janitor AI setup: https://uplinkswitch.ai/guides/janitor-ai
- Chub AI setup: https://uplinkswitch.ai/guides/chub-ai
- SDKs setup: https://uplinkswitch.ai/guides/sdks
- Every model and price: https://uplinkswitch.ai/llms-full.txt
- Machine catalog: https://uplinkswitch.ai/ai-catalog.json
