Cohere: Embed v4 karşı VoyageAI by MongoDB: voyage-code-4
Cohere: Embed v4 ($0,42 / 1M token (≈ ₺21,41)) ve VoyageAI by MongoDB: voyage-code-4 ($0,42 / 1M token (≈ ₺21,41)) modellerinin api14 kataloğundaki güncel USD fiyatları ve yetenekleriyle yan yana karşılaştırması. İkisi de aynı OpenAI uyumlu API üzerinden çalışır.
Teknik özellikler
| Cohere: Embed v4 | VoyageAI by MongoDB: voyage-code-4 | |
|---|---|---|
| Sağlayıcı | Cohere | VoyageAI by MongoDB |
| Girdi | $0,42 / 1M token (≈ ₺21,41) | $0,42 / 1M token (≈ ₺21,41) |
| Bağlam penceresi | 128.000 | 32.000 |
| Maks. çıktı | 115.200 | 28.800 |
| Girdi | image, text | text |
| Çıktı | embeddings | embeddings |
| Araç çağırma | ||
| Yapılandırılmış çıktı | ||
| Akıl yürütme kontrolü | ||
| Eklenme | 15 Kas 2025 | 13 Ağu 2026 |
Temel farklar
- İkisinin girdi fiyatı da hemen hemen aynı.
- Cohere: Embed v4 4.0× daha fazla bağlam okur (128.000 token).
Tek bir metinle geçiş yap
İki model de aynı uç noktayı ve istek yapısını kullanır. model değerini "cohere/embed-v4" yerine "mongodb/voyage-code-4" yap, istemler, akış ve araçlar çalışmaya devam eder.
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": "mongodb/voyage-code-4",
"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="mongodb/voyage-code-4",
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": "mongodb/voyage-code-4",
"input": [
"The quick brown fox",
"Lorem ipsum"
]
}'
package main
import (
"bytes"
"fmt"
"io"
"net/http"
"os"
)
func main() {
body := []byte(`{
"model": "mongodb/voyage-code-4",
"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" => "mongodb/voyage-code-4",
"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": "mongodb/voyage-code-4",
"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": "mongodb/voyage-code-4",
"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": "mongodb/voyage-code-4",
"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": "mongodb/voyage-code-4",
"input": [
"The quick brown fox",
"Lorem ipsum"
]
}))
.send()
.await?
.text()
.await?;
println!("{res}");
Ok(())
}
Diğer karşılaştırmalar
- Cohere: Embed 5 Fast karşı Cohere: Embed English v3
- Cohere: Embed 5 Fast karşı Cohere: Embed Multilingual v3
- Cohere: Embed 5 Fast karşı Perplexity: Embed V2 Context 0.6B
- Cohere: Embed 5 Fast karşı Perplexity: Embed V2 Context 9B
- Cohere: Embed English v3 karşı Cohere: Embed Multilingual v3
- Cohere: Embed English v3 karşı Perplexity: Embed V2 Context 0.6B
- Cohere: Embed English v3 karşı Perplexity: Embed V2 Context 9B
- Cohere: Embed Multilingual v3 karşı Perplexity: Embed V2 Context 0.6B