Cohere: Command R7B (12-2024) contra Tencent: Hy4 flash
Una comparativa lado a lado de Cohere: Command R7B (12-2024) (0,13 US$ / 1M fragmentos (≈ 0,12 €)) y Tencent: Hy4 flash (0,12 US$ / 1M fragmentos (≈ 0,11 €)) con precios actuales en USD y capacidades del catálogo de api14. Ambos funcionan a través de la misma API compatible con OpenAI.
Especificaciones
| Cohere: Command R7B (12-2024) | Tencent: Hy4 flash | |
|---|---|---|
| Proveedor | Cohere | Tencent |
| Entrada | 0,13 US$ / 1M fragmentos (≈ 0,12 €) | 0,12 US$ / 1M fragmentos (≈ 0,11 €) |
| Salida | 0,52 US$ / 1M fragmentos (≈ 0,48 €) | 0,49 US$ / 1M fragmentos (≈ 0,45 €) |
| Lectura de caché | - | 0,00525 US$ / 1M fragmentos (≈ 0,00478 €) |
| Ventana de contexto | 128.000 | 1.048.576 |
| Salida máxima | 4000 | 65.536 |
| Entrada | text | text, image |
| Salida | text | text |
| Llamadas a herramientas | ||
| Salida estructurada | ||
| Control del razonamiento | ||
| Añadido | 14 dic 2024 | 16 nov 2026 |
Diferencias clave
- Tencent: Hy4 flash es 7% más barato en tokens de entrada.
- Tencent: Hy4 flash es 6% más barato en tokens de salida.
- Tencent: Hy4 flash lee 8.2× más contexto (1.048.576 tokens).
- Solo Tencent: Hy4 flash admite control del esfuerzo de razonamiento.
- Una solicitud con 1.000 tokens de entrada y 500 de salida cuesta 0,000394 US$ con Cohere: Command R7B (12-2024) y 0,000368 US$ con Tencent: Hy4 flash.
Cambia con una sola cadena
Ambos modelos usan el mismo endpoint y la misma estructura de solicitud. Cambia el valor de model de "cohere/command-r7b-12-2024" a "tencent/hy4-flash": los prompts, el streaming y las herramientas siguen funcionando.
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);
Más comparativas
- Google: Gemini 4 Neon contra Mistral: Pixtral Large 2502
- Google: Gemini 4 Neon contra OpenAI: GPT-6.2 Astra Pro
- Google: Gemini 4 Neon contra RadixArk: DaisyRose 27B
- Google: Gemini 4 Neon contra Thinking Machines: Inkling 2 Mini
- Mistral: Pixtral Large 2502 contra OpenAI: GPT-6.2 Astra Pro
- Mistral: Pixtral Large 2502 contra RadixArk: DaisyRose 27B
- Mistral: Pixtral Large 2502 contra Thinking Machines: Inkling 2 Mini
- OpenAI: GPT-6.2 Astra Pro contra RadixArk: DaisyRose 27B