Back to Models
google logoGoogle
japan-gemma-4-31b

Gemma 4 31B

Gemma 4 31B Instruct is Google DeepMind's 30.7B dense multimodal model supporting text and image input with text output. Features a 256K token context window, configurable thinking/reasoning mode, native function...

4/2/2026
262,144 tokens
Input: $0.1657/M
Output: $0.6436/M

Specifications

Modalities

Input
image
text
video
Output
text

Supported Parameters

frequency_penalty
include_reasoning
logit_bias
logprobs
max_tokens
min_p
presence_penalty
reasoning
repetition_penalty
response_format
seed
stop
structured_outputs
temperature
tool_choice
tools
top_a
top_k
top_logprobs
top_p

Max Output Tokens

262,144

Data policy

Prompt retention
Unknown — we could not confirm
Training
Not used for training

"Unknown" does not mean "safe". It means we could not confirm it.

Whether a provider trains on prompts is a declared value from our terms with them. Retention is determined from the upstream listing for every host this model can reach. Neither is guessed.

Measured performance

Time to first response (p50)1.0s
Throughput (p50)77 tokens/s

    Measured through FastMetal's own gateway over the last 30 days (660 first-response samples).

    Throughput is sampled once a day: the median of 26 observations over the last 30 days.

    Time to first response is measured to the first streamed chunk; throughput counts all output tokens, including reasoning tokens. These are observations, not a performance guarantee.

    Code Examples

    curl https://api.fastmetal.ai/v1/chat/completions \
      -H "Content-Type: application/json" \
      -H "Authorization: Bearer YOUR_API_KEY" \
      -d '{
        "model": "japan-gemma-4-31b",
        "messages": [{"role": "user", "content": "Hello!"}]
      }'

    Frequently asked questions

    How much does the Gemma 4 31B API cost?
    On FastMetal, Gemma 4 31B is billed per token: $0.1657 per 1M input tokens and $0.6436 per 1M output tokens on a US-dollar account, before tax. Usage is drawn from a prepaid balance; there is no subscription or monthly fee.
    Can I call Gemma 4 31B with the OpenAI SDK?
    Yes. Point base_url at https://api.fastmetal.ai/v1 and pass "japan-gemma-4-31b" as the model; existing OpenAI-style code works unchanged, including streaming, tool calls and structured output.
    What is the context window of Gemma 4 31B?
    262,144 tokens, shared between the prompt and the response.
    What do I need to try Gemma 4 31B?
    Create an account and add credit; the model is then available both in the browser chat and over the API. There is no contract or minimum spend.

    Try Gemma 4 31B right now

    Gemma 4 31B is available on FastMetal through one API key. Start in the browser, or call it from the OpenAI SDK.