Stay connected with us on X, Discord, and LinkedIn to stay up to date with future analysis
Gemma 3 12B Instruct logo

Gemma 3 12B Instruct API Provider Benchmarking & Analysis

Open weights model

Released March 2025

Analysis of API providers for Gemma 3 12B Instruct across performance metrics including latency (time to first token), output speed (output tokens per second), price and others. API providers benchmarked include Google (AI Studio), DeepInfra, Databricks, Amazon Bedrock, Cloudflare.

Fastest

#1
AmazonAmazon
108.4 t/s
#2
DatabricksDatabricks
97.9 t/s
#3
CloudflareCloudflare
76.5 t/s
#4
DeepInfraDeepInfra
68.7 t/s
#5
Google (AI Studio)Google (AI Studio)
35.3 t/s

Output speed

Total 5 providers

Lowest Latency

#1
DeepInfraDeepInfra
0.25 s
#2
CloudflareCloudflare
0.34 s
#3
AmazonAmazon
0.58 s
#4
DatabricksDatabricks
0.60 s
#5
Google (AI Studio)Google (AI Studio)
15.20 s

Time to first token

Total 5 providers

Lowest Price

#1
DeepInfraDeepInfra
$0.06
#2
AmazonAmazon
$0.14
#3
DatabricksDatabricks
$0.24
#4
CloudflareCloudflare
$0.40

Blended price (per 1M tokens)

Total 5 providers

Gemma 3 12B is available through 5 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 (108.4 t/s), Databricks (97.9 t/s), Cloudflare (76.5 t/s). Speed varies significantly across providers, with a 207% difference between the fastest and slowest.
  • For latency, DeepInfra (0.25s), Cloudflare (0.34s), Amazon (0.58s) offer the lowest time to first token.
  • For pricing, DeepInfra (0.06), Amazon (0.14), Databricks (0.24) offer the lowest blended prices per 1M tokens. Prices vary up to 6.4x across providers.
  • DeepInfra offers both the lowest latency and best pricing, making it attractive for cost-conscious applications. Amazon is the fastest option for throughput-intensive workloads.
Intelligence
Artificial Analysis Intelligence Index; Higher is better
Speed
Output Tokens per Second; Higher is better
Price
USD per 1M Tokens; Lower is better

Pricing: Input and Output Prices

USD per 1M Tokens; Lower is better
Input price
Output price

Price per token included in the request/message sent to the API, represented as USD per million Tokens.

Price per token generated by the model (received from the API), represented as USD per million Tokens.

Speed vs. Price

Output Speed: Output Tokens per Second; Price: USD per 1M Tokens
Most attractive quadrant
Amazon
Cloudflare
Databricks
DeepInfra

Tokens per second received while the model is generating tokens (ie. after first chunk has been received from the API for models which support streaming).

Price per token, represented as USD per million Tokens. Price is a blend of Input & Output token prices (3:1 ratio).

Figures represent median (P50) measurement over the past 72 hours to reflect sustained changes in performance.

Speed

Measured by Output Speed (tokens per second)

Output Speed

Output Tokens per Second; Higher is better; 1,000 Input Tokens

Tokens per second received while the model is generating tokens (ie. after first chunk has been received from the API for models which support streaming).

Figures represent median (P50) measurement over the past 72 hours to reflect sustained changes in performance.

Latency vs. Output Speed

Latency: Seconds to First Token Received; Output Speed: Output Tokens per Second; 1,000 Input Tokens
Most attractive quadrant
Size represents Price (USD per M Tokens)
Amazon
Cloudflare
Databricks
DeepInfra
Google (AI Studio)

Tokens per second received while the model is generating tokens (ie. after first chunk has been received from the API for models which support streaming).

Time to first token received, in seconds, after API request sent. For reasoning models which share reasoning tokens, this will be the first reasoning token. For models which do not support streaming, this represents time to receive the completion.

Price per token, represented as USD per million Tokens. Price is a blend of Input & Output token prices (3:1 ratio).

Figures represent median (P50) measurement over the past 72 hours to reflect sustained changes in performance.

Latency

Measured by Time (seconds) to First Token

Time to First Token

Seconds to First Token Received; Lower is better; 1,000 Input Tokens

