voyage-2
Model Overview
A general-purpose embedding model that delivers state-of-the-art performance across multiple domains while maintaining high efficiency. It's optimized for a balance between cost, latency, and retrieval quality.
Setup your API Key
If you don’t have an API key for the Apilaplas API yet, feel free to use our Quickstart guide.
Submit a request
API Schema
post
Authorizations
Body
modelundefined · enumRequiredPossible values:
inputany ofRequired
string · min: 1 · max: 8000Optional
string[]Optional
input_typestring · enumOptionalDefault:
documentPossible values: encoding_formatstringOptional
Responses
201Success
No content
post
/v1/embeddingsPOST /v1/embeddings HTTP/1.1
Host: api.apilaplas.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 84
{
"model": "voyage-2",
"input": "text",
"input_type": "document",
"encoding_format": "text"
}201Success
No content
Last updated