voyage-finance-2
Model Overview
A finance domain-specific embedding model that delivers superior retrieval quality, outperforming competing models on financial datasets—achieving an average 7% gain over OpenAI (the next best model) and 12% over Cohere. It supports a 32K context length, significantly larger than other evaluated alternatives.
Setup your API Key
If you don’t have an API key for the AI/ML API yet, feel free to use our Quickstart guide.
Submit a request
API Schema
post
Authorizations
Body
modelundefined · enumRequiredPossible values:
inputany ofRequired
Input text to embed, encoded as a string or array of tokens.
string · min: 1 · max: 8000Optional
string[]Optional
input_typestring · enumOptionalDefault:
The type of input data for the model.
document
Possible values: Responses
201Success
post
POST /v1/embeddings HTTP/1.1
Host: api.aimlapi.com
Authorization: Bearer <YOUR_AIMLAPI_KEY>
Content-Type: application/json
Accept: */*
Content-Length: 67
{
"model": "voyage-finance-2",
"input": "text",
"input_type": "document"
}
201Success
No content
Last updated
Was this helpful?