Cohere: Embed English v3 contro Mistral: Mistral Embed 2312
Un confronto fianco a fianco tra Cohere: Embed English v3 (0,35 USD / 1M token (≈ 0,32 €)) e Mistral: Mistral Embed 2312 (0,35 USD / 1M token (≈ 0,32 €)) con i prezzi in USD e le funzionalità aggiornati dal catalogo di api14. Entrambi funzionano con la stessa API compatibile OpenAI.
Specifiche
| Cohere: Embed English v3 | Mistral: Mistral Embed 2312 | |
|---|---|---|
| Fornitore | Cohere | Mistral |
| Ingresso | 0,35 USD / 1M token (≈ 0,32 €) | 0,35 USD / 1M token (≈ 0,32 €) |
| Finestra di contesto | 512 | 8192 |
| Output massimo | 460 | 6553 |
| Ingresso | text | text |
| Uscita | embeddings | embeddings |
| chiamata di strumenti | ||
| Output strutturato | ||
| Controllo del ragionamento | ||
| Aggiunto | 3 dic 2026 | 31 ott 2025 |
Differenze principali
- Entrambi hanno all’incirca lo stesso prezzo di input.
- Mistral: Mistral Embed 2312 legge 16.0× più contesto (8192 token).
Cambia modello con una stringa
Entrambi i modelli usano lo stesso endpoint e la stessa struttura di richiesta. Cambia il valore di model da "cohere/embed-english-v3.0" a "mistralai/mistral-embed-2312", 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.embeddings.create({
"model": "mistralai/mistral-embed-2312",
"input": [
"The quick brown fox",
"Lorem ipsum"
]
});
console.log(result.data.map((d) => d.embedding.length));
from openai import OpenAI
import os
client = OpenAI(
base_url="https://api14.com/api/v1",
api_key=os.environ["API14_API_KEY"],
)
result = client.embeddings.create(
model="mistralai/mistral-embed-2312",
input=[
"The quick brown fox",
"Lorem ipsum"
],
)
print([len(d.embedding) for d in result.data])
curl https://api14.com/api/v1/embeddings \
-H "Authorization: Bearer $API14_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "mistralai/mistral-embed-2312",
"input": [
"The quick brown fox",
"Lorem ipsum"
]
}'
package main
import (
"bytes"
"fmt"
"io"
"net/http"
"os"
)
func main() {
body := []byte(`{
"model": "mistralai/mistral-embed-2312",
"input": [
"The quick brown fox",
"Lorem ipsum"
]
}`)
req, _ := http.NewRequest("POST", "https://api14.com/api/v1/embeddings", bytes.NewReader(body))
req.Header.Set("Authorization", "Bearer "+os.Getenv("API14_API_KEY"))
req.Header.Set("Content-Type", "application/json")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(string(out))
}
<?php
$ch = curl_init("https://api14.com/api/v1/embeddings");
curl_setopt_array($ch, [
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => [
"Authorization: Bearer " . getenv("API14_API_KEY"),
"Content-Type: application/json",
],
CURLOPT_POSTFIELDS => json_encode([
"model" => "mistralai/mistral-embed-2312",
"input" => [
"The quick brown fox",
"Lorem ipsum"
]
]),
]);
$response = json_decode(curl_exec($ch), true);
print_r($response);
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
public class Main {
public static void main(String[] args) throws Exception {
String body = """
{
"model": "mistralai/mistral-embed-2312",
"input": [
"The quick brown fox",
"Lorem ipsum"
]
}
""";
HttpRequest request = HttpRequest.newBuilder()
.uri(URI.create("https://api14.com/api/v1/embeddings"))
.header("Authorization", "Bearer " + System.getenv("API14_API_KEY"))
.header("Content-Type", "application/json")
.POST(HttpRequest.BodyPublishers.ofString(body))
.build();
HttpResponse<String> response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofString());
System.out.println(response.body());
}
}
using System.Net.Http.Headers;
using System.Text;
var http = new HttpClient();
http.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Bearer", Environment.GetEnvironmentVariable("API14_API_KEY"));
var body = """
{
"model": "mistralai/mistral-embed-2312",
"input": [
"The quick brown fox",
"Lorem ipsum"
]
}
""";
var res = await http.PostAsync("https://api14.com/api/v1/embeddings", new StringContent(body, Encoding.UTF8, "application/json"));
Console.WriteLine(await res.Content.ReadAsStringAsync());
require "net/http"
require "json"
uri = URI("https://api14.com/api/v1/embeddings")
req = Net::HTTP::Post.new(uri, {
"Authorization" => "Bearer #{ENV["API14_API_KEY"]}",
"Content-Type" => "application/json",
})
req.body = {
"model": "mistralai/mistral-embed-2312",
"input": [
"The quick brown fox",
"Lorem ipsum"
]
}.to_json
res = Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == "https") { |h| h.request(req) }
puts JSON.parse(res.body)
// Cargo.toml: reqwest = { version = "0.12", features = ["json"] }, tokio = { version = "1", features = ["full"] }, serde_json = "1"
use serde_json::json;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let key = std::env::var("API14_API_KEY")?;
let res = reqwest::Client::new()
.post("https://api14.com/api/v1/embeddings")
.bearer_auth(key)
.json(&json!({
"model": "mistralai/mistral-embed-2312",
"input": [
"The quick brown fox",
"Lorem ipsum"
]
}))
.send()
.await?
.text()
.await?;
println!("{res}");
Ok(())
}
Altri confronti
- Cohere: Embed 5 Fast contro Cohere: Embed English v3
- Cohere: Embed 5 Fast contro Cohere: Embed Multilingual v3
- Cohere: Embed 5 Fast contro Perplexity: Embed V2 Context 0.6B
- Cohere: Embed 5 Fast contro Perplexity: Embed V2 Context 9B
- Cohere: Embed English v3 contro Cohere: Embed Multilingual v3
- Cohere: Embed English v3 contro Perplexity: Embed V2 Context 0.6B
- Cohere: Embed English v3 contro Perplexity: Embed V2 Context 9B
- Cohere: Embed Multilingual v3 contro Perplexity: Embed V2 Context 0.6B