Granite Code 20B

CodeBeschikbaar
van IBMModel-ID: granite-code-20b

IBM Granite 20B Code Instruct. Larger Granite code model balancing quality and inference cost for enterprise CI/CD code-review automation.

Prijs · 1M in/uit
US$ 0,12 / US$ 0,60
Context
8.192 tokens
Max. uitvoer
8.192 tokens
Invoer → Uitvoer
Tekst → Tekst
Ontwikkelaar
IBM
Bijgewerkt
24 september 2026
01

Playground

Granite Code 20B proberen

Invoer & resultaat

US$ 0,12/1M in
Granite Code 20B proberen
Resultaat
Het antwoord verschijnt hier.

Deze uitvoering

maximaal US$ 0,0025 · 0,25 credits gereserveerd

Gefactureerd worden de werkelijk gebruikte tokens; het ongebruikte deel van de reservering wordt terugbetaald.

Nieuw hier?

10 gratis credits (US$ 0,10) wanneer je je aanmeldt met Google

Bruikbaar 24 uur na aanmelding, tot 5 uitvoeringen per dag en maximaal 2 credits per uitvoering. Andere aanmeldmethoden starten zonder credits. Voldoende voor 40 uitvoeringen van dit model.

02

Examples

Real outputs from the public examples of this model on Replicate, with the prompt and settings that produced them. They were not generated live on this page.
  • Prompt

    Could you please explain what APR means?

    Response

    APR stands for Annual Percentage Rate. It is a figure that represents the annual cost of borrowing, including fees and interest. It is used to help consumers compare the costs of different loans and credit products. The higher the APR, the more expensive the loan is.

    Settings

    system_prompt: You are an expert in finance that knows many concepts related to loans and credit.

  • Prompt

    Now, please explain APR meaning with a simple example, so that even a 5 years old kid can understand you.

    Response

    Sure, I'd be happy to explain it to a 5-year-old! Let's say you want to buy a toy that costs $10. You ask your parents if you can borrow the money, and they agree. You sign a loan agreement promising to pay them back the $10 plus some extra money, called interest. The interest is calculated as a percentage of the loan amount, and it's called the Annual Percentage Rate, or APR for short. For example, let's say the APR is 5%. This means that you have to pay an extra $0.50 for each dollar you borrow. So, if you borrow $10, you have to pay $10 + ($10 * 0.05) = $10.50 back. The APR is important because it helps you understand how much extra money you'll have to pay back. The higher the APR, the more interest you'll have to pay. So, you want to make sure the APR is as low as possible when you take a loan.

    Settings

    system_prompt: You are an expert in finance that knows many concepts related to loans and credit.

03

Over Granite Code 20B

SamengevatPer 24 september 2026

Granite Code 20B is een model van IBM in de categorie Code. Op Railwail kost Granite Code 20B US$ 0,12 per 1M invoertokens en US$ 0,60 per 1M uitvoertokens. Het contextvenster bevat 8.192 tokens, en een antwoord kan tot 8.192 tokens lang zijn.

04

Prijzen

Prijzen in US-dollars. Het gebruik wordt in rekening gebracht via vooraf gekochte credits.
InvoerUS$ 0,12 / 1M tokens
UitvoerUS$ 0,60 / 1M tokens
  • Gefactureerd worden de tokens die elke aanvraag daadwerkelijk gebruikt.
  • 1 credit = US$ 0,01

Kostencalculator

Prijscalculator

/ aanvr.
/ aanvr.

Totaal

US$ 0,05

5 credits

Per aanvraag

US$ 0,0005 · 0,05 credits

Elke aanvraag wordt afgerond naar 0,01 credits.

05

API

Roep Granite Code 20B aan met je Railwail API-sleutel. Gebruik deze model-ID in het verzoek:

Geen geverifieerd API-voorbeeld

De openbare API geeft een ander invoerformaat door dan dit model nodig heeft. Gebruik de playground hierboven.

06

Specificaties

Model-ID
granite-code-20b
Ontwikkelaar
IBM
Categorie
Code
Invoer
Tekst
Uitvoer
Tekst
Contextvenster
8.192 tokens
Max. uitvoer
8.192 tokens
Facturering
Op basis van gebruik (tokens of GPU-tijd)
Catalogusitem bijgewerkt
24 september 2026

Tags

  • replicate
  • code-generation
  • ibm
  • granite
  • open-weights
  • apache-2
07

Gebruiksscenario's

08

Veelgestelde vragen

Wat is Granite Code 20B?

Granite Code 20B is een model van IBM in de categorie Code.

Hoeveel kost Granite Code 20B op Railwail?

Op Railwail kost Granite Code 20B US$ 0,12 per 1M invoertokens en US$ 0,60 per 1M uitvoertokens. U betaalt voor wat elke aanvraag daadwerkelijk verbruikt. Gebruik wordt betaald met vooraf gekochte credits; 1 credit is gelijk aan US$ 0,01.

Wat is het contextvenster van Granite Code 20B?

Het contextvenster van Granite Code 20B bevat 8.192 tokens. Een antwoord kan tot 8.192 tokens lang zijn.

Hoe snel is Granite Code 20B?

Er zijn nog niet genoeg gemeten runs van Granite Code 20B op Railwail om een uitvoeringstijd op te geven. Dit hangt af van de invoer, de instellingen en de belasting bij de provider.

Is Granite Code 20B beter dan Code Llama 13B Instruct?

Dat hangt van de taak af. Granite Code 20B (IBM) en Code Llama 13B Instruct (Meta) zijn beide modellen in de categorie Code. De vergelijkingspagina toont hun prijzen en specificaties naast elkaar.

Granite Code 20B en Code Llama 13B Instruct vergelijken
09

Vergelijkbare modellen

Alle in deze categorie

Alle modellen via één API

Één API-sleutel voor elk model op Railwail. Gebruik wordt afgerekend via vooraf gekochte credits, 1 credit = US$ 0,01.