---
title: "claude-4-sonnet Cost Calculator - Vercel Ai Gateway"
description: "Calculate the cost of using claude-4-sonnet from Vercel Ai Gateway. Input costs $3.00 and output $15.00 per 1M tokens."
url: "https://www.getmaxim.ai/bifrost/llm-cost-calculator/provider/vercel_ai_gateway/model/claude-4-sonnet"
markdown: "https://www.getmaxim.ai/bifrost/llm-cost-calculator/provider/vercel_ai_gateway/model/claude-4-sonnet.md"
---

# claude-4-sonnet Cost Calculator - Vercel Ai Gateway

> Calculate the cost of using claude-4-sonnet from Vercel Ai Gateway. Input costs $3.00 and output $15.00 per 1M tokens.

## Important Links

- [View MCP Gateway](https://www.getmaxim.ai/bifrost/resources/mcp-gateway.md)
- [Features](https://www.getmaxim.ai/bifrost/#features)
- [Enterprise](https://www.getmaxim.ai/enterprise)
- [Pricing](https://www.getmaxim.ai/pricing)
- [Docs](https://docs.getbifrost.ai)
- [GitHub](https://github.com/maximhq/bifrost)
- [Book a Demo](https://www.getmaxim.ai/book-a-demo)

## About claude-4-sonnet

claude-4-sonnet is a chat model from Vercel Ai Gateway, one of 95 chat models they offer. It is priced at $3.00 per 1M input tokens and $15.00 per 1M output tokens, ranking 2558 out of 2910 chat models by cost and cheaper than 11% of models in this category. claude-4-sonnet supports function calling. Its 200K-token context window is in the top 47% among chat models.

## Pricing

Published Vercel Ai Gateway pricing for claude-4-sonnet.

- **$3.00 / 1M tokens Input.**
- **$15.00 / 1M tokens Output.**

## Technical Specifications

- **Chat Mode.**
- **200,000 Max Input Tokens.**
- **64,000 Max Output Tokens.**
- **64,000 Max Tokens.**

## Model Capabilities

claude-4-sonnet supports: Function Calling, Tool Choice.

## How Pricing Compares

At $3.00 per 1M input tokens and $15.00 per 1M output tokens, claude-4-sonnet ranks 2558 out of 2910 chat models by input cost. It is more expensive compared to the median of $0.55 for chat models, and is cheaper than 11% of models in this category.

claude-4-sonnet is one of 95 Vercel Ai Gateway chat models, with support for function calling. its 200K-token context window places it in the top 47% of chat models.

| Model | Provider | Input $/1M | Output $/1M | vs claude-4-sonnet |
| --- | --- | --- | --- | --- |
| us.writer.palmyra-x4-v1:0 | AWS Bedrock | $2.50 | $10.00 | -17% |
| writer.palmyra-x4-v1:0 | AWS Bedrock | $2.50 | $10.00 | -17% |
| anthropic.claude-3-5-sonnet-20240620-v1:0 | AWS Bedrock | $3.00 | $15.00 | 0% |
| anthropic.claude-3-5-sonnet-20241022-v2:0 | AWS Bedrock | $3.00 | $15.00 | 0% |
| anthropic.claude-3-7-sonnet-20240620-v1:0 | AWS Bedrock | $3.60 | $18.00 | +20% |

## More from Vercel Ai Gateway

- [claude-3.5-sonnet ($3.00/1M input)](https://www.getmaxim.ai/bifrost/llm-cost-calculator/provider/vercel_ai_gateway/model/claude-3.5-sonnet.md)
- [claude-3.7-sonnet ($3.00/1M input)](https://www.getmaxim.ai/bifrost/llm-cost-calculator/provider/vercel_ai_gateway/model/claude-3.7-sonnet.md)
- [claude-3-5-sonnet ($3.00/1M input)](https://www.getmaxim.ai/bifrost/llm-cost-calculator/provider/vercel_ai_gateway/model/claude-3-5-sonnet.md)
- [claude-3-5-sonnet-20241022 ($3.00/1M input)](https://www.getmaxim.ai/bifrost/llm-cost-calculator/provider/vercel_ai_gateway/model/claude-3-5-sonnet-20241022.md)

## Related Resources

- [All Vercel Ai Gateway pricing](https://www.getmaxim.ai/bifrost/llm-cost-calculator/provider/vercel_ai_gateway.md)

## FAQ

### Is claude-4-sonnet cheaper than us.writer.palmyra-x4-v1:0?

No. claude-4-sonnet costs $3.00 per 1M input tokens while us.writer.palmyra-x4-v1:0 costs $2.50 per 1M input tokens, making us.writer.palmyra-x4-v1:0 17% more affordable for input. However, claude-4-sonnet may offer different capabilities or performance characteristics that justify the price difference.

### How does claude-4-sonnet pricing compare to the average chat model?

claude-4-sonnet input pricing is $3.00 per 1M tokens, which is 445% above the median of $0.55 for chat models. It ranks 2558 out of 2910 chat models by input cost, making it cheaper than 11% of models in this category. For output, it costs $15.00 per 1M tokens compared to the median of $1.50.

### What makes claude-4-sonnet different from other Vercel Ai Gateway models?

Among Vercel Ai Gateway's 95 chat models, claude-4-sonnet ranks 76 by input cost.

### What are the best alternatives to claude-4-sonnet?

The most comparable chat models to claude-4-sonnet are: us.writer.palmyra-x4-v1:0 from AWS Bedrock ($2.50/1M input tokens); writer.palmyra-x4-v1:0 from AWS Bedrock ($2.50/1M input tokens); anthropic.claude-3-5-sonnet-20240620-v1:0 from AWS Bedrock ($3.00/1M input tokens); anthropic.claude-3-5-sonnet-20241022-v2:0 from AWS Bedrock ($3.00/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 claude-4-sonnet costs?

claude-4-sonnet 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 $3.00 and generating 1M output tokens costs $15.00.

## Related Resources

- [All Vercel Ai Gateway pricing](https://www.getmaxim.ai/bifrost/llm-cost-calculator/provider/vercel_ai_gateway.md)
- [LLM cost calculator](https://www.getmaxim.ai/bifrost/llm-cost-calculator.md)
- [Model library](https://www.getmaxim.ai/bifrost/model-library.md)
- [Docs: Bifrost docs](https://docs.getbifrost.ai)
- [GitHub: maximhq/bifrost](https://github.com/maximhq/bifrost)
- [Pricing: Bifrost pricing](https://www.getmaxim.ai/pricing)
- [Enterprise: Bifrost enterprise](https://www.getmaxim.ai/enterprise)
- [Book a Demo: Bifrost demo](https://www.getmaxim.ai/book-a-demo)
- [Resources: Bifrost resources](https://www.getmaxim.ai/bifrost/resources.md)

---

*This is a markdown version of [https://www.getmaxim.ai/bifrost/llm-cost-calculator/provider/vercel_ai_gateway/model/claude-4-sonnet](https://www.getmaxim.ai/bifrost/llm-cost-calculator/provider/vercel_ai_gateway/model/claude-4-sonnet) for AI/LLM consumption.*
