Granite Code 20B

KodeTilgængelig
af IBMModell-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.

Pris · 1M ind/ud
0,12 US$ / 0,60 US$
Kontekst
8.192 tokens
Maks. output
8.192 tokens
Input → output
Tekst → Tekst
Udvikler
IBM
Opdateret
24. september 2026
01

Playground

Prøv Granite Code 20B

Input & resultat

0,12 US$/1M in
Prøv Granite Code 20B
Resultat
Svaret vises her.

Denne kørsel

højst 0,0025 US$ · 0,25 credits reserveret

Fakturering efter faktisk brugte tokens; den ubrugte del af reservationen refunderes.

Ny her?

10 gratis credits (0,10 US$) når du tilmelder dig med Google

Kan bruges 24 timer efter tilmelding, op til 5 kørsler pr. dag og højst 2 credits pr. kørsel. Andre login-metoder starter uden credits. Nok til 40 kørsler af denne 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

Om Granite Code 20B

Kort sagtFra 24. september 2026

Granite Code 20B er en model af IBM i kategorien Kode. På Railwail koster Granite Code 20B 0,12 US$ pr. 1M inputtokens og 0,60 US$ pr. 1M outputtokens. Kontekstvinduet indeholder 8.192 tokens, og et svar kan være op til 8.192 tokens langt.

04

Priser

Priser i US-dollar. Forbrug debiteres fra forudbetalte credits.
Input0,12 US$ / 1M tokens
Output0,60 US$ / 1M tokens
  • Faktureres efter de tokens, som hver anmodning faktisk bruger.
  • 1 kredit = 0,01 US$

Omkostningsberegner

Prisberegner

/ anmodning
/ anmodning

I alt

0,05 US$

5 credits

Pr. anmodning

0,0005 US$ · 0,05 credits

Hver anmodning rundes op til 0,01 credits.

05

API

Kald Granite Code 20B med din Railwail API-nøgle. Brug dette model-ID i anmodningen:

Intet bekræftet API-eksempel

Den offentlige API sender et andet inputformat end det, som denne model har brug for. Brug playground ovenfor.

06

Specifikationer

Model-ID
granite-code-20b
Udvikler
IBM
Kategori
Kode
Input
Tekst
Output
Tekst
Kontekstvindue
8.192 tokens
Maks. output
8.192 tokens
Fakturering
Efter forbrug (tokens eller GPU-tid)
Katalogelement opdateret
24. september 2026

Tags

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

Anvendelsestilfælde

08

Ofte stillede spørgsmål

Hvad er Granite Code 20B?

Granite Code 20B er en model fra IBM i kategorien Kode.

Hvad koster Granite Code 20B på Railwail?

På Railwail koster Granite Code 20B 0,12 US$ pr. 1M inputtokens og 0,60 US$ pr. 1M outputtokens. Du betaler for det, som hver anmodning faktisk bruger. Forbrug betales fra forudbetalte credits; 1 credit svarer til 0,01 US$.

Hvad er kontekstvinduet for Granite Code 20B?

Kontekstvinduet for Granite Code 20B indeholder 8.192 tokens. Et svar kan være op til 8.192 tokens langt.

Hvor hurtig er Granite Code 20B?

Der er endnu ikke nok målte kørsler af Granite Code 20B på Railwail til at angive en udførelsestid. Det afhænger af inputtet, indstillingerne og belastningen hos provideren.

Er Granite Code 20B bedre end Code Llama 13B Instruct?

Det afhænger af opgaven. Granite Code 20B (IBM) og Code Llama 13B Instruct (Meta) er begge modeller i kategorien Kode. Sammenligningssiden viser deres priser og specifikationer side om side.

Sammenlign Granite Code 20B og Code Llama 13B Instruct
09

Sammenlignelige modeller

Alle i denne kategori

Alle modeller via én API

En API-nøgle til alle modeller på Railwail. Forbrug debiteres fra forudbetalte credits, 1 credit = 0,01 US$.