Gemma4
gemma4Pricing
List prices at Sarvam, in US dollars per million tokens.
| Tier | Input / 1M | Output / 1M | |
|---|---|---|---|
| Standard | $0.372 | $0.957 | |
| Cached input 71% off input | $0.106 | 71% off input |
What it costs a month
At Sarvam list prices, 30 days.
- Chat assistant5,000 requests a day, 2K in / 0.5K out, cached$160
- RAG over documents2,000 requests a day, 8K in / 0.6K out, cached$149
- Coding agent1,000 requests a day, 40K in / 2K out, cached$281
- Overnight batch20,000 requests a day, 4K in / 0.4K out$1,123
Where to run it
1 host serve Gemma4. The comparison is on blended price, 3 parts input to 1 part output.
| Host | In / out per 1M | Model id | |
|---|---|---|---|
SarvamCloud gemma4 | $0.372 / $0.957 | gemma4 |
Capabilities
Core
- Streaming
- Function calling
- JSON mode
- Structured outputs
Multimodal
- Vision
- Image input
- Audio
- Image generation
- Video
Advanced
- Reasoning
- Tool calling
- MCP
- Prompt caching
- Batch API
- Embeddings
- Takes in
- TextImages
- Produces
- Text
- Features
- Parallel tool callsPrompt caching
- Open weights
- License: Gemma LicenseRuntimes: Ollama, llama.cpp, vLLM
Cheaper alternatives
Current models that cost less and keep most of what this one can do: tools, vision, reasoning, structured output, caching and enough context.
Same model, cheaper host
No host sells it for less than Sarvam.
Smaller Google models
No cheaper Google model keeps its key capabilities.
Other frontier labs
- 11% less
- 61% less
- 61% less
- 49% less
Open-weight picks
- 7% less
- 16% less
- 33% less
- 50% less
Call it
Using Sarvam's API.
from litellm import completion
response = completion(
model="sarvam/gemma4",
messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)Quick answers
How much does Gemma4 cost?
On Sarvam, Gemma4 costs $0.372 per million input tokens and $0.957 per million output tokens. Cached input costs $0.106 per million tokens.
Which APIs offer Gemma4?
Gemma4 runs on 1 API: Sarvam.
What is Gemma4's context window?
262K tokens, with up to 262K tokens in one reply.
Is Gemma4 being retired?
No retirement date is scheduled for it on any API we track.
What are cheaper alternatives to Gemma4?
Models that cost less and keep most of what it can do: GPT-5.4 Nano on OpenAI (11% less), Claude Haiku 5.5 on Anthropic (61% less) and Qwen3.7 Plus on Replicate (7% less). Savings are on a mix of 3 input tokens to 1 output token.
What is Gemma4's API model id?
Use gemma4 with Sarvam.
Sources
Raw catalog entry for gemma4 on Sarvam
{
"cache_read_input_token_cost": 1.063829787e-7,
"input_cost_per_token": 3.723404255e-7,
"litellm_provider": "sarvam",
"max_input_tokens": 262144,
"max_output_tokens": 262144,
"mode": "chat",
"output_cost_per_token": 9.574468085e-7,
"source": "https://www.sarvam.ai/token-factory/pricing",
"supports_audio_input": false,
"supports_function_calling": true,
"supports_parallel_function_calling": true,
"supports_prompt_caching": true,
"supports_reasoning": true,
"supports_response_schema": true,
"supports_system_messages": true,
"supports_tool_choice": true,
"supports_video_input": false,
"supports_vision": true
}