Granite Code 20B
granite-code-20bIBM 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
Playground
Prøv Granite Code 20B
Input & resultat
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.
Examples
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.
Om Granite Code 20B
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.
Priser
| Input | 0,12Â US$ / 1M tokens |
|---|---|
| Output | 0,60Â US$ / 1M tokens |
- Faktureres efter de tokens, som hver anmodning faktisk bruger.
- 1 kredit = 0,01Â US$
Omkostningsberegner
Prisberegner
I alt
0,05Â US$
5 credits
Pr. anmodning
0,0005 US$ · 0,05 credits
Hver anmodning rundes op til 0,01 credits.
API
Intet bekræftet API-eksempel
Den offentlige API sender et andet inputformat end det, som denne model har brug for. Brug playground ovenfor.
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
Anvendelsestilfælde
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 InstructSammenlignelige modeller
Alle i denne kategoriIBM Granite 8B Code Instruct. Trained on permissively-licensed code, strong on multi-language code completion and instruction-following.
Meta's 13B Code Llama tuned for instruction following. A faster mid-size option for code generation and completion, supporting infilling for inserting code at a cursor position. Served on Replicate per call.
≈ 0,0065 US$/kørsel
Sammenlign Granite Code 20B og Code Llama 13B InstructMeta's 34B Code Llama tuned for instruction following. A balance of size and quality for code generation, completion, and explanation, with strong coverage of Python, JavaScript, and other common languages. Runs on Replicate per call.
≈ 0,0408 US$/kørsel
Sammenlign Granite Code 20B og Code Llama 34B Instruct
Alle modeller via én API
En API-nøgle til alle modeller på Railwail. Forbrug debiteres fra forudbetalte credits, 1 credit = 0,01 US$.