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
Analysis of API providers for Gemma 3 4B Instruct across performance metrics including latency (time to first token), output speed (output tokens per second), price and others. API providers benchmarked include Amazon Bedrock, Google (AI Studio), DeepInfra.
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 (220.6 t/s), DeepInfra (39.8 t/s).
- For latency, DeepInfra (0.96s), Amazon (1.00s) offer the lowest time to first token.
- For pricing, Google (AI Studio) (0.00), Amazon (0.04), DeepInfra (0.06) offer the lowest blended prices per 1M tokens.
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: Gemma 3 4B Providers
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: Gemma 3 4B Providers
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.
The best provider for Gemma 3 4B Instruct depends on your priorities: Amazon offers the highest output speed, DeepInfra has the lowest latency, and 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