Try Bifrost Enterprise free for 14 days.
Request access

mercury-coder-small Cost Calculator - Vercel Ai Gateway

Calculate the cost of using mercury-coder-small from Vercel Ai Gateway for your AI applications

Pricing data last updated:

mercury-coder-small Cost Calculator

Mode: Chat

Max: 32,000 tokens

Max: 16,384 tokens

Cost Breakdown

Input Cost$0.00025000
Output Cost$0.001000
Total Cost$0.001250

Pricing Details

Input: $0.0000002500 per token
Output: $0.00000100 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

Limits

Max Input Tokens32,000
Max Output Tokens16,384
Max Tokens16,384

About mercury-coder-small

mercury-coder-small is a chat model from Vercel Ai Gateway, one of 95 chat models they offer. It is priced at $0.25 per 1M input tokens and $1.00 per 1M output tokens, ranking 784 out of 2292 chat models by cost and cheaper than 65% of models in this category. It accepts up to 32K input tokens.

Pricing Information

Input Cost$0.25 per 1M tokens
Output Cost$1.00 per 1M tokens

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

Technical Specifications

Maximum Input Tokens32,000
Maximum Output Tokens16,384
Maximum Total Tokens16,384

Pro Tip

Use the maximum token limits shown above to understand the model's capacity. This model can handle up to 32,000 input tokens. The maximum output length is 16,384 tokens.

How mercury-coder-small Pricing Compares

At $0.25 per 1M input tokens and $1.00 per 1M output tokens, mercury-coder-small ranks 784 out of 2292 chat models by input cost. It is more affordable compared to the median of $0.55 for chat models, and is cheaper than 65% of models in this category.

ModelProviderInput / 1M tokensOutput / 1M tokensvs mercury-coder-small
ai21.jamba-1-5-mini-v1:0AWS Bedrock$0.20$0.40-20%
amazon.nova-2-lite-v1:0AWS Bedrock$0.30$2.50+20%
amazon.titan-text-lite-v1AWS Bedrock$0.30$0.40+20%

Alternatives to mercury-coder-small

Similar chat models from other providers

AWS Bedrock
ai21.jamba-1-5-mini-v1:0
$0.20/1M input
-20% vs mercury-coder-small
AWS Bedrock
amazon.nova-2-lite-v1:0
$0.30/1M input
+20% vs mercury-coder-small
AWS Bedrock
amazon.titan-text-lite-v1
$0.30/1M input
+20% vs mercury-coder-small
AWS Bedrock
anthropic.claude-3-haiku-20240307-v1:0
$0.25/1M input
0% vs mercury-coder-small
Anyscale
Llama-2-13b-chat-hf
$0.25/1M input
0% vs mercury-coder-small

Frequently Asked Questions

Is mercury-coder-small cheaper than ai21.jamba-1-5-mini-v1:0?

No. mercury-coder-small costs $0.25 per 1M input tokens while ai21.jamba-1-5-mini-v1:0 costs $0.20 per 1M input tokens, making ai21.jamba-1-5-mini-v1:0 20% more affordable for input. However, mercury-coder-small may offer different capabilities or performance characteristics that justify the price difference.

How does mercury-coder-small pricing compare to the average chat model?

mercury-coder-small input pricing is $0.25 per 1M tokens, which is 55% below the median of $0.55 for chat models. It ranks 784 out of 2292 chat models by input cost, making it cheaper than 65% of models in this category. For output, it costs $1.00 per 1M tokens compared to the median of $1.50.

What makes mercury-coder-small different from other Vercel Ai Gateway models?

Among Vercel Ai Gateway's 95 chat models, mercury-coder-small ranks 31 by input cost.

What are the best alternatives to mercury-coder-small?

The most comparable chat models to mercury-coder-small are: ai21.jamba-1-5-mini-v1:0 from AWS Bedrock ($0.20/1M input tokens); amazon.nova-2-lite-v1:0 from AWS Bedrock ($0.30/1M input tokens); amazon.titan-text-lite-v1 from AWS Bedrock ($0.30/1M input tokens); anthropic.claude-3-haiku-20240307-v1:0 from AWS Bedrock ($0.25/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 do I calculate mercury-coder-small costs?

mercury-coder-small 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.25 and generating 1M output tokens costs $1.00.