Gemma 4 31B IT
google/gemma-4-31b-itA chat model with a 262K-token context window, at $0.147 per million input tokens and $0.42 per million output tokens.
Details
- Maker
- Kind
- Chat
- Context window
- 262,144 tokens
- Max output
- 131,072 tokens
- Input
- $0.147 per million tokens
- Output
- $0.42 per million tokens
- Capabilities
- Reasoning, tool use, vision, file input
- Takes
- Text, image, pdf
- Returns
- Text
- Zero data retention
- Not on every provider
- No training on requests
- Not on every provider
- Released
- 2026-04-02
Description
Gemma 4 31B is engineered to tackle the most demanding enterprise workloads and complex reasoning tasks. With an expansive 256K-token context window, the 31B model can effortlessly ingest entire codebases, and massive sets of images in a single prompt.
Call it
curl
curl https://phantom.codes/v1/chat/completions \
-H "Authorization: Bearer $PHANTOM_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "google/gemma-4-31b-it",
"messages": [
{"role": "user", "content": "Hello"}
]
}'Set PHANTOM_KEY to your key. Any OpenAI client works with the base URL https://phantom.codes/v1.