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.
- מחיר · 1M בכניסה/יציאה
- 0.12 $ / 0.60 $
- הקשר
- 8,192 טוקנים
- פלט מקסימלי
- 8,192 טוקנים
- קלט → פלט
- טקסט → טקסט
- מפתח
- IBM
- עודכן
- 24 בספטמבר 2026
Playground
נסה את Granite Code 20B
קלט ותוצאה
הריצה הזו
לכל היותר 0.0025 $ · 0.25 קרדיטים מסוכנים
יחויבו הטוקנים בפועל שנעשה בהם שימוש; החלק שלא נעשה בו שימוש מהסכום המסוכן יוחזר.
חדש כאן?
10 קרדיטים חינם (0.10 $) כשאתה נרשם עם Google
ניתן להשתמש 24 שעות לאחר ההרשמה, עד 5 ריצות ביום ולכל היותר 2 קרדיטים לריצה. שיטות כניסה אחרות מתחילות ללא קרדיטים. מספיק ל-40 הרצות של מודל זה.
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.
אודות Granite Code 20B
Granite Code 20B הוא מודל של IBM בקטגוריית קוד. ב-Railwail, Granite Code 20B עולה 0.12 $ ל-1M טוקנים קלט ו-0.60 $ ל-1M טוקנים פלט. חלון ההקשר מכיל 8,192 טוקנים, והתשובה יכולה להיות עד 8,192 טוקנים.
תמחור
| קלט | 0.12 $ / 1M אסימונים |
|---|---|
| פלט | 0.60 $ / 1M אסימונים |
- חיוב לפי האסימונים שכל בקשה בעצם משתמשת בהם.
- 1 קרדיט = 0.01 $
מחשבון עלויות
מחשבון מחירים
סה״כ
0.05 $
5 קרדיטים
לכל בקשה
0.0005 $ · 0.05 קרדיטים
כל בקשה מעוגלת עד 0.01 קרדיטים.
API
אין דוגמה API מאומתת
ה-API הציבורי מעביר פורמט קלט שונה מזה שהדגם הזה צריך. השתמש בגובה המשחק למעלה.
מפרטים
- ID מודל
granite-code-20b- מפתח
- IBM
- קטגוריה
- קוד
- קלט
- טקסט
- פלט
- טקסט
- חלון הקשר
- 8,192 טוקנים
- פלט מקסימלי
- 8,192 טוקנים
- חיוב
- לפי שימוש (טוקנים או זמן GPU)
- רשומת הקטלוג עודכנה
- 24 בספטמבר 2026
תגיות
- replicate
- code-generation
- ibm
- granite
- open-weights
- apache-2
מקרי שימוש
שאלות נפוצות
מה זה Granite Code 20B?
Granite Code 20B הוא מודל של IBM בקטגוריית קוד.
כמה עולה Granite Code 20B ב-Railwail?
ב-Railwail, Granite Code 20B עולה 0.12 $ ל-1M טוקנים קלט ו-0.60 $ ל-1M טוקנים פלט. אתה משלם על מה שכל בקשה בעצם משתמשת. השימוש משולם מקרדיטים שנרכשו מראש; 1 קרדיט שווה 0.01 $.
מה גודל חלון ההקשר של Granite Code 20B?
חלון ההקשר של Granite Code 20B מכיל 8,192 טוקנים. התשובה יכולה להיות עד 8,192 טוקנים.
כמה מהיר Granite Code 20B?
עדיין אין מספיק הרצות שנמדדו של Granite Code 20B ב-Railwail כדי לציין זמן הרצה. זה תלוי בקלט, בהגדרות ובעומס אצל הספק.
האם Granite Code 20B טוב יותר מ-Code Llama 13B Instruct?
זה תלוי במשימה. Granite Code 20B (IBM) ו-Code Llama 13B Instruct (Meta) הם שניהם מודלים בקטגוריית קוד. דף ההשוואה מציג את המחירים והמפרטים שלהם זה לצד זה.
השווה בין Granite Code 20B ל-Code Llama 13B Instructדגמים דומים
הכל בקטגוריה זוIBM 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 $/הרצה
השווה בין Granite Code 20B ל-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 $/הרצה
השווה בין Granite Code 20B ל-Code Llama 34B Instruct
כל המודלים דרך API אחד
מפתח API אחד לכל מודל ב-Railwail. השימוש מחויב מאשראי מראש, 1 אשראי = 0.01 $.