Gemma 4 31B IT
Gemma 4 31B IT is Google's fast, low-cost model for high-volume work. It reads images and reasons step by step before it answers. It takes up to 262.14K tokens of context and writes up to 131.07K per response.
Output price
$0.336
USD / 1M tokens
16% below list price
Add $5, get $5 more on your first top-up.
Same Gemma 4 31B IT. 16% less.
Specs.
- Model ID
- gemma-4-31b-it
- Made by
- Context window
- 262.14K tokens
- Max output
- 131.07K tokens
- Endpoint
- /v1/chat/completions
- Billing
- Per token, from one balance
Edge gateways
Requests enter at the gateway nearest your app and go straight to the model, so routing adds very little to each call.
One key, every model
Switch models by changing a string. One prepaid balance covers all of them, billed per token.
Nothing stored
We keep token counts for billing, never your prompts or responses.
Call Gemma 4 31B IT in a minute.
Point any OpenAI-compatible client at our base URL, keep your key in an environment variable, and use the model ID gemma-4-31b-it.
import os
from openai import OpenAI
client = OpenAI(
base_url="https://api.promptsforless.com/v1",
api_key=os.environ["PFL_API_KEY"],
)
response = client.chat.completions.create(
model="gemma-4-31b-it",
messages=[{"role": "user", "content": "Hello!"}],
)
print(response.choices[0].message.content)More from Google.
Questions.
How much does Gemma 4 31B IT cost?
$0.336 / 1M tokens output and $0.1176 / 1M tokens input, 16% below Google's list price. You pay per token from a prepaid balance, with no subscription or minimum. We match your first $5 top-up, so you start with $10 of credit.
Is it the real Gemma 4 31B IT?
Yes. Your requests run on Google's Gemma 4 31B IT, not a distilled copy or a substitute. The discount comes from how we buy capacity, not from changing the model.
Which tools can use Gemma 4 31B IT?
Anything that speaks the OpenAI API: set the base URL to our endpoint and use the model ID gemma-4-31b-it. We have setup guides for Cursor, Codex, OpenCode, the OpenAI and Vercel AI SDKs, LangChain and more.
How fast is it?
Requests go through our edge gateways, so the network hop adds very little on top of Gemma 4 31B IT's own generation time. Responses stream back token by token.