Try Bifrost Enterprise free for 14 days.
Request access

gemma-4-31B-it Cost Calculator - Hugging Face

Calculate the cost of using gemma-4-31B-it from Hugging Face for your AI applications

Pricing data last updated:

gemma-4-31B-it Cost Calculator

Mode: Chat

Max: 262,144 tokens

Cost Breakdown

Input Cost$0.00014000
Output Cost$0.00040000
Total Cost$0.00054000

Pricing Details

Input: $0.0000001400 per token
Output: $0.0000004000 per token
[ WE'RE OPEN SOURCE ]

Scale with the Fastest LLM Gateway

Built for enterprise-grade reliability, governance, and scale. Deploy in seconds.

Model Specifications

Capabilities

Function Calling
Vision

Limits

Max Input Tokens262,144
Max Tokens262,144

About gemma-4-31B-it

gemma-4-31B-it is a chat model from Hugging Face, one of 182 chat models they offer. It is priced at $0.14 per 1M input tokens and $0.40 per 1M output tokens, ranking 494 out of 2628 chat models by cost and cheaper than 81% of models in this category. gemma-4-31B-it supports vision, function calling, structured output. Its 262K-token context window is in the top 29% among chat models.

Pricing Information

Input Cost$0.14 per 1M tokens
Output Cost$0.40 per 1M tokens

Note: Use the interactive calculator above to estimate costs for your specific usage patterns.

Technical Specifications

Maximum Input Tokens262,144
Maximum Total Tokens262,144

Pro Tip

Use the maximum token limits shown above to understand the model's capacity. This model can handle up to 262,144 input tokens.

Model Capabilities

Function Calling - Execute custom functions and tools
Vision - Process and understand images
Response Schema - Structured output formatting

How gemma-4-31B-it Pricing Compares

At $0.14 per 1M input tokens and $0.40 per 1M output tokens, gemma-4-31B-it ranks 494 out of 2628 chat models by input cost. It is more affordable compared to the median of $0.50 for chat models, and is cheaper than 81% of models in this category.

gemma-4-31B-it is one of 182 Hugging Face chat models, with support for vision, function calling, structured output. its 262K-token context window places it in the top 29% of chat models.

ModelProviderInput / 1M tokensOutput / 1M tokensvs gemma-4-31B-it
gpt-4o-mini-2024-07-18Azure$0.17$0.66+18%
gpt-4o-miniAzure$0.15$0.60+7%
gemini-2.0-flash-001Vertex AI$0.15$0.60+7%

Alternatives to gemma-4-31B-it

Similar chat models from other providers

Azure
gpt-4o-mini-2024-07-18
$0.17/1M input
+18% vs gemma-4-31B-it
Azure
gpt-4o-mini
$0.15/1M input
+7% vs gemma-4-31B-it
Vertex AI
gemini-2.0-flash-001
$0.15/1M input
+7% vs gemma-4-31B-it
Google Gemini
gemini-2.0-flash-001
$0.15/1M input
+7% vs gemma-4-31B-it
OpenAI
gpt-4o-mini
$0.15/1M input
+7% vs gemma-4-31B-it

Frequently Asked Questions

Is gemma-4-31B-it cheaper than gpt-4o-mini-2024-07-18?

Yes. gemma-4-31B-it costs $0.14 per 1M input tokens compared to gpt-4o-mini-2024-07-18's $0.17 per 1M input tokens, making it 18% more affordable. Both are chat models and share support for vision, function calling, prompt caching, structured output.

How does gemma-4-31B-it pricing compare to the average chat model?

gemma-4-31B-it input pricing is $0.14 per 1M tokens, which is 72% below the median of $0.50 for chat models. It ranks 494 out of 2628 chat models by input cost, making it cheaper than 81% of models in this category. For output, it costs $0.40 per 1M tokens compared to the median of $1.44.

What makes gemma-4-31B-it different from other Hugging Face models?

Among Hugging Face's 182 chat models, gemma-4-31B-it ranks 54 by input cost.

What are the best alternatives to gemma-4-31B-it?

The most comparable chat models to gemma-4-31B-it are: gpt-4o-mini-2024-07-18 from Azure ($0.17/1M input tokens); gpt-4o-mini from Azure ($0.15/1M input tokens); gemini-2.0-flash-001 from Vertex AI ($0.15/1M input tokens); gemini-2.0-flash-001 from Google Gemini ($0.15/1M input tokens). These alternatives were selected based on similar capabilities, pricing, and provider diversity. You can compare any of these models in detail using the Bifrost Model Library.

How large is gemma-4-31B-it's context window?

gemma-4-31B-it supports up to 262,144 input tokens, placing it in the top 29% of chat models by context window size (rank 658 of 2462). This makes it suitable for processing long documents, extensive code repositories, or maintaining detailed conversation histories.

How do I check if Hugging Face is down?

You can monitor Hugging Face service health in real time on the Bifrost Hugging Face Status page. It tracks current component status, active incidents, and historical reliability data pulled from the official status page every 60 seconds.

How do I calculate gemma-4-31B-it costs?

gemma-4-31B-it is priced based on input and output tokens. Use the interactive calculator at the top of this page to estimate costs for your specific workload. Enter your expected input and output tokens volume and the calculator will show the total cost breakdown. For reference, processing 1M input tokens costs $0.14 and generating 1M output tokens costs $0.40.