Model

Gemma 4 31B.
Same key.

by Google

Call Gemma 4 31B with the same key and base_url as the rest of the catalog. Billed per token from your prepaid balance.

google/gemma-4-31b-itTry it in the console
Price per 1M tokens
Inputprompt tokens$0.20
Outputcompletion tokens$0.40

What Utopixel charges your balance, per 1M tokens, base tier.

Quick facts
Model id
google/gemma-4-31b-it
Provider
Google
Context
262K
Max output
16K
Modalities
image, text, video to text
APIs
OpenAI SDKAnthropic SDK
Billing
Prepaid balance, usage.cost on every response
About this model

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...

Request

Call Gemma 4 31B today.

Same request shape across the catalog. Swap the base_url, keep your SDK, set model to the id.

OpenAI SDKbase_url https://utopixel.online/api/v1
main.pyopenai
1import os
2from openai import OpenAI
3
4client = OpenAI(
+ base_url="https://utopixel.online/api/v1",
6 api_key=os.environ["UTOPIXEL_API_KEY"],
7)
8r = client.chat.completions.create(
9 model="google/gemma-4-31b-it",
10 messages=[{"role": "user", "content": "Hello"}],
11)
12print(r.usage.cost)
Anthropic SDKbase_url https://utopixel.online/api
main.pyanthropic
1import os
2import anthropic
3
4client = anthropic.Anthropic(
+ base_url="https://utopixel.online/api",
6 api_key=os.environ["UTOPIXEL_API_KEY"],
7)
8m = client.messages.create(
9 model="google/gemma-4-31b-it",
10 max_tokens=1024,
11 messages=[{"role": "user", "content": "Hello"}],
12)
cURL
1curl https://utopixel.online/api/v1/chat/completions \
2 -H "Authorization: Bearer $UTOPIXEL_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{"model": "google/gemma-4-31b-it", "messages": [{"role": "user", "content": "Hello"}]}'
Availability

Where to call it.

Latency appears once a channel has enough measured requests.

RouteContextInput / MOutput / MCache read / M
Utopixel
OpenAI ChatAnthropic Messages
262K$0.20$0.40-
Supported parameters
frequency_penaltyinclude_reasoninglogit_biaslogprobsmax_completion_tokensmax_tokensmin_ppresence_penaltyreasoningrepetition_penaltyresponse_formatseedstopstructured_outputstemperaturetool_choicetoolstop_ktop_logprobstop_p
01Cost example

What a call
costs you.

Tokens times the Utopixel price. Drag the sliders to match your traffic. Every response returns its own usage.cost.

Cost example, Gemma 4 31B

Per requestPer month
Total per month$38.00
02Fallback

Use Gemma 4 31B
as a backup.

Put Gemma 4 31B in a models array. If the first model's upstream errors, Utopixel sends the same request to the next one. You pay only for the call that answers.

See fallback docs
request.jsonPOST /v1/chat/completions
1{
- "model": "openai/gpt-6.1-sol",
+ "models": [
+ "openai/gpt-6.1-sol",
+ "google/gemma-4-31b-it"
+ ],
7 "messages": [ ... ]
8}
openai/gpt-6.1-solattempt 1, upstream error502
google/gemma-4-31b-itattempt 2, answered200

Start building in minutes.

One API key for the models of OpenAI, Google, DeepSeek, Moonshot AI, Qwen, xAI, Z.ai, Meta, Amazon, AionLabs, Anthropic, Baidu, ByteDance Seed, Cohere, Elorian, Fireworks AI, IBM, inclusionAI, Inference.net, KT, Liquid AI, Meituan, Meta, MiniMax, Mistral AI, Moondream, Motif Technologies, Nex AGI, NVIDIA, Particle AI, Perceptron, Prism ML, Reflection AI, Reka, Relace, Ricursive AI, Sakana AI, StepFun, Tencent, Thinking Machines, Unbiased, Upstage, Writer and Xiaomi. Start free, no card needed.