Time to first token received, in seconds, after API request sent. For reasoning models which share reasoning tokens, this will be the first reasoning token. For models which do not support streaming, this represents time to receive the completion.

Figures represent median (P50) measurement over the past 72 hours to reflect sustained changes in performance.

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

Seconds to Output 500 Tokens, including reasoning model 'thinking' time; Lower is better; 1,000 Input Tokens
Input processing time
'Thinking' time (reasoning models)
Outputting time

Seconds to receive a 500 token response. Key components:

  • Input time: Time to receive the first response token
  • Thinking time (only for reasoning models): Time reasoning models spend outputting tokens to reason prior to providing an answer. Amount of tokens based on the average reasoning tokens across a diverse set of 60 prompts (methodology details).
  • Answer time: Time to generate 500 output tokens, based on output speed

For fair comparison, the number of reasoning tokens is standardized across all providers for each model based on the model's representative query token counts.

Figures represent median (P50) measurement over the past 72 hours to reflect sustained changes in performance.

API Features

Function (Tool) Calling & JSON Mode

ModelsFunction callingJSON Mode
Google (AI Studio) logoGoogle (AI Studio)
DeepInfra logoDeepInfra
Databricks logoDatabricks
Amazon logoAmazon
Cloudflare logoCloudflare

Indicates whether the provider supports function calling in their API. Function calling is also known as 'Tool Calling'.

Indicates whether the provider supports JSON mode in their API. When JSON mode is enabled, the models will always return a valid JSON object.

Context Window

Context Window: Tokens Limit; Higher is better

Maximum number of combined input & output tokens. Output tokens commonly have a significantly lower limit (varied by model).

While models have their own context window, in cases this is limited by providers.

Summary Table of Key Comparison Metrics

FAQ

Common questions about Gemma 3 12B Instruct providers

Gemma 3 12B Instruct is available through 5 API providers: Google (AI Studio), DeepInfra, Databricks, Amazon, and Cloudflare. Each provider offers different performance characteristics and pricing.

Gemma 3 12B Instruct is currently available through 5 API providers that we benchmark and track.

The fastest providers for Gemma 3 12B Instruct by output speed are Amazon (108.4 t/s), Databricks (97.9 t/s), and Cloudflare (76.5 t/s). Output speed measures how quickly tokens are generated after the model starts responding.

The providers with the lowest time to first token for Gemma 3 12B Instruct are DeepInfra (0.25s), Cloudflare (0.34s), and Amazon (0.58s). Lower latency means faster initial response time.

The most affordable providers for Gemma 3 12B Instruct by blended price are DeepInfra ($0.06 per 1M tokens), Amazon ($0.14 per 1M tokens), and Databricks ($0.24 per 1M tokens). Blended price uses a 3:1 input to output token ratio.

The providers with the lowest input token pricing for Gemma 3 12B Instruct are DeepInfra ($0.04 per 1M input tokens), Amazon ($0.09 per 1M input tokens), and Databricks ($0.15 per 1M input tokens).

The providers with the lowest output token pricing for Gemma 3 12B Instruct are DeepInfra ($0.13 per 1M output tokens), Amazon ($0.29 per 1M output tokens), and Databricks ($0.50 per 1M output tokens).

Prices for Gemma 3 12B Instruct vary up to 6.4x across providers. The most affordable is DeepInfra at $0.06 per 1M tokens, while Cloudflare charges $0.40 per 1M tokens.

Output speed for Gemma 3 12B Instruct varies significantly across providers. Amazon is the fastest at 108.4 t/s, which is 3.1x faster than Google (AI Studio) at 35.3 t/s.

2 of 5 providers support JSON mode for Gemma 3 12B Instruct: DeepInfra and Databricks.

4 of 5 providers support function calling for Gemma 3 12B Instruct: DeepInfra, Databricks, Amazon, and Cloudflare.

The best provider for Gemma 3 12B Instruct depends on your priorities: Amazon offers the highest output speed, DeepInfra has the lowest latency, and DeepInfra provides the most competitive pricing.

When choosing a provider for Gemma 3 12B 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 12B Instruct's intelligence, capabilities, modalities, and how it compares to other models, see the model overview page. View model overview