EMBEDDINGS
Base-Path:
https://api.hyprlab.io/v1Embeddings Path:
https://api.hyprlab.io/v1/embeddingsMaking Request:
curl https://api.hyprlab.io/v1/embeddings \
-H "Authorization: Bearer $HYPRLAB_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"input": "The food was delicious and the waiter...",
"model": "mistral-embed",
}'
import OpenAI from "openai";
const openai = new OpenAI({
apiKey: "<HYPRLAB_API_KEY>",
baseURL: "https://api.hyprlab.io/v1",
});
async function main() {
const embedding = await openai.embeddings.create({
model: "mistral-embed",
input: "The quick brown fox jumped over the lazy dog",
});
console.log(embedding);
}
main();from openai import OpenAI
client = OpenAI(
api_key="<HYPRLAB_API_KEY>",
base_url="https://api.hyprlab.io/v1",
)
client.embeddings.create(
model="mistral-embed",
input="The food was delicious and the waiter..."
)
📃 Embeddings Models
Model Name:
Discount Rate:
Usage:
mistral-embed
80% off
$0.02 / 1M Tokens
Last updated