Try Bifrost Enterprise free for 14 days.
Request access

granite-20b-code-instruct-8k Cost Calculator - Replicate

Calculate the cost of using granite-20b-code-instruct-8k from Replicate for your AI applications

Pricing data last updated:

granite-20b-code-instruct-8k Cost Calculator

Mode: Chat

Cost Breakdown

Input Cost$0.00010000
Output Cost$0.00050000
Total Cost$0.00060000

Pricing Details

Input: $0.0000001000 per token
Output: $0.0000005000 per token
[ WE'RE OPEN SOURCE ]

Scale with the Fastest LLM Gateway

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

About granite-20b-code-instruct-8k

granite-20b-code-instruct-8k is a chat model from Replicate, one of 82 chat models they offer. It is priced at $0.10 per 1M input tokens and $0.50 per 1M output tokens, ranking 801 out of 5562 chat models by cost and cheaper than 84% of models in this category.

Pricing Information

Input Cost$0.10 per 1M tokens
Output Cost$0.50 per 1M tokens

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

Model Capabilities

✓System Messages - Configure model behavior

How granite-20b-code-instruct-8k Pricing Compares

At $0.10 per 1M input tokens and $0.50 per 1M output tokens, granite-20b-code-instruct-8k ranks 801 out of 5562 chat models by input cost. It is more affordable compared to the median of $0.47 for chat models, and is cheaper than 84% of models in this category.

ModelProviderInput / 1M tokensOutput / 1M tokensvs granite-20b-code-instruct-8k
gpt-6-lunaAzure$0.10$0.500%
gpt-4.1-nanoAzure$0.10$0.400%
gpt-4.1-nano-2025-04-14Azure$0.10$0.400%

Alternatives to granite-20b-code-instruct-8k

Similar chat models from other providers

Azure
gpt-6-luna
$0.10/1M input
0% vs granite-20b-code-instruct-8k
Azure
gpt-4.1-nano
$0.10/1M input
0% vs granite-20b-code-instruct-8k
Azure
gpt-4.1-nano-2025-04-14
$0.10/1M input
0% vs granite-20b-code-instruct-8k
Azure
gpt-6-luna-2026-09-22
$0.10/1M input
0% vs granite-20b-code-instruct-8k
Azure
Phi-4
$0.13/1M input
+25% vs granite-20b-code-instruct-8k

Frequently Asked Questions

Is granite-20b-code-instruct-8k cheaper than gpt-6-luna?

No. granite-20b-code-instruct-8k costs $0.10 per 1M input tokens while gpt-6-luna costs $0.10 per 1M input tokens, making gpt-6-luna 0% more affordable for input. However, granite-20b-code-instruct-8k may offer different capabilities or performance characteristics that justify the price difference.

How does granite-20b-code-instruct-8k pricing compare to the average chat model?

granite-20b-code-instruct-8k input pricing is $0.10 per 1M tokens, which is 79% below the median of $0.47 for chat models. It ranks 801 out of 5562 chat models by input cost, making it cheaper than 84% of models in this category. For output, it costs $0.50 per 1M tokens compared to the median of $1.56.

What makes granite-20b-code-instruct-8k different from other Replicate models?

Among Replicate's 82 chat models, granite-20b-code-instruct-8k ranks 25 by input cost.

What are the best alternatives to granite-20b-code-instruct-8k?

The most comparable chat models to granite-20b-code-instruct-8k are: gpt-6-luna from Azure ($0.10/1M input tokens); gpt-4.1-nano from Azure ($0.10/1M input tokens); gpt-4.1-nano-2025-04-14 from Azure ($0.10/1M input tokens); gpt-6-luna-2026-09-22 from Azure ($0.10/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 check if Replicate is down?

You can monitor Replicate service health in real time on the Bifrost Replicate 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 granite-20b-code-instruct-8k costs?

granite-20b-code-instruct-8k 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.10 and generating 1M output tokens costs $0.50.