This model is deprecated. We only continue performance benchmarking for the default 10k input token workload. Results for other workloads are historical and no longer updated.
Google has launched a newer model, Gemma 4 E4B. We suggest considering it instead.
For more information, see comparison of Gemma 4 E4B to other models and API provider benchmarks for Gemma 4 E4B.
Gemma 3 4B Instruct API Provider Benchmarking & Analysis
This analysis is intended to support you in choosing the best API provider of Gemma 3 4B Instruct for your use-case.
Fastest
Output speed
Total 3 providers
Lowest Latency
Time to first token
Total 3 providers
Lowest Price
Blended price (per 1M tokens)
Total 3 providers
Gemma 3 4B is available through 3 API providers, each offering different performance characteristics and pricing. Below is a comparison of the key metrics across providers.
- For output speed, the top providers are Amazon (216.3 t/s) and DeepInfra (48.3 t/s).
- For latency, Amazon (0.91s) and DeepInfra (1.06s) offer the lowest time to first token.
- For pricing, Google (AI Studio) (0.00), Amazon (0.04), and DeepInfra (0.06) offer the lowest blended prices per 1M tokens.
- Amazon offers the best performance with both the highest speed and lowest latency. For cost optimization, Google (AI Studio) provides the most competitive pricing.
Highlights
Pricing
Pricing: Cache Hit, Input, and Output
Pricing: Blended Price
Output Speed vs. Price
Speed
Measured by Output Speed (tokens per second)
Output Speed: Gemma 3 4B Instruct
Latency vs. Output Speed
Latency
Measured by Time (seconds) to First Token
Time to First Token
End-to-End Response Time
Seconds to output 500 tokens, calculated based on time to first token, 'thinking' time for reasoning models, and output speed
End-to-End Response Time
Key Comparison Metrics & API Features
Frequently Asked Questions
Common questions about Gemma 3 4B Instruct providers
Gemma 3 4B Instruct is available through 3 API providers: Amazon, Google (AI Studio), and DeepInfra. Each provider offers different performance characteristics and pricing.
Gemma 3 4B Instruct is currently available through 3 API providers that we benchmark and track.
The most affordable providers for Gemma 3 4B Instruct by blended price are Google (AI Studio) ($0.00 per 1M tokens), Amazon ($0.04 per 1M tokens), and DeepInfra ($0.06 per 1M tokens). Blended price uses a 7:2:1 cache hit/input/output token ratio.
The providers with the lowest input token pricing for Gemma 3 4B Instruct are Google (AI Studio) ($0.00 per 1M input tokens), Amazon ($0.04 per 1M input tokens), and DeepInfra ($0.05 per 1M input tokens).
The providers with the lowest output token pricing for Gemma 3 4B Instruct are Google (AI Studio) ($0.00 per 1M output tokens), Amazon ($0.08 per 1M output tokens), and DeepInfra ($0.10 per 1M output tokens).
1 of 3 providers support JSON mode for Gemma 3 4B Instruct: DeepInfra.
For Gemma 3 4B Instruct, Amazon offers the best performance with highest speed and lowest latency. For cost optimization, Google (AI Studio) provides the most competitive pricing.
When choosing a provider for Gemma 3 4B Instruct, consider: output speed (for throughput-intensive tasks), latency (for interactive applications requiring quick first responses), pricing (for cost-sensitive workloads), and API features like JSON mode or function calling.
Yes, provider performance can vary over time due to infrastructure changes, load balancing, and updates. We continuously benchmark all providers and display historical performance trends in the "Over Time" charts.
For information about Gemma 3 4B Instruct's intelligence, capabilities, modalities, and how it compares to other models, see the model overview page. View model overview