IBM: Granite 4.2 8B contro Tencent: Hy4 flash
Un confronto fianco a fianco tra IBM: Granite 4.2 8B (0,21 USD / 1M token (≈ 0,19 €)) e Tencent: Hy4 flash (0,12 USD / 1M token (≈ 0,11 €)) con i prezzi in USD e le funzionalità aggiornati dal catalogo di api14. Entrambi funzionano con la stessa API compatibile OpenAI.
Specifiche
| IBM: Granite 4.2 8B | Tencent: Hy4 flash | |
|---|---|---|
| Fornitore | IBM | Tencent |
| Ingresso | 0,21 USD / 1M token (≈ 0,19 €) | 0,12 USD / 1M token (≈ 0,11 €) |
| Uscita | 0,52 USD / 1M token (≈ 0,48 €) | 0,49 USD / 1M token (≈ 0,45 €) |
| Lettura cache | 0,05 USD / 1M token (≈ 0,05 €) | 0,00525 USD / 1M token (≈ 0,00478 €) |
| Finestra di contesto | 131.072 | 1.048.576 |
| Output massimo | 117.964 | 65.536 |
| Ingresso | text | text, image |
| Uscita | text | text |
| chiamata di strumenti | ||
| Output strutturato | ||
| Controllo del ragionamento | ||
| Aggiunto | 31 ago 2026 | 16 nov 2026 |
Differenze principali
- Tencent: Hy4 flash costa il 42% in meno sui token di input.
- Tencent: Hy4 flash costa il 6% in meno sui token di output.
- Tencent: Hy4 flash legge 8.0× più contesto (1.048.576 token).
- Una richiesta con 1.000 token di input e 500 di output costa 0,000473 USD con IBM: Granite 4.2 8B e 0,000368 USD con Tencent: Hy4 flash.
Cambia modello con una stringa
Entrambi i modelli usano lo stesso endpoint e la stessa struttura di richiesta. Cambia il valore di model da "ibm-granite/granite-4.2-8b" a "tencent/hy4-flash", prompt, streaming e tool continuano a funzionare.
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.chat.completions.create({
"model": "tencent/hy4-flash",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
Altri confronti
- Google: Gemini 4 Neon contro Mistral: Pixtral Large 2502
- Google: Gemini 4 Neon contro OpenAI: GPT-6.2 Astra Pro
- Google: Gemini 4 Neon contro RadixArk: DaisyRose 27B
- Google: Gemini 4 Neon contro Thinking Machines: Inkling 2 Mini
- Mistral: Pixtral Large 2502 contro OpenAI: GPT-6.2 Astra Pro
- Mistral: Pixtral Large 2502 contro RadixArk: DaisyRose 27B
- Mistral: Pixtral Large 2502 contro Thinking Machines: Inkling 2 Mini
- OpenAI: GPT-6.2 Astra Pro contro RadixArk: DaisyRose 27B