We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.
EssentialSession, security and preferences. Needed for the site to work.Always on
New here? See how it worksA 1-minute tour of the playground, models and your API key.
Embed English v3 API: pricing, playground & code · api14
Input price is 100% higher than the median of 45 Embeddings models.
About Cohere: Embed English v3
Embed English v3 is Cohere's English-language text embedding model. It returns 1,024-dimension vectors for semantic search, retrieval-augmented generation, classification, and clustering. Each input is limited to 512 tokens, and a...
How to call the Cohere: Embed English v3 API
Create an API key in your dashboard.
Install the official openai SDK for your language.
Set baseURL to https://api14.com/api/v1 and model to "cohere/embed-english-v3.0".
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": "cohere/embed-english-v3.0",
"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="cohere/embed-english-v3.0",
input=[
"The quick brown fox",
"Lorem ipsum"
],
)
print([len(d.embedding) for d in result.data])
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": "cohere/embed-english-v3.0",
"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": "cohere/embed-english-v3.0",
"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());
// 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": "cohere/embed-english-v3.0",
"input": [
"The quick brown fox",
"Lorem ipsum"
]
}))
.send()
.await?
.text()
.await?;
println!("{res}");
Ok(())
}
Specifications
Context length
512
Max output
460
Input
text
Output
embeddings
Requests on api14 · last 7 days
Cohere: Embed English v3: frequently asked questions
How much does the Cohere: Embed English v3 API cost?
Cohere: Embed English v3 costs Input $0.35 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
What is the context window of Cohere: Embed English v3?
Cohere: Embed English v3 reads up to 512 tokens per request: prompt, history and documents together. It writes up to 460 output tokens per response.
What can Cohere: Embed English v3 do?
Cohere: Embed English v3 accepts text and returns embeddings.
How do I call Cohere: Embed English v3 from my code?
Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "cohere/embed-english-v3.0". No other code changes. Copy a ready example from the code panel on this page.
What are alternatives to Cohere: Embed English v3?
Comparable Embeddings models at a similar price: Cohere: Embed Multilingual v3, Amazon: Titan Embeddings G1 - Text, Mistral: Mistral Embed 2312. Each runs through the same API key, so switching is one string.