google logo

Google: Gemma 4 31B

GPU TEE
Chat
google/gemma-4-31b-it
Created May 26, 2026|262K context|$0.15/M input tokens|$0.46/M output tokens
Intel TDXNVIDIA CC

Gemma 4 31B Instruct is Google DeepMind's 30.7B dense model. Features a 256K token context window, configurable thinking/reasoning mode, native function calling, and strong multilingual performance. Served as a text-only TEE deployment via NEAR AI.

Providers for Google: Gemma 4 31B

RedPill routes requests to the best providers that are able to handle your prompt size and parameters, with fallbacks to maximize uptime.

near-ai logo
near-ai
Total Context
262K
chutes logo
chutes
Total Context
262K
tinfoil logo
tinfoil
Total Context
262K

API

RedPill provides an OpenAI-compatible completion API to all models & providers that you can call directly, or using the OpenAI SDK. Additionally, some third-party SDKs are available.

fetch("https://api.redpill.ai/v1/chat/completions", {
  method: "POST",
  headers: {
    "Authorization": "Bearer <YOUR-REDPILL-API-KEY>",
    "Content-Type": "application/json"
  },
  body: JSON.stringify({
    "model": "google/gemma-4-31b-it",
    "messages": [
      {
        "role": "user",
        "content": "What is the meaning of life?"
      }
    ]
  })
